/**
 * Pages légales (Mentions, Politique de confidentialité, RGPD…)
 * Template simple : titre + contenu, shape décoratif en arrière-plan.
 */

.legal-page {
    position: relative;
    background: #fff;
    overflow-x: clip;
}

/* Shape décoratif en arrière-plan, top-right en pleine largeur */
.legal-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    /* max-width: 1200px; */
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}
.legal-shape img {
    display: block;
    width: 100%;
    height: auto;
}

/* =============================================
   HERO — titre seul, calé à 1588px max + padding
============================================= */

.legal-hero {
    position: relative;
    z-index: 1;
    max-width: calc(1588px + var(--gutter-desktop) * 2);
    margin: 0 auto;
    padding: 100px var(--gutter-desktop) 80px;
}

.legal-hero__title {
    font-family: var(--font-magnetik);
    font-weight: 200;
    font-size: 81.37px;
    line-height: 90px;
    color: #222f30;
    margin: 0;
}

/* =============================================
   CONTENT — texte légal calé sur 920px max, centré
============================================= */

/* Aligné sur les marges du footer (max-width 1481px centré).
   Padding horizontal pour éviter que le texte colle aux bords entre 1024-1480px. */
.legal-content-section {
    position: relative;
    z-index: 1;
    max-width: calc(1481px + var(--gutter-desktop) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter-desktop);
}

/* Texte aligné à gauche sur le même bord que le titre du hero (pas de margin auto) */
.legal-content {
    max-width: 1180px;
    margin: 0;
    font-family: var(--font-magnetik);
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    color: #72777b;
}

.legal-content > *:first-child {
    margin-top: 0;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
    font-family: var(--font-bodoni);
    font-style: italic;
    font-weight: 400;
    color: #222f30;
    margin: 56px 0 22px;
}

.legal-content h2 {
    font-size: 32px;
    line-height: 1.32;
}

.legal-content h3 {
    font-size: 22px;
    line-height: 1.32;
}

.legal-content h4 {
    font-size: 18px;
    line-height: 1.32;
}

.legal-content p {
    margin: 0 0 22px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

/* Override le reset global "ul, ol { list-style: none }" de base.css */
.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin: 0 0 8px;
}

.legal-content a {
    color: #0199A4;
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

.legal-content strong {
    color: #222f30;
    font-weight: 600;
}

/* Tableaux (page Honoraires) */
.legal-content table {
    width: 100%;
    max-width: 700px;
    border-collapse: collapse;
    margin: 0 0 32px;
    font-size: 16px;
}

.legal-content table th,
.legal-content table td {
    border: 1px solid #eff2f6;
    padding: 14px 20px;
    text-align: left;
    vertical-align: middle;
}

.legal-content table th {
    background: #f8f9fa;
    font-family: var(--font-geometos);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #222f30;
}

.legal-content table td {
    color: #222f30;
}

.legal-content table td:last-child {
    font-family: var(--font-bodoni);
    font-style: italic;
    font-size: 18px;
    color: #0199A4;
}

/* =============================================
   RESPONSIVE
============================================= */

@media (max-width: 1520px) {
    .legal-hero__title {
        font-size: 64px;
        line-height: 72px;
    }
}

@media (max-width: 1023px) {
    .legal-hero {
        padding: 100px var(--gutter-tablet) 24px;
    }
    .legal-hero__title {
        font-size: 48px;
        line-height: 56px;
    }
    .legal-content-section {
        padding: 0 var(--gutter-tablet);
    }
    .legal-content h2 {
        font-size: 26px;
    }
    .legal-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .legal-hero {
        padding: 60px var(--gutter-mobile) 40px;
    }
    .legal-hero__title {
        font-size: 32px;
        line-height: 40px;
    }
    .legal-content-section {
        padding: 0 var(--gutter-mobile);
    }
    .legal-content {
        font-size: 16px;
        line-height: 26px;
    }
    .legal-content h2 {
        font-size: 22px;
    }
    .legal-content h3 {
        font-size: 18px;
    }
}
