/* Shared legal-page styles — Retrograde Studios (Daft Punk-inspired theme) */
:root {
  --void: #050508;
  --black: #0a0a0c;
  --surface: #121218;
  --surface-elevated: #1a1a22;
  --chrome: #c8ccd4;
  --chrome-bright: #e8ecf2;
  --chrome-dim: #8a90a0;
  --gold: #d4a84b;
  --gold-bright: #f0d080;
  --cyan: #00f0ff;
  --magenta: #ff00aa;
  --text: #e4e6ec;
  --text-muted: #b0b4c0;
  --border: rgba(200, 204, 212, 0.12);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.35), 0 0 60px rgba(0, 240, 255, 0.12);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 760px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
a:hover { text-shadow: var(--glow-cyan); }
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--cyan);
  color: var(--void);
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
}
.site-header .inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--chrome-bright);
  text-decoration: none;
}
.logo img {
  width: 40px;
  height: 40px;
  display: block;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}
.logo-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 500;
}
.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
}
.header-nav a { color: var(--text-muted); }
.header-nav a:hover,
.header-nav a[aria-current="page"] { color: var(--cyan); }

main.legal {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.legal h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.5rem;
  background: linear-gradient(120deg, var(--chrome-bright), var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal .disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.15rem;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.legal h3 {
  font-size: 0.95rem;
  color: var(--cyan);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.06em;
}
.legal p, .legal li {
  color: var(--text);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.legal ul, .legal ol {
  margin: 0 0 1rem 1.25rem;
}
.legal li { margin-bottom: 0.4rem; }
.legal .muted { color: var(--text-muted); }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--black);
  padding: 2rem 1.25rem;
}
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--chrome-dim);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--cyan); }

/* Cookie banner (static pages) */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 240, 255, 0.08);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cookie-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cookie-banner button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--cyan);
  color: var(--void);
}
.cookie-banner button:hover { filter: brightness(1.08); }
.cookie-banner button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.cookie-banner .linkish {
  background: transparent;
  color: var(--cyan);
  padding: 0.55rem 0.25rem;
  font-weight: 500;
}

/* 320px: keep brand and nav from colliding / overflowing the header */
@media (max-width: 420px) {
  .site-header {
    height: auto;
  }
  .site-header .inner {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    gap: 0.55rem 0.75rem;
  }
  .logo {
    min-width: 0;
  }
  .logo-text {
    font-size: 0.82rem;
  }
  .header-nav {
    flex: 1 1 100%;
    gap: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
}
