/* Shared styling for the standalone legal pages (imprint, privacy, terms).
   Mirrors the landing palette so the pages don't read as a different site. */
:root {
  --bg: #020617;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --white-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);
  --glass-bg: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: white;
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(30,41,59,0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30,41,59,0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(2,6,23,1) 70%);
}
.legal-wrap { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }

.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.legal-top img { height: 26px; width: auto; display: block; }
.legal-back { color: var(--slate-400); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.legal-back:hover { color: white; }
.legal-back svg { width: 14px; height: 14px; }
.legal-lang { display: flex; align-items: center; gap: 6px; }
.legal-lang button {
  background: none; border: none; cursor: pointer; padding: 3px 7px; border-radius: 6px;
  color: var(--slate-600); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
}
.legal-lang button.is-on { color: white; background: var(--white-5); }
.legal-lang button:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 2px; }

h1 {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800;
  font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 12px;
}
.legal-updated { color: var(--slate-600); font-size: 12.5px; margin-bottom: 44px; }
h2 {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em; margin: 44px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--white-10);
}
h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 15px; margin: 24px 0 8px; }
p { color: var(--slate-400); font-size: 15px; margin-bottom: 14px; }
ul { color: var(--slate-400); font-size: 15px; margin: 0 0 14px 20px; }
li { margin-bottom: 7px; }
strong { color: white; font-weight: 700; }
a { color: #6ee7b7; text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 3px; border-radius: 2px; }

.legal-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 16px; padding: 26px; margin-bottom: 20px;
}
.legal-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
.legal-grid strong { display: block; margin-bottom: 3px; font-size: 13px; }
.legal-grid div { color: var(--slate-400); font-size: 14px; line-height: 1.7; }

.legal-note {
  background: rgba(213,35,46,0.07); border: 1px solid rgba(213,35,46,0.3);
  border-radius: 12px; padding: 16px 18px; margin: 28px 0;
}
.legal-note p { margin: 0; font-size: 13.5px; color: var(--slate-400); }

table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--white-10); color: var(--slate-400); vertical-align: top; }
th { color: white; font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.legal-scroll { overflow-x: auto; }

.legal-foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--white-10); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-foot a { color: var(--slate-500); font-size: 12.5px; }
.legal-foot a:hover { color: white; }

/* Language visibility — mirrors the landing page: the DE/EN toggle stamps
   lang on <html> and the inactive language is hidden. */
html[lang="de"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="de"] { display: none !important; }
