/* =========================================================
   MENTIONS LÉGALES (chargé après style.css)
   ========================================================= */
.legal-hero .hero-title { font-size: clamp(3.4rem, min(13vw, 22vh), 13rem); font-size: clamp(3.4rem, min(13vw, 22svh), 13rem); }
.legal-hero .hero-line + .hero-line { margin-top: -.02em; } /* l'accent du É monte à 1.11em : il faut ~.25em de plus entre les lignes */
.legal-hero .mascot-hero { width: min(34vw, 460px); bottom: 18%; }

/* En bref : trois cartes colorées */
.legal-facts { position: relative; z-index: 1; padding-top: 40px; padding-bottom: 24px; }
.facts {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 24px);
}
.fact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding: 28px;
    border-radius: var(--radius);
    border: 3px solid var(--ink);
    transition: transform .4s var(--ease);
}
.fact:nth-child(1) { rotate: -1deg; }
.fact:nth-child(3) { rotate: 1deg; }
.fact:hover { transform: translateY(-6px); }
.fact strong { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; word-break: break-word; }
.fact strong a { text-transform: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fact p { font-size: .95rem; opacity: .85; }
.card-grenat.fact { border-color: var(--grenat); }

/* Sommaire collant + contenu */
.legal { padding-top: clamp(60px, 8vw, 110px); }
.legal-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.toc-link {
    position: relative;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    color: rgba(22, 6, 10, .6);
    transition: background .3s, color .3s;
}
.toc-link:hover { color: var(--ink); background: rgba(22, 6, 10, .06); }
.toc-link.active { background: var(--ink); color: var(--cream); }

.legal-content { display: flex; flex-direction: column; gap: 20px; }
.legal-block {
    position: relative;
    padding: clamp(26px, 4vw, 48px);
    border-radius: var(--radius);
    background: #fff;
    border: 1.5px solid rgba(22, 6, 10, .1);
    scroll-margin-top: 30px;
}
.legal-num {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--grenat);
    color: var(--cream);
    font-family: var(--f-display);
    font-size: 1.2rem;
}
.legal-block:nth-child(3n+2) .legal-num { background: var(--gold); color: var(--ink); }
.legal-block:nth-child(3n+3) .legal-num { background: var(--green); }
.legal-block h2 {
    font-family: var(--f-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: .95;
    margin-bottom: 1.2rem;
}
.legal-block h3 { font-size: 1.1rem; font-weight: 700; margin: 1.8rem 0 .6rem; }
.legal-block p { font-size: 1.02rem; line-height: 1.7; color: rgba(22, 6, 10, .82); }
.legal-block p + p { margin-top: .8rem; }
.legal-block a { color: var(--grenat); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin-top: .4rem; }
.legal-list dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-top: .25rem; opacity: .6; }
.legal-list dd { font-size: 1.02rem; font-weight: 500; }
.legal-bullets { display: flex; flex-direction: column; gap: 8px; margin: 1rem 0; }
.legal-bullets li { position: relative; padding-left: 28px; line-height: 1.6; }
.legal-bullets li::before {
    content: '';
    position: absolute;
    left: 4px; top: .55em;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px var(--ink);
}
.legal-callout {
    margin-top: 1rem !important;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--blush);
    color: var(--ink) !important;
    font-weight: 700;
}

@media (max-width: 900px) {
    .facts { grid-template-columns: 1fr; }
    .fact:nth-child(n) { rotate: none; }
    .legal-grid { grid-template-columns: 1fr; }
    .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
    .legal-toc .footer-label { width: 100%; }
    .toc-link { border: 1.5px solid rgba(22, 6, 10, .15); font-size: .85rem; padding: 8px 14px; }
}
@media (max-width: 560px) {
    .legal-list { grid-template-columns: 1fr; gap: 2px; }
    .legal-list dd { margin-bottom: 10px; }
}
