/* Static legal pages (served by the API container; the only JavaScript is
   web/public/besuch.js, for the visit counter's opt-out button). Colours
   follow the app's tokens in web/src/app.css; dark mode follows the device. */
:root {
  --bg: #fbfcfa;
  --surface: #e5f4ee;
  --ink: #12302b;
  --muted: #4a625d;
  --line: #dce8e3;
  --accent-text: #0b6e5a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1816;
    --surface: #10211e;
    --ink: #e3efeb;
    --muted: #8fa9a2;
    --line: #203934;
    --accent-text: #7edbc0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 760px; margin: auto; padding: 0 20px 72px; }
nav {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
nav a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
nav .brand { font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
h1 { margin: 36px 0 6px; font-size: clamp(28px, 6vw, 38px); font-weight: 650; line-height: 1.15; letter-spacing: -0.03em; }
h2 { margin: 40px 0 8px; font-size: 21px; line-height: 1.3; }
h3 { margin: 24px 0 4px; font-size: 17px; }
p, ul, ol { margin: 8px 0; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--accent-text); text-underline-offset: 2px; }
.meta { color: var(--muted); font-size: 15px; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
.scroll { overflow-x: auto; margin: 12px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }
code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 16px 0; }
.analytics-optout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.analytics-optout button {
  font: inherit; font-weight: 650; min-height: 44px; padding: 8px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
