/* The four legal pages (mentions-legales.html, cgu.html, confidentialite.html,
   sous-traitance.html): same chrome as the landing pages (.lp-* nav and footer, copied from
   agences.html), and plain, readable long-form text. Colors and fonts come from app.css. */
.lp-body { background: var(--paper); overflow: auto; }
/* No backdrop-filter on this bar pinned to the top: on Android (Chrome and Firefox), with it,
   the part of the page uncovered when the address bar slides away stayed blank until the next
   scroll. A near-opaque background looks the same. */
.lp-nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 250, 247, .97);
    border-bottom: 1px solid var(--hair);
}
.lp-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; }
.lp-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.lp-brand img { width: 26px; height: 26px; display: block; }
.lp-brand span { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.lp-nav-actions { display: flex; align-items: center; gap: 18px; }
.lp-nav-link { font-size: 13.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.lp-nav-link:hover { color: var(--ink); }
.lp-eyebrow {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--green);
    display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
}
.lp-eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--green); display: inline-block; }
.lp-footer {
    padding: 32px 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px;
    align-items: center; justify-content: space-between;
    font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.lp-footer a { color: var(--muted); }
.lp-footer a:hover { color: var(--ink); }
.lp-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.legal-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.legal-wrap h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
.legal-updated { margin: 0 0 28px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.legal-lede { font-size: 16.5px; color: var(--ink-2); margin: 0 0 28px; }
.legal-wrap h2 { font-size: 19px; line-height: 1.3; margin: 40px 0 10px; letter-spacing: -.005em; scroll-margin-top: 72px; text-wrap: balance; }
.legal-wrap h3 { font-size: 15.5px; margin: 24px 0 6px; }
.legal-wrap p, .legal-wrap ul, .legal-wrap ol { margin: 0 0 12px; }
.legal-wrap ul, .legal-wrap ol { padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--green-dark, var(--green)); }
.legal-wrap strong { font-weight: 600; }

/* Table of contents */
.legal-toc { background: var(--white); border: 1px solid var(--hair); border-radius: 12px; padding: 16px 20px; margin: 0 0 8px; font-size: 14px; }
.legal-toc b { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.legal-toc li { margin-bottom: 3px; break-inside: avoid; }

/* Identity blocks (the publisher, each host) */
.legal-card { background: var(--white); border: 1px solid var(--hair); border-radius: 12px; padding: 14px 18px; margin: 0 0 12px; }
.legal-card dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 4px 16px; margin: 0; }
.legal-card dt { color: var(--muted); font-size: 13.5px; }
.legal-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
    .legal-card dl { grid-template-columns: 1fr; gap: 0; }
    .legal-card dd { margin-bottom: 8px; }
}

/* Tables (processing, sub-processors) */
.legal-table-wrap { overflow-x: auto; margin: 4px 0 16px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); border: 1px solid var(--hair); border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--hair-soft, var(--hair)); }
.legal-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--sand); }
.legal-table tr:last-child td, .legal-table tr:last-child th { border-bottom: none; }
.legal-table tbody th { font-weight: 600; }

.legal-note { background: var(--sand); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }

/* A value the publisher still has to fill in before the page is final: impossible to miss. */
.legal-todo { background: #fff1c7; color: #7a5200; border-radius: 4px; padding: 0 5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
    /* One card per row: the row's heading, then each cell under its column name. */
    .legal-table { min-width: 0; }
    .legal-table, .legal-table tbody { display: block; }
    .legal-table thead { display: none; }
    .legal-table tr { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--hair-soft, var(--hair)); }
    .legal-table tr:last-child { border-bottom: none; }
    .legal-table th, .legal-table td { padding: 0; border: none; }
    .legal-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
}
