/* ═══════════════════════════════════════════════════
   LEGAL.CSS — Styles spécifiques aux pages légales
   Hérite de style.css, ne surchage que le nécessaire
   ═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   LAYOUT PAGE
───────────────────────────────────────── */
.legal-page {
    padding-top: var(--nav-h);
    min-height: 100vh;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.legal-hero {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--c-border);
}

.legal-hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.035em;
    margin: var(--space-sm) 0 var(--space-sm);
}

.legal-hero__meta {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    font-weight: 400;
}

/* ─────────────────────────────────────────
   TABLE DES MATIÈRES
───────────────────────────────────────── */
.legal-toc {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-yellow);
    border-radius: 10px;
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
}

.legal-toc__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 0.75rem;
}

.legal-toc__list {
    list-style: decimal;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.legal-toc__list a {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    transition: color 0.2s ease;
    text-decoration: none;
}

.legal-toc__list a:hover {
    color: var(--c-yellow);
}

/* ─────────────────────────────────────────
   SECTIONS LÉGALES
───────────────────────────────────────── */
.legal-section {
    position: relative;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--c-border);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section--highlighted {
    background: rgba(123, 47, 255, 0.03);
    border-radius: 12px;
    padding: var(--space-lg) var(--space-md);
    border: 1px solid rgba(123, 47, 255, 0.12);
    margin: var(--space-sm) calc(-1 * var(--space-md));
    border-bottom: 1px solid rgba(123, 47, 255, 0.12);
}

/* Badge numéro */
.legal-section__badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-yellow);
    margin-bottom: 0.4rem;
}

/* Titre de section */
.legal-section__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

/* Corps */
.legal-section__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.legal-section__body p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.75;
    color: rgba(240, 240, 240, 0.75);
}

.legal-section__body a {
    color: var(--c-yellow);
    text-decoration: underline;
    text-decoration-color: rgba(255, 229, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.legal-section__body a:hover {
    text-decoration-color: var(--c-yellow);
}

/* Sous-titres H3 */
.legal-subsection {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--c-text);
    margin-top: var(--space-sm);
    margin-bottom: 0.25rem;
}

/* ─────────────────────────────────────────
   CARTE D'INFOS (dl)
───────────────────────────────────────── */
.legal-card {
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: var(--space-md);
}

.legal-card--contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: flex-start;
}

.legal-card--contact p {
    margin: 0;
}

.legal-dl {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-dl__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    align-items: baseline;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--c-border);
}

.legal-dl__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-dl__row dt {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.legal-dl__row dd {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--c-text);
    line-height: 1.5;
}

.legal-dl__row dd strong {
    color: var(--c-yellow);
}

/* ─────────────────────────────────────────
   TABLEAU
───────────────────────────────────────── */
.legal-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--c-border);
}

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

.legal-table th {
    background: var(--c-surface-2);
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
}

.legal-table td {
    padding: 0.75rem 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(240, 240, 240, 0.75);
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
}

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

.legal-table td.legal-table__yes {
    color: var(--c-yellow);
    font-weight: 500;
}

.legal-table td.legal-table__no {
    color: var(--c-text-muted);
}

/* ─────────────────────────────────────────
   LISTE DES DROITS
───────────────────────────────────────── */
.legal-rights {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: var(--space-md);
    background: var(--c-surface);
    border-radius: 10px;
    border: 1px solid var(--c-border);
}

.legal-rights li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(240, 240, 240, 0.75);
}

.legal-rights__icon {
    color: var(--c-yellow);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-rights strong {
    color: var(--c-text);
}

/* ─────────────────────────────────────────
   LISTE SIMPLE
───────────────────────────────────────── */
.legal-list {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.legal-list li {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(240, 240, 240, 0.75);
    list-style: disc;
}

/* ─────────────────────────────────────────
   NOTE LÉGALE
───────────────────────────────────────── */
.legal-note {
    font-size: 0.78rem !important;
    color: rgba(240, 240, 240, 0.35) !important;
    font-style: italic;
    padding: 0.6rem 0.8rem;
    border-left: 2px solid var(--c-border);
}

/* ─────────────────────────────────────────
   BOUTON RETOUR
───────────────────────────────────────── */
.legal-back {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-border);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 639px) {
    .legal-dl__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .legal-section--highlighted {
        margin: var(--space-sm) 0;
    }
}