/* ============================================
   PAGES LÉGALES
   Mentions légales, politique de confidentialité, CGV.
   Une seule feuille pour les trois : même gabarit, même typographie.
   ============================================ */

/* body porte déjà padding-top: var(--header-height) (style.css) pour compenser
   le header fixe. Le rajouter ici décalait le titre de 120 px supplémentaires
   à l'intérieur du bandeau — soit un bloc violet démesuré, titre en bas. */
.legal-hero {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.legal-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 12px;
}

.legal-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
}

.legal-body {
    padding: 56px 0 72px;
    background: var(--white);
}

/* Colonne de lecture : au-delà de ~75 caractères par ligne, l'œil perd le
   début de la ligne suivante. */
.legal-body .container {
    max-width: 820px;
}

.legal-body h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(75, 0, 130, .12);
}

.legal-body h2:first-of-type {
    margin-top: 0;
}

.legal-body p,
.legal-body li {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: .975rem;
}

.legal-body p {
    margin: 0 0 16px;
}

.legal-body a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-body a:hover {
    color: var(--primary-color);
}

.legal-maj {
    margin-top: 40px;
    color: var(--text-light);
    font-size: .875rem;
    font-style: italic;
}

/* ── Tableau des traitements ─────────────────────────────────────────────── */
/* Enveloppé dans .legal-table pour qu'il défile seul sur mobile : sans cela,
   c'est la page entière qui défile horizontalement. */
.legal-table {
    overflow-x: auto;
    margin: 0 0 24px;
    border: 1px solid #e6e6ee;
    border-radius: 8px;
}

.legal-table table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: .9rem;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eeeef4;
    vertical-align: top;
}

.legal-table thead th {
    background: var(--background-light);
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
}

.legal-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ── Écrans étroits ──────────────────────────────────────────────────────── */
/* Mêmes proportions que les autres bandeaux du site (cf. .gal-hero). */
@media (max-width: 768px) {
    .legal-hero {
        padding: 42px 0;
    }

    .legal-body {
        padding: 40px 0 56px;
    }

    .legal-body h2 {
        margin: 32px 0 12px;
    }
}

/* ── Page 404 ────────────────────────────────────────────────────────────── */
.erreur-404 {
    /* Même remarque que .legal-hero : le décalage du header est déjà appliqué
       sur body, il ne doit pas être compté une seconde fois. */
    padding: 80px 0 100px;
    text-align: center;
    background: var(--white);
}

.erreur-404 .code {
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    margin: 0;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.erreur-404 h1 {
    font-size: 1.5rem;
    margin: 16px 0 8px;
    color: var(--text-dark);
}

.erreur-404 p {
    color: var(--text-light);
    margin: 0 0 28px;
}

.erreur-404 .btn-retour {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--gradient-secondary);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-base);
}

.erreur-404 .btn-retour:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}
