/* Static legal pages (/impressum/, /datenschutz/). No JavaScript, no external resources.
   Colours mirror the app's design tokens (src/styles.css); the theme follows the system setting. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --border: #dde2e8;
  --text: #17202b;
  --text-2: #4a5666;
  --text-3: #5c6877;
  --accent: #14857a;
  --accent-strong: #0f6c63;
  --warn: #8a5a00;
  --warn-soft: #fdf4e1;
  --warn-border: #e8cf98;
  --focus: #1aa192;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161d;
    --surface: #171e27;
    --surface-2: #1c2530;
    --border: #2a3441;
    --text: #e6ebf1;
    --text-2: #aab5c3;
    --text-3: #8592a3;
    --accent: #3cbfae;
    --accent-strong: #5fd3c3;
    --warn: #e9b850;
    --warn-soft: #33290f;
    --warn-border: #5c4a1c;
    --focus: #5fd3c3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 7px; }
.skip-link:focus { left: 8px; }

.legal-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.legal-header-inner, .legal-main, .legal-footer-inner { max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.legal-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.legal-nav a[aria-current='page'] { color: var(--text); font-weight: 600; text-decoration: none; }

.legal-main { padding-top: 32px; padding-bottom: 56px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 10px; padding-top: 4px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol, dl, address { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }
address { font-style: normal; }
.lead { color: var(--text-2); }
.meta { color: var(--text-3); font-size: 14px; }
h2[id], h3[id], section[id] { scroll-margin-top: 16px; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 24px 0 8px; }
.toc h2 { font-size: 16px; margin: 0 0 6px; padding: 0; }
.toc ol { margin: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
dl.facts dt { color: var(--text-2); }
dl.facts dd { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 600; }
code { font-family: 'JetBrains Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace; font-size: 0.9em; overflow-wrap: anywhere; }

/* Development markers. scripts/check-legal.mjs reports them; `npm run release:check` fails while any remain. */
.draft-notice { background: var(--warn-soft); border: 1px solid var(--warn-border); color: var(--text); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0 24px; }
.placeholder { background: var(--warn-soft); border: 1px dashed var(--warn); color: var(--warn); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.review-note { display: block; background: var(--warn-soft); border-left: 3px solid var(--warn); color: var(--text-2); font-size: 14px; padding: 6px 10px; margin: 6px 0 14px; }

.legal-footer { border-top: 1px solid var(--border); background: var(--surface); }
.legal-footer-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 16px; padding-bottom: 20px; font-size: 14px; color: var(--text-3); }

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19px; }
  .legal-main { padding-top: 22px; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 10px; }
}
@media print {
  .legal-header, .legal-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
