/* Legal pages — layered on top of ../styles.css (tokens, type, nav, footer).
   These pages deliberately do NOT load Google Fonts: the stack in styles.css
   falls back to Georgia / system-ui, so reading the privacy policy sends
   nothing to a third party. */

.legal-page{padding:2.5rem 0 5.625rem}

/* A small, static note: the pages are still drafts. Yellow = a missing fact,
   blue = a proposal pending approval, red box = a drafting note (see
   docs/legal-open-questions.md). */
.draft-banner{background:#fdecea;color:#7a1f1f;border-bottom:1px solid #f3c4bf;
  text-align:center;font-size:.78rem;line-height:1.4;padding:.3125rem 1rem}
.draft-banner strong{font-weight:700;letter-spacing:.04em;text-transform:uppercase}

/* the site footer with the company details (same content as site.css pages) */
.footer--legal{border-top:1px solid var(--line)}
.footer--legal .brand{align-items:center}
.footer--legal .brand svg{width:1.875rem;height:1.875rem}
.footer__imprint{display:grid;gap:.375rem;margin-top:2.25rem;padding-top:1.25rem;border-top:1px solid var(--line);
  color:var(--muted);font-size:.84rem;line-height:1.55}
.footer__imprint p{max-width:90ch}
.footer__imprint strong{color:var(--ink-2);font-weight:600}
.footer__imprint + .footer__bottom{margin-top:1.25rem;flex-wrap:wrap;gap:.75rem}
.ph-inline{background:#fff1a8;color:#5a4300;border:1px dashed #c9a600;border-radius:.25rem;padding:0 .25rem}

.legal-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.375rem 0;border-bottom:1px solid var(--line);margin-bottom:2.125rem;flex-wrap:wrap}
.legal-top nav{display:flex;gap:1.125rem;flex-wrap:wrap;font-weight:600;font-size:.95rem}
.legal-top nav a{color:var(--muted)}
.legal-top nav a:hover,.legal-top nav a[aria-current="page"]{color:var(--coral-deep)}

.legal h1{font-size:clamp(2rem,calc(4vw*var(--ui-scale,1)),2.8rem);margin-bottom:.625rem}
.legal .meta{color:var(--muted);font-size:.92rem;margin-bottom:1.625rem}
.legal h2{font-size:1.5rem;margin:2.75rem 0 .75rem;scroll-margin-top:4.375rem}
.legal h3{font-size:1.15rem;margin:1.625rem 0 .5rem}
.legal p,.legal li{font-size:1rem;max-width:72ch}
.legal p{margin:0 0 .875rem}
.legal ul,.legal ol{margin:0 0 1rem 1.3em}
.legal li{margin-bottom:.375rem}
.legal a{color:var(--coral-deep);text-decoration:underline;text-underline-offset:.125rem}
.legal code{font-size:.9em;background:var(--cream-2);border:1px solid var(--line);border-radius:.375rem;padding:.0625rem .3125rem}

.legal .toc{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.125rem 1.375rem;margin:0 0 1.875rem}
.legal .toc ol{margin-bottom:0}

/* the data tables can be wide — they scroll inside their own box, never the page */
.legal .table-wrap{overflow-x:auto;margin:0 0 1.125rem;border:1px solid var(--line);border-radius:.75rem;background:var(--card)}
.legal table{border-collapse:collapse;width:100%;min-width:38.75rem;font-size:.93rem}
.legal th,.legal td{text-align:left;vertical-align:top;padding:.625rem .75rem;border-bottom:1px solid var(--line)}
.legal th{background:var(--cream-2);font-family:inherit;font-weight:700}
.legal tr:last-child td{border-bottom:0}

/* [PLACEHOLDER] — a fact nobody has decided or supplied yet */
.ph{background:#fff1a8;color:#5a4300;border:1px dashed #c9a600;border-radius:.25rem;
  padding:0 .25rem;font-weight:700;white-space:normal}
/* a concrete number we propose, pending approval */
.proposal{background:#e3f1ff;color:#123d66;border:1px dashed #4a8bd1;border-radius:.25rem;padding:0 .25rem;font-weight:700}
.proposal::after{content:" (proposal — needs approval)";font-weight:500;font-size:.85em}

/* internal drafting notes: what the system does today vs. what this text promises */
.draft-note{background:#fdecea;border-left:.25rem solid #b3261e;border-radius:.5rem;
  padding:.75rem 1rem;margin:0 0 1.125rem;font-size:.92rem;color:#5c1712;max-width:72ch}
.draft-note strong:first-child{display:block;margin-bottom:.125rem}

.legal-foot{margin-top:3.75rem;padding-top:1.375rem;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem;
  display:flex;gap:1.125rem;flex-wrap:wrap}
.legal-foot a{color:var(--muted);text-decoration:underline}

@media (max-width:600px){
  .container{padding:0 1rem}
  .draft-banner{position:static}
  .legal h2{font-size:1.3rem}
}
