/* legal.css : pages juridiques (CGU, confidentialité, mentions, cookies), reprises des maquettes */
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 48px 32px 80px; }
.doc-head h1 { font-family: 'Poppins', sans-serif; font-size: 28px; color: var(--deep); font-weight: 600; margin-bottom: 8px; }
.doc-head .updated { font-size: 12.5px; color: var(--text-muted); margin-bottom: 28px; }
.legal-note { display: flex; gap: 12px; background: var(--sage-light); border-radius: 12px; padding: 16px 18px; margin-bottom: 32px; }
.legal-note .icon { font-size: 15px; color: var(--sage-text); flex-shrink: 0; }
.legal-note p { font-size: 12.5px; color: var(--sage-text); line-height: 1.55; }
.toc { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 36px; }
.toc p.label { font-size: 11px; color: var(--text-muted); letter-spacing: 0.4px; margin-bottom: 10px; }
.toc ol { padding-left: 18px; }
.toc li { font-size: 12.5px; margin-bottom: 6px; }
.toc a { color: var(--text-dark); font-weight: 400; }
section.article { margin-bottom: 30px; }
section.article h2 { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--deep); font-weight: 600; margin-bottom: 10px; }
section.article p { font-size: 13.5px; color: var(--text-body); margin-bottom: 10px; }
section.article ul { padding-left: 20px; margin-bottom: 10px; }
section.article li { font-size: 13.5px; color: var(--text-body); margin-bottom: 6px; }
table.data-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
table.data-table th { background: var(--white); border: 0.5px solid var(--border); padding: 9px 12px; font-size: 11.5px; text-align: left; color: var(--deep); }
table.data-table td { border: 0.5px solid var(--border); padding: 9px 12px; font-size: 12.5px; color: var(--text-body); background: var(--white); }
table.info-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
table.info-table td { padding: 9px 0; font-size: 13px; border-bottom: 0.5px solid var(--border); }
table.info-table td:first-child { color: var(--text-muted); width: 200px; }
table.info-table td:last-child { color: var(--text-dark); font-weight: 500; }
table.cookie-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
table.cookie-table th { background: var(--white); border: 0.5px solid var(--border); padding: 10px 12px; font-size: 11.5px; text-align: left; color: var(--deep); }
table.cookie-table td { border: 0.5px solid var(--border); padding: 10px 12px; font-size: 12.5px; color: var(--text-body); background: var(--white); vertical-align: top; }
.req-tag { font-size: 9.5px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: var(--sage-light); color: var(--sage-text); white-space: nowrap; }
.no-tracking-banner { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; margin-bottom: 20px; }
.no-tracking-banner .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); color: var(--sage-text);
    display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.no-tracking-banner h3 { font-family: 'Poppins', sans-serif; font-size: 14.5px; color: var(--deep); margin-bottom: 4px; font-weight: 600; }
.no-tracking-banner p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.manage-box { background: var(--white); border: 0.5px solid var(--border); border-radius: 14px; padding: 20px; }
.manage-box p { font-size: 12.5px; color: var(--text-body); margin-bottom: 12px; }
.btn-manage { background: var(--deep); color: var(--white); font-size: 12.5px; font-weight: 500; padding: 10px 18px; border-radius: 8px; display: inline-block; }
.btn-manage { font: inherit; cursor: pointer; border: 1px solid var(--border); }
@media (max-width: 860px) { .doc-wrap { padding: 32px 20px 56px; } }

.placeholder-note { display: flex; gap: 12px; background: var(--terracotta-light); border-radius: 12px; padding: 16px 18px; margin-bottom: 32px; }
.placeholder-note p { font-size: 12.5px; line-height: 1.55; color: var(--terracotta-text); }
.tbd { color: var(--terracotta-text); font-weight: 400; }
.article code { background: #F1EFE8; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.article table + p, .article p + table { margin-top: 12px; }

/* Le dernier article est assez haut pour que, depuis le sommaire, chaque section puisse remonter en haut de l'écran */
.doc-wrap section.article:last-of-type { min-height: calc(100vh - 200px); margin-bottom: 0; }
