/* Shared nav/footer/typography for the legal pages (Impressum, Datenschutzerklärung, AGB) --
   extracted here rather than duplicated three times inline the way index.html is fully
   self-contained, since these three pages genuinely share the same chrome. index.html itself
   stays untouched/self-contained -- this file is additive, not a refactor of it. Same token
   values as index.html's own inline <style> (kept in sync by hand, same as this whole site's
   no-build-step convention -- there's only ever one other file to check against). */

:root {
  --void: #0A0E16;
  --panel: #12161F;
  --panel2: #1A2029;
  --panel3: #212836;
  --line: #262C3B;
  --ink: #E8EAED;
  --dim: #7C8494;
  --dim2: #525A6B;
  --teal: #32D6C4;
  --teal-dim: #1B6E66;
  --amber: #F2A93B;
  --amber-dim: #8A611F;
  --red: #E5585F;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--teal-dim); color: var(--ink); }

.wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav (simplified -- no in-page anchor links on a standalone legal page) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark { width: 22px; height: 22px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--teal);
  color: #06201C;
  box-shadow: 0 0 0 1px var(--teal-dim), 0 8px 24px -12px rgba(50, 214, 196, 0.55);
}

.btn-primary:hover { background: #4EE4D2; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Legal content typography ---------- */

.legal-main { padding: 56px 0 80px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--teal-dim); }

.legal-main h1 {
  font-size: 32px;
  text-wrap: balance;
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 40px;
}

.legal-main h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.legal-main h2:first-of-type { border-top: none; padding-top: 0; }

.legal-main h3 {
  font-size: 15px;
  color: var(--ink);
  margin: 22px 0 8px;
}

.legal-main p, .legal-main li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--dim);
}

.legal-main strong { color: var(--ink); font-weight: 600; }

.legal-main a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--teal-dim); text-underline-offset: 2px; }
.legal-main a:hover { color: #4EE4D2; }

.legal-main ul, .legal-main ol { padding-left: 22px; margin: 12px 0; }
.legal-main li { margin-bottom: 6px; }

.legal-main p { margin: 0 0 14px; }

/* A visibly-marked, not-yet-filled-in field -- deliberately loud rather than quietly absent, so
   this page can never be mistaken for a finished, compliant Impressum. See docs/CHANGELOG.md's
   entry on why the operator's name/address are placeholders here. */
.legal-placeholder {
  color: var(--amber);
  background: rgba(242, 169, 59, 0.12);
  border: 1px dashed var(--amber-dim);
  border-radius: 4px;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.legal-notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 0 0 32px;
}

.legal-notice p { color: var(--ink); font-size: 13.5px; margin: 0; }

table.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13.5px;
}

table.legal-table th, table.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}

table.legal-table th { color: var(--ink); font-weight: 600; }

/* ---------- Footer (same shape as index.html's own) ---------- */

footer { padding: 40px 0 56px; }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-legal { font-size: 12px; color: var(--dim2); margin-top: 24px; }

@media (max-width: 620px) {
  .legal-main h1 { font-size: 26px; }
}
