/* =====================================================================
   Legal pages — Impressum & Datenschutz
   Tokens mirrored from the main styles.css (kept as a separate
   stylesheet to keep these pages lean, no React dependency).
   ===================================================================== */
:root {
  --acs-green: #2f6b3a;
  --acs-green-deep: #1f4a27;
  --acs-green-bright: #3d8a4b;
  --paper: #fbfbf9;
  --paper-2: #f3f3ef;
  --ink: #0e110e;
  --ink-2: #2a2e2a;
  --ink-3: #5a5e57;
  --line: rgba(14, 17, 14, 0.10);

  --f-display: 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--acs-green); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: var(--acs-green-deep); }
img { display: block; max-width: 100%; }

.legal-container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top nav ---------- */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 251, 249, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.legal-nav__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
}
.legal-logo { display: inline-flex; }
.legal-logo img {
  height: 44px; width: auto;
  image-rendering: -webkit-optimize-contrast;
}
.legal-back {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.legal-back:hover {
  color: var(--acs-green);
  border-color: var(--acs-green);
  background: rgba(47, 107, 58, 0.04);
}

/* ---------- Body ---------- */
.legal {
  padding: 80px 0 96px;
}

.legal-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acs-green);
  margin-bottom: 18px;
}

.legal h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}

.legal-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 0 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal section {
  margin-bottom: 48px;
}

.legal h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}

.legal h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal p, .legal ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 68ch;
}

.legal ul {
  padding-left: 22px;
}
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--acs-green); }

.legal code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 3px;
}

.legal-todo {
  display: inline-block;
  background: rgba(47, 107, 58, 0.08);
  color: var(--acs-green-deep);
  padding: 1px 8px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
}

.legal-note {
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
}

.legal-meta {
  margin-top: 56px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--paper-2);
}
.legal-footer__row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer__links {
  display: flex; gap: 22px;
}
.legal-footer__links a {
  color: var(--ink-3);
  text-decoration: none;
}
.legal-footer__links a:hover { color: var(--acs-green); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-container { padding: 0 22px; }
  .legal { padding: 56px 0 72px; }
  .legal-lede { margin-bottom: 40px; padding-bottom: 24px; }
  .legal section { margin-bottom: 36px; }
  .legal-back { display: none; }
}

/* ── FIFA badge (mirrored from main styles) ──────────────────────────── */
.fifa-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #001a6b 0%, #003DA5 60%, #001f80 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
}
.fifa-badge::after {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.fifa-badge__mark {
  font-family: "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  letter-spacing: -0.04em;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
}
.fifa-badge__text { display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.fifa-badge__title {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.fifa-badge__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.fifa-badge__status { color: #7be3a0; font-weight: 500; }
.fifa-badge__num { color: rgba(255,255,255,0.7); }
