/* Legal pages. Same tokens as index.html, kept plain on purpose: these are
   documents, and a document that tries to be a landing page reads worse. */
:root{
  --bg:#ffffff; --ink:#0F1419; --muted:#556370; --line:#EBEEF0;
  --soft:#F1F4F6; --accent:#2563EB; --maxw:820px;
  /* Same scale as the app: sm 8 · md 12 · lg 16 · xl 24 · pill. */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:24px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Inter",sans-serif;
  /* The app sets headings in ui-rounded; matching it is what makes the site
     read as the same product rather than a page about it. */
  --font-display:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);
  -webkit-font-smoothing:antialiased;line-height:1.62;font-size:17px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
a{color:inherit}

.lhead{border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);z-index:5}
.lhead .wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px}
.lhead .back{font-weight:600;text-decoration:none}
.lhead nav{display:flex;gap:16px;margin-left:auto;flex-wrap:wrap}
.lhead nav a{color:var(--muted);text-decoration:none;font-size:15px}
.lhead nav a.on,.lhead nav a:hover{color:var(--ink)}

.doc{padding:40px 20px 72px}
.doc h1{font-family:var(--font-display);font-size:34px;line-height:1.2;letter-spacing:-.02em;margin:0 0 24px;font-weight:800}
.doc h2{font-family:var(--font-display);font-size:22px;line-height:1.3;margin:38px 0 10px;letter-spacing:-.01em;font-weight:800}
.doc h3{font-family:var(--font-display);font-size:18px;margin:26px 0 8px;font-weight:700}
.doc h4{font-size:16px;margin:20px 0 6px;color:var(--muted)}
.doc p{margin:0 0 14px}
.doc ul{margin:0 0 16px;padding-left:22px}
.doc li{margin:0 0 7px}
.doc hr{border:0;border-top:1px solid var(--line);margin:34px 0}
.doc code{background:var(--soft);padding:2px 6px;border-radius:6px;font-size:.9em}
.doc strong{font-weight:650}

/* Wide tables must scroll inside themselves — never push the page sideways. */
.tw{overflow-x:auto;margin:0 0 18px;border:1px solid var(--line);border-radius:var(--r-lg)}
table{border-collapse:collapse;width:100%;font-size:15.5px}
th,td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
th{background:var(--soft);font-weight:600;white-space:nowrap}
tr:last-child td{border-bottom:0}

/* A placeholder that still needs filling — impossible to mistake for finished. */
.todo{background:#fff3c4;color:#6b4e00;padding:1px 6px;border-radius:5px;font-size:.82em;
  font-weight:700;letter-spacing:.03em}
/* Die Fassung, die man gerade liest. Steht direkt unter dem Titel, weil eine
   Zustimmung ohne nachvollziehbare Fassung nichts wert ist -- und weil die
   Amtserklaerung ausdruecklich verspricht, dass die Fassung vorzeigbar ist. */
.stand{color:var(--muted);font-size:14.5px;margin:-8px 0 26px;letter-spacing:.01em}

.draft{border:1px solid #f0c36d;background:#fffaf0;border-radius:var(--r-lg);padding:14px 16px;margin:0 0 28px;font-size:15.5px}

.lfoot{border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:14.5px}
.lfoot .wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}

@media (max-width:560px){
  body{font-size:16px}
  .doc h1{font-size:27px}
  .doc{padding:28px 20px 56px}
}

/* Call to action on the reporting page — the one place a legal page needs a button. */
.doc a.cta{display:inline-block;margin:.4rem 0 .2rem;padding:.7rem 1.1rem;border-radius:.6rem;
  background:var(--accent,#2563EB);color:#fff;font-weight:700;text-decoration:none}
.doc a.cta:hover{filter:brightness(1.08)}
