/* ===================================================================
   RAZ Studio — Pages légales (identité visuelle réutilisable)
   Sert la Politique de confidentialité et servira la Politique de
   témoins/cookies et les Mentions légales.
   Palette & polices partagées avec style.css (RAZ Studio master).
   Priorité : lisibilité — largeur limitée, hiérarchie claire,
   alternance légère pour casser le « mur de texte ».
   =================================================================== */

/* --------------------------- Page --------------------------- */
.legal-page {
    max-width: 55rem; /* 880px : zone de lecture confortable */
    margin: 0 auto;
    padding: 7.5rem 0 4.5rem; /* espace sous le header fixe */
}

/* --------------------------- Titre principal ---------------------------
   Même langage visuel que les titres de section du site (Oxanium 600,
   majuscules, accent bronze). */
.legal-page .heading h1 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #F2F0EA;
    letter-spacing: 0.08em;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.25;
    margin: 0;
}
.legal-accent {
    color: #C58A3A;
}
.legal-page .heading hr {
    margin: 1.4rem 0 0;
}

/* Date de mise à jour (kicker bronze) */
.legal-page .legal-updated {
    font-family: 'Oxanium', sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #C58A3A;
    margin: 1.9rem 0 1.1rem;
}

/* --------------------------- Corps du texte ---------------------------
   Ivoire adouci (pas de blanc éclatant), interligne confortable. */
.legal-page p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(228, 224, 215, 0.9);
    margin: 0 0 1.1rem;
    padding: 0;
}

/* --------------------------- Table des matières --------------------------- */
.legal-toc {
    margin: 2.4rem 0 0.5rem;
    padding: 1.5rem 0 1.6rem;
    border-top: 1px solid rgba(197, 138, 58, 0.22);
    border-bottom: 1px solid rgba(197, 138, 58, 0.22);
}
.legal-toc .legal-toc-title {
    font-family: 'Oxanium', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #C58A3A;
    margin: 0 0 1rem;
}
.legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 2.5rem;
}
.legal-toc-list a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(228, 224, 215, 0.78);
    text-decoration: none;
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
}
.legal-toc-list a:hover {
    color: #C58A3A;
}
.legal-toc-list a:visited {
    color: rgba(228, 224, 215, 0.78);
}

/* --------------------------- Sections --------------------------- */
.legal-section {
    margin-top: 3.4rem;
    scroll-margin-top: 6.5rem; /* décalage pour le header fixe aux ancres */
}
.legal-section h2 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #F2F0EA;
    margin: 0 0 1.3rem;
    padding-bottom: 0.8rem;
    position: relative;
}
/* Petit losange bronze devant le numéro de section */
.legal-section h2::before {
    content: "\25C6";
    color: #C58A3A;
    font-size: 0.55rem;
    vertical-align: 0.3em;
    margin-right: 0.7rem;
}
/* Ligne bronze dégressive sous le titre */
.legal-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: -webkit-linear-gradient(left, rgba(197, 138, 58, 0.5), rgba(197, 138, 58, 0.05));
    background: linear-gradient(90deg, rgba(197, 138, 58, 0.5), rgba(197, 138, 58, 0.05));
}
.legal-section h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #DDBB77;
    margin: 1.7rem 0 0.6rem;
}
/* Alternance légère : sections paires en très subtil panneau bronze.
   Casse l'effet « mur de texte » sans transformer chaque section en carte. */
.legal-section:nth-of-type(even) {
    background: rgba(242, 240, 234, 0.022);
    border: 1px solid rgba(197, 138, 58, 0.14);
    border-radius: 10px;
    padding: 2.1rem 2.1rem 1.5rem;
}

/* --------------------------- Listes juridiques ---------------------------
   Marqueur losange bronze généré en CSS, aligné sur la première ligne.
   Appliqué uniquement via la classe .legal-list (menus non touchés). */
.legal-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}
.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(228, 224, 215, 0.9);
    margin-bottom: 0.55rem;
}
.legal-list li::before {
    content: "\25C6";
    position: absolute;
    left: 0.15rem;
    top: 0.61rem; /* centré sur la 1re ligne (line-height 1.8, marqueur 0.58rem) */
    font-size: 0.58rem;
    line-height: 1;
    color: #C58A3A;
}

/* --------------------------- Boîte d'information (contact, etc.) --------------------------- */
.legal-info-box {
    margin: 1.3rem 0 0;
    padding: 1.2rem 1.35rem;
    background: rgba(197, 138, 58, 0.06);
    border: 1px solid rgba(197, 138, 58, 0.28);
    border-radius: 8px;
}
.legal-info-box > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}
.legal-info-box > div:last-child {
    margin-bottom: 0;
}
.legal-info-box dt {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 7.5rem;
    flex: 0 0 7.5rem;
    font-family: 'Oxanium', sans-serif;
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C58A3A;
}
.legal-info-box dd {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #F2F0EA;
}
.legal-info-box dd a {
    color: #F39C12;
}
.legal-info-box dd a:hover {
    color: #E48632;
}
/* Paragraphe suivant une boîte d'information */
.legal-info-box + p {
    margin-top: 1.2rem;
}

/* --------------------------- Codes / éléments techniques ---------------------------
   Accent bronze, bordure et fond très discrets, peu de poids visuel. */
.legal-page code {
    font-family: Consolas, Menlo, monospace;
    font-size: 0.85rem;
    color: #DDBB77;
    background: rgba(197, 138, 58, 0.07);
    border: 1px solid rgba(197, 138, 58, 0.18);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
}

/* --------------------------- Mobile --------------------------- */
@media (max-width : 575px) {
    .legal-page {
        padding-top: 6.75rem;
        padding-bottom: 3rem;
    }
    .legal-page p,
    .legal-list li {
        font-size: 0.95rem;
    }
    .legal-list li::before {
        top: 0.56rem; /* recentrage pour la taille mobile */
    }
    .legal-toc {
        margin-top: 2rem;
        padding: 1.2rem 0 1.3rem;
    }
    .legal-toc-list {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .legal-section {
        margin-top: 2.9rem;
    }
    .legal-section:nth-of-type(even) {
        padding: 1.5rem 1.25rem 1.1rem;
    }
    .legal-info-box {
        padding: 1.05rem 1.15rem;
    }
    .legal-info-box > div {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 0.1rem;
    }
    .legal-info-box dt {
        -ms-flex-preferred-size: auto;
        flex-basis: auto;
    }
}
