/*
  Shared style for the static legal pages (apps/legal). Same-origin, no external
  font/CDN/tracking (AD-21/NFR-8), so it stays byte-for-byte inspectable. Root-
  absolute href (/assets/style.css) so the directory-per-page URLs (/datenschutz/
  ...) all resolve it. Palette mirrors apps/landing for brand continuity.
*/
:root {
  color-scheme: light dark;
  --bg: #f4f5fb;
  --card: #ffffff;
  --fg: #14141f;
  --muted: #55556a;
  --accent: #6d3bf5;
  --border: rgba(20, 20, 31, 0.12);
  --warn-bg: #fff4d6;
  --warn-fg: #6b4e00;
  --warn-border: rgba(107, 78, 0, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b14;
    --card: #16161f;
    --fg: #f4f4fb;
    --muted: #a0a0b8;
    --accent: #9d7bff;
    --border: rgba(244, 244, 251, 0.14);
    --warn-bg: #3a3212;
    --warn-fg: #ffe6a3;
    --warn-border: rgba(255, 230, 163, 0.24);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* Background on html too, so an overscroll bounce never flashes white/black. */
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.6;
  padding: 24px;
  /* Fill at least the viewport so a short page (e.g. the root index) does not
     leave a bar of the html background below the body. flex-start keeps the
     card at content height and top-aligned; the body bg fills the rest. */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  /* Long German compounds ("Datenschutzerklärung") and the mailto token must
     wrap instead of overflowing the card on narrow phones (~360-375px) and
     forcing a horizontal page scroll. hyphens uses the html lang=de-CH. */
  overflow-wrap: break-word;
  hyphens: auto;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 4px;
}
h1 { font-size: 1.7rem; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 28px 0 6px; }
p, li { color: var(--fg); }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 20px; }
.placeholder {
  background: var(--warn-bg);
  color: var(--warn-fg);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 0 0 24px;
}
a { color: var(--accent); }
nav.docs {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9rem;
}
ul.index { list-style: none; padding: 0; margin: 8px 0 0; }
ul.index li { margin: 10px 0; }
ul.index a { font-weight: 600; font-size: 1.05rem; }
footer { color: var(--muted); font-size: 0.8rem; margin-top: 24px; }
