/* ==========================================================================
   Jordan Nicol — Pages légales (Mentions légales, Politique de confidentialité)
   Fichier : css/sections/page-legale.css

   En-tête : css/sections/entete-page.css (même en-tête que Réalisations).
   Le texte est dans un widget Éditeur de texte (classe jn-texte-legal) :
   titres H2 / H3, paragraphes, listes et liens mis en forme ici pour
   rester lisibles sur fond nuit.

   Sommaire
   1. Texte légal
   2. Encadrés (coordonnées)
   3. Sommaire
   ========================================================================== */


/* 1. Texte légal
   -------------------------------------------------------------------------- */
.jn-texte-legal {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 26px;
    color: #C7D1E3;
}

.jn-texte-legal h2 {
    margin: 56px 0 18px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: "Marcellus", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    color: #FAF8F3;
}

.jn-texte-legal h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.jn-texte-legal h3 {
    margin: 28px 0 10px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #E3C07A;
}

.jn-texte-legal p {
    margin: 0 0 14px;
}

.jn-texte-legal strong {
    font-weight: 500;
    color: #FAF8F3;
}

.jn-texte-legal ul {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.jn-texte-legal li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 22px;
}

.jn-texte-legal li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #E3C07A;
}

.jn-texte-legal a {
    color: #E3C07A;
    text-decoration: underline;
    text-decoration-color: rgba(227, 192, 122, 0.4);
    text-underline-offset: 3px;
    word-break: break-word;
    transition: text-decoration-color 0.3s ease;
}

.jn-texte-legal a:hover,
.jn-texte-legal a:focus-visible {
    text-decoration-color: #E3C07A;
}


/* 2. Encadrés (coordonnées de l'éditeur, de l'hébergeur…)
   -------------------------------------------------------------------------- */
.jn-texte-legal .jn-encadre-legal {
    margin: 0 0 14px;
    padding: 22px 26px;
    border: 1px solid rgba(233, 199, 123, 0.2);
    border-radius: 18px;
    background: rgba(30, 58, 102, 0.35);
}

.jn-texte-legal .jn-encadre-legal p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .jn-texte-legal {
        font-size: 14px;
        line-height: 24px;
    }

    .jn-texte-legal h2 {
        margin-top: 40px;
        padding-top: 30px;
        font-size: 24px;
    }

    .jn-texte-legal .jn-encadre-legal {
        padding: 18px;
    }
}

/* 3. Sommaire (liens vers les titres H2, qui portent un id)
   --------------------------------------------------------------------------
   Deux colonnes sur ordinateur. scroll-margin-top : le titre visé ne passe
   pas sous l'en-tête collant. */
.jn-texte-legal .jn-sommaire-legal {
    margin: 28px 0 0;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.jn-texte-legal .jn-sommaire-legal ul {
    columns: 2;
    column-gap: 32px;
    margin: 0;
}

.jn-texte-legal .jn-sommaire-legal li {
    break-inside: avoid;
}

.jn-texte-legal .jn-sommaire-legal a {
    color: #C7D1E3;
    text-decoration: none;
}

.jn-texte-legal .jn-sommaire-legal a:hover,
.jn-texte-legal .jn-sommaire-legal a:focus-visible {
    color: #E3C07A;
}

.jn-texte-legal .jn-sommaire-legal + h2 {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jn-texte-legal h2[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 767px) {
    .jn-texte-legal .jn-sommaire-legal {
        padding: 18px;
    }

    .jn-texte-legal .jn-sommaire-legal ul {
        columns: 1;
    }
}