/* ==========================================================================
   Acephal — legal pages (/confidentialite/, /mentions-legales/)
   Loaded after home.css and projet.css (compact header, breadcrumb, tokens).
   ========================================================================== */

.legal {
    max-width: 46rem;
    margin-inline: auto;
    padding: var(--space-6) var(--space-5);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    background: var(--surface-white);
    color: var(--text-body);
    line-height: 1.65;
}

.legal h2 {
    margin-top: var(--space-6);
    font-size: 1.15rem;
    font-weight: var(--weight-bold);
    line-height: 1.3;
    color: var(--text-strong);
}

.legal > h2:first-of-type {
    margin-top: var(--space-5);
}

.legal p,
.legal ul {
    margin-top: var(--space-3);
}

.legal ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.legal li::marker {
    color: var(--accent-on-light);
}

.legal li + li {
    margin-top: var(--space-2);
}

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

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

.legal__updated {
    font-size: 0.85rem;
}

/* Information still to be supplied by Acephal, shown as "En cours de traitement".
   The class is kept to find these spots easily once the details are known. */
.todo {
    font-style: italic;
}

@media (min-width: 600px) {
    .legal {
        padding: var(--space-7) var(--space-6);
    }
}

/* Terms of sale (/conditions-generales-de-vente/): table of contents, price table, print. */
.legal__toc {
    margin-top: var(--space-4);
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-panel);
    font-size: 0.95rem;
}

.legal__toc ol {
    padding-left: 1.25rem;
    list-style: decimal;
    columns: 2 16rem;
    column-gap: var(--space-6);
}

.legal__toc li {
    break-inside: avoid;
}

.legal h3 {
    margin-top: var(--space-5);
    font-size: 1rem;
    font-weight: var(--weight-bold);
    color: var(--text-strong);
}

.legal > ol {
    margin-top: var(--space-3);
    padding-left: 1.25rem;
    list-style: decimal;
}

.legal h2[id] {
    scroll-margin-top: var(--space-6);
}

.legal__table {
    margin-top: var(--space-3);
    overflow-x: auto;
}

.legal__table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal__table th,
.legal__table td {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--line-light);
    text-align: left;
}

.legal__table thead th {
    color: var(--text-strong);
}

.legal__sign {
    margin-top: var(--space-6);
}

@media print {
    .site-header,
    .site-footer,
    .top__bg,
    .legal__toc {
        display: none;
    }

    .legal {
        max-width: none;
        padding: 0;
        border: 0;
    }
}
