/* ==========================================================================
   TOILE DIGITALE - Pages légales (mentions, CGU), générées par tools/gen_legales.py
   S'appuie sur home.css et projet.css. Aucune police externe.
   ========================================================================== */
.l-hero {
    padding: clamp(7.5rem, 12vw, 9.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: var(--nuit);
    color: var(--alabaster);
}

.l-hero h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1;
}

.l-date {
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--vanilla);
}

.l-date em {
    font-style: normal;
}

.l-corps {
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.l-grille {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

/* Sommaire qui suit la lecture */
.l-sommaire {
    position: sticky;
    top: 7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--liver);
}

.l-sommaire ul {
    display: grid;
    gap: .55rem;
    margin-top: 1rem;
}

.l-sommaire a {
    font-size: .92rem;
    line-height: 1.4;
    color: var(--liver);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), color .3s var(--ease);
}

.l-sommaire a:hover {
    color: var(--nuit);
    border-bottom-color: var(--taupe);
}

.l-texte {
    max-width: 44rem;
}

.l-texte section + section {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.l-texte h2 {
    margin-bottom: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-light);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
    color: var(--nuit);
    scroll-margin-top: 7rem;
}

.l-texte p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.75;
}

.l-texte p:last-child {
    margin-bottom: 0;
}

.l-texte strong {
    color: var(--nuit);
}

.l-texte a {
    color: var(--liver);
    text-decoration: underline;
    text-decoration-color: var(--taupe);
    text-underline-offset: .25em;
}

.l-texte a:hover {
    color: var(--nuit);
}

@media (max-width: 860px) {
    .l-grille {
        grid-template-columns: 1fr;
    }

    .l-sommaire {
        position: static;
    }
}
