/* ============================================================================
   legal.css — Aurora styling for the standalone legal pages (Datenschutz /
   Privacy / AGB / ToS / Impressum), all rendered from _legal_base.html.
   Self-contained ON PURPOSE (front-door isolation — these pages never load
   dashboard.css), parallel to login.css. The Aurora tokens + .au-bg-*/.au-logo-*
   primitives MIRROR dashboard.css :root (1234-1296) / login.css — keep in sync.
   Replaces the old yellow (#facc15/#fde047) look; long-form-text readable.
   JEDE var()-Nutzung trägt einen Literal-Fallback (Go-Live-Vorfall 2026-07-10:
   Browser des CEO verwarfen auf Desktop+Mobile exakt die :root-Regel → alle
   var()-Werte wurden unset → weiße Seite mit schwarzem Text, während die
   Server-Datei nachweislich byte-identisch korrekt war). Fallback-Werte beim
   Ändern der Tokens MIT pflegen (= Kopie des :root-Werts).
   ============================================================================ */

:root {
  --au-bg: #07080d;
  --au-bg-2: #0a0c14;
  --au-panel-solid: #11131c;
  --au-border: rgba(120, 130, 160, 0.10);
  --au-border-strong: rgba(140, 150, 180, 0.20);
  --au-text: #e8e9f0;
  --au-text-2: #c4c6d2;
  --au-muted: #aab0c2;
  --au-muted-2: #4d5163;
  --au-aurora-1: #6b7cff;   /* indigo */
  --au-aurora-2: #a78bfa;   /* violet */
  --au-aurora-3: #2dd4bf;   /* teal   */
  --au-amber: #f5b462;
  --au-red: #fb7185;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--au-bg, #07080d);
  color: var(--au-text, #e8e9f0);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.7;
  padding: 28px 16px 64px;
  position: relative;
  overflow-x: hidden;
}

/* Background stack — fixed, behind everything (mirror login.css/dashboard.css). */
.au-bg-ambient, .au-bg-grid, .au-bg-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.au-bg-ambient {
  background:
    radial-gradient(ellipse 1000px 700px at 18% 0%, rgba(107, 124, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 800px 500px at 85% 10%, rgba(167, 139, 250, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(45, 212, 191, 0.04) 0%, transparent 55%);
}
.au-bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.au-bg-vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.35) 100%);
}

/* Skip-to-content (a11y) — Aurora violet focus. */
.skip-link {
  position: absolute; left: 8px; top: -44px; z-index: 100000;
  background: var(--au-text, #e8e9f0); color: var(--au-bg, #07080d);
  padding: 8px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--au-aurora-2, #a78bfa); }

/* Brand header (wordmark → back to the app), above the document card. */
.legal-header {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto 18px;
  text-align: center;
}
.legal-brand {
  display: inline-flex; align-items: baseline; text-decoration: none;
}
.au-logo-wordmark {
  font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(95deg, #b9c6ff 0%, #d6c2ff 35%, #95f6e3 75%, #b9c6ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-transform: uppercase;
  animation: au-shimmer 6s ease-in-out infinite;
}
@keyframes au-shimmer { 50% { background-position: 100% 0; } }
.au-logo-cursor {
  display: inline-block; width: 0.42em; height: 1em;
  background: var(--au-aurora-3, #2dd4bf); margin-left: 0.18em; vertical-align: text-bottom;
  border-radius: 1.5px; animation: au-blink 1.4s steps(2, jump-none) infinite;
  box-shadow: 0 0 10px var(--au-aurora-3, #2dd4bf);
}
@keyframes au-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }

/* Document card — subtle glass, more opaque than the login card for readability. */
main {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.82) 0%, rgba(9, 11, 18, 0.78) 100%);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--au-border, rgba(120, 130, 160, 0.10));
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 40px -16px rgba(0,0,0,0.6);
  padding: 34px 32px;
}

/* Headings. */
h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 25px; font-weight: 700; margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(95deg, #b9c6ff 0%, #d6c2ff 40%, #95f6e3 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 {
  color: var(--au-aurora-2, #a78bfa);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; margin: 30px 0 10px;
  text-transform: uppercase; letter-spacing: 0.10em;
  border-bottom: 1px solid var(--au-border, rgba(120, 130, 160, 0.10));
  padding-bottom: 6px;
}
h3 { color: var(--au-text, #e8e9f0); font-size: 14px; font-weight: 600; margin: 20px 0 6px; }

/* Body text. */
p, li { font-size: 13.5px; color: var(--au-text-2, #c4c6d2); }
strong { color: var(--au-text, #e8e9f0); font-weight: 600; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }

/* Links — teal, matching the login footer / cursor accent. */
a { color: var(--au-aurora-3, #2dd4bf); text-decoration: none; }
a:hover { color: #6ee7d8; text-decoration: underline; }

/* Inline code. */
code {
  background: rgba(15, 18, 28, 0.6);
  border: 1px solid var(--au-border, rgba(120, 130, 160, 0.10));
  color: var(--au-aurora-3, #2dd4bf);
  padding: 1px 6px; border-radius: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
}
pre {
  background: rgba(15, 18, 28, 0.6);
  border: 1px solid var(--au-border, rgba(120, 130, 160, 0.10));
  border-radius: 8px; padding: 12px 14px; overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
  color: var(--au-text-2, #c4c6d2);
}

/* Tables (Sub-Processors list). */
table {
  width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 14px 0;
}
th, td { border: 1px solid var(--au-border, rgba(120, 130, 160, 0.10)); padding: 7px 11px; text-align: left; }
th {
  background: rgba(107, 124, 255, 0.06);
  color: var(--au-text-2, #c4c6d2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
}
td { color: var(--au-text-2, #c4c6d2); }

/* "Stand / Effective" meta line under h1. */
.meta {
  color: var(--au-muted, #aab0c2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; margin: 0 0 24px;
}

/* DRAFT — NOT YET LEGALLY REVIEWED banner (amber = warning, not brand violet). */
.draft-banner {
  background: rgba(245, 180, 98, 0.09);
  border: 1px solid rgba(245, 180, 98, 0.45);
  border-left: 3px solid var(--au-amber, #f5b462);
  padding: 14px 18px; margin: 0 0 28px; border-radius: 10px;
}
.draft-banner strong { color: var(--au-amber, #f5b462); }
.draft-banner p { color: #f6c98d; margin: 6px 0 0; font-size: 12px; }
.draft-banner code {
  background: rgba(245, 180, 98, 0.12);
  border-color: rgba(245, 180, 98, 0.3);
  color: var(--au-amber, #f5b462);
}

/* Bottom nav (language-following legal links + DE/EN toggle). */
.nav-bar {
  text-align: center; margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--au-border, rgba(120, 130, 160, 0.10));
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: var(--au-muted, #aab0c2); letter-spacing: 0.04em;
}
.nav-bar a { color: var(--au-text-2, #c4c6d2); margin: 0 8px; text-decoration: none; }
.nav-bar a:hover { color: var(--au-aurora-3, #2dd4bf); }
