/* Shared styling for the static legal pages — mirrors the app's design tokens
   (see web/src/index.css @theme). Standalone CSS so the Impressum stays
   reachable without loading the SPA (Impressumspflicht = must be public). */
:root {
  --abyss: #120f18;
  --base: #191521;
  --surface: #221c2e;
  --raised: #2b2438;
  --line: #3c3450;
  --ink: #f4eef8;
  --muted: #aaa0b9;
  --faint: #7c7389;
  --purr: #ff916d;
  --amber: #ffce6b;
  --danger: #ff6b7a;
  --mint: #7fe3b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* Top nav across the four documents — makes them read as one legal section. */
nav.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
nav.legal-nav a {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}
nav.legal-nav a:hover { color: var(--ink); border-color: var(--purr); }
nav.legal-nav a[aria-current="page"] {
  background: var(--purr);
  border-color: var(--purr);
  color: var(--abyss);
  font-weight: 600;
}

.back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.back:hover { text-decoration: underline; color: var(--purr); }

/* Draft warning — deliberately loud. This content is NOT lawyer-reviewed. */
.draft-banner {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: rgba(255, 206, 107, 0.1);
  border: 1px solid rgba(255, 206, 107, 0.45);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--amber);
  line-height: 1.5;
}
.draft-banner strong { color: var(--amber); }
.draft-banner .icon { flex: 0 0 auto; font-size: 1.1rem; line-height: 1.35; }

h1 { font-size: 1.9rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; margin: 2.4rem 0 0.5rem; scroll-margin-top: 1rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 0.35rem; color: var(--ink); }
p, li { color: var(--muted); }
strong { color: var(--ink); }
a { color: var(--purr); }
ul, ol { padding-left: 1.3rem; }
li { margin: 0.25rem 0; }
.stand { color: var(--faint); font-size: 0.9rem; margin: 0 0 0.5rem; }

/* Inline marker for open legal questions / to-be-decided items. */
.todo, .tbd {
  display: inline;
  background: rgba(255, 107, 122, 0.14);
  border: 1px solid rgba(255, 107, 122, 0.4);
  border-radius: 8px;
  padding: 0.05rem 0.4rem;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.92em;
}

/* Placeholder for real Impressum data to be filled before go-live. */
.ph {
  background: rgba(183, 157, 255, 0.14);
  border: 1px dashed rgba(183, 157, 255, 0.5);
  border-radius: 6px;
  padding: 0.02rem 0.35rem;
  color: var(--muted);
  font-weight: 600;
}

/* Values-forward callout for the community guidelines.
   `.values-callout` is the class the components use (it matches the app's
   `.prose-legal .values-callout`); `.values` is the name the hand-written
   files used and is kept so nothing that still says it loses its styling. */
.values,
.values-callout {
  background: rgba(127, 227, 184, 0.08);
  border-left: 3px solid var(--mint);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}
.values strong,
.values-callout strong { color: var(--mint); }

/* Inline code (the privacy policy names `localStorage`). Mirrors
   `.prose-legal code` in LegalLayout.tsx so both copies look the same. */
code {
  background: var(--raised);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
td { color: var(--muted); }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}
footer a { margin-right: 1rem; color: var(--muted); }
footer a:hover { color: var(--purr); }

/* A three-column table does not fit a phone: it scrolls inside itself
   instead of pushing the whole page sideways. */
@media (max-width: 640px) { table { display: block; overflow-x: auto; } }

/* Language switch and the note that the English text is a translation. */
.lang-switch { margin: -0.5rem 0 0.75rem; font-size: 0.85rem; }
.lang-switch a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); border-color: var(--purr); }
.translation-note { font-size: 0.85rem; color: var(--faint); margin: 0 0 1.5rem; line-height: 1.55; }
