/* ==========================================================================
   LEGAL — Mentions légales / RGPD (editorial document)
   ========================================================================== */

.legal-page {
    padding: clamp(120px, 14vw, 180px) var(--gutter) var(--s-20);
    background: var(--paper);
}

.legal-container {
    max-width: var(--container-text);
    margin: 0 auto;
}

.legal-header {
    margin-bottom: var(--s-16);
    padding-bottom: var(--s-10);
    border-bottom: 1px solid var(--rule);
}

.legal-header .eyebrow { margin-bottom: var(--s-6); }

.legal-header h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: var(--s-6);
    font-variation-settings: "opsz" 144, "SOFT" 70;
}

.legal-header h1 em { color: var(--navy); font-style: italic; }

.legal-header p { font-size: var(--text-lg); color: var(--mute); line-height: 1.7; max-width: 60ch; }

/* Section blocks */
.legal-section {
    margin-bottom: var(--s-12);
    padding-top: var(--s-8);
    border-top: 1px solid var(--rule);
}

.legal-section:first-of-type { border-top: 0; padding-top: 0; }

.legal-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: var(--s-6);
    line-height: 1.15;
    font-variation-settings: "opsz" 60, "SOFT" 50;
}

.legal-section h2 .legal-num {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--mute-soft);
    margin-right: var(--s-3);
    font-weight: 400;
    letter-spacing: 0;
    font-variation-settings: normal;
    font-style: normal;
}

.legal-section h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink);
    margin: var(--s-8) 0 var(--s-3);
    letter-spacing: 0;
}

.legal-section p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: var(--s-4);
    max-width: 65ch;
}

.legal-section ul, .legal-section ol {
    margin: var(--s-4) 0;
    padding: 0;
    list-style: none;
}

.legal-section ul li {
    padding: var(--s-2) 0 var(--s-2) 24px;
    position: relative;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--ink);
}

.legal-section ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 500;
}

.legal-section a {
    color: var(--navy);
    border-bottom: 1px solid var(--navy);
    transition: opacity var(--t);
}

.legal-section a:hover { opacity: 0.7; }

/* Identity table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--s-6) 0;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    overflow: hidden;
}

.legal-table tr { border-bottom: 1px solid var(--rule-soft); }
.legal-table tr:last-child { border-bottom: 0; }

.legal-table th {
    text-align: left;
    padding: var(--s-4) var(--s-5);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mute);
    width: 200px;
    vertical-align: top;
    background: var(--stone);
    border-right: 1px solid var(--rule-soft);
}

[data-theme="dark"] .legal-table th { background: var(--stone-deep); }

.legal-table td {
    padding: var(--s-4) var(--s-5);
    font-size: var(--text-base);
    color: var(--ink);
    vertical-align: top;
}

/* Highlight box (zero data collection notice) */
.legal-highlight {
    background: var(--stone);
    border-left: 2px solid var(--ink);
    padding: var(--s-5) var(--s-6);
    margin: var(--s-6) 0;
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

[data-theme="dark"] .legal-highlight { background: var(--stone-deep); }

.legal-highlight p {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    line-height: 1.55;
    color: var(--ink);
    font-variation-settings: "opsz" 30, "SOFT" 80;
}

.legal-pending {
    color: var(--mute);
    font-style: italic;
    font-size: var(--text-sm);
}

.legal-update {
    text-align: center;
    margin-top: var(--s-16);
    padding-top: var(--s-8);
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mute-soft);
}

@media (max-width: 768px) {
    .legal-table th { width: 120px; padding: var(--s-3) var(--s-4); }
    .legal-table td { padding: var(--s-3) var(--s-4); }
}
