:root {
  --site-bg: #0a0118;
  --site-card: #1a0b2e;
  --site-cyan: #06b6d4;
  --site-orange: #f97316;
  --site-text: #f8fafc;
  --site-muted: #cbd5e1;
  --site-border: rgba(248, 250, 252, 0.16);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--site-text);
  color: var(--site-bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--site-orange);
  outline-offset: 3px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.site-footer-links a,
.cookie-preferences {
  color: var(--site-cyan);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.cookie-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 9999;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(920px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1rem;
  border: 1px solid var(--site-border);
  border-radius: 1rem;
  background: rgba(26, 11, 46, 0.98);
  color: var(--site-text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] { display: none; }
body.cookie-banner-visible {
  padding-bottom: var(--cookie-banner-offset, 0px);
}
.cookie-banner p { margin: 0; max-width: 650px; font-size: 0.92rem; }
.cookie-banner a { color: var(--site-cyan); }
.cookie-actions { display: flex; flex-shrink: 0; gap: 0.5rem; }

.cookie-actions button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--site-border);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--site-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions .cookie-accept {
  border-color: var(--site-cyan);
  background: var(--site-cyan);
  color: var(--site-bg);
}

.legal-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.12), transparent 34rem),
    var(--site-bg);
  color: var(--site-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.7;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.5rem max(1rem, calc((100% - 920px) / 2));
  border-bottom: 1px solid var(--site-border);
  background: rgba(10, 1, 24, 0.9);
}

.legal-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--site-text); text-decoration: none; }
.legal-nav .brand { color: var(--site-cyan); font-family: 'Syne', system-ui, sans-serif; font-weight: 800; }

.legal-content {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
  overflow-wrap: anywhere;
}

.legal-content h1,
.legal-content h2 { font-family: 'Syne', system-ui, sans-serif; line-height: 1.25; }
.legal-content h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 6vw, 3.6rem); }
.legal-content h2 { margin: 2.5rem 0 0.75rem; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--site-cyan); }
.legal-content h3 { margin: 1.5rem 0 0.5rem; }
.legal-content p,
.legal-content li { color: var(--site-muted); }
.legal-content a { color: var(--site-cyan); }
.legal-content ul { padding-left: 1.4rem; }
.legal-content li + li { margin-top: 0.45rem; }
.legal-updated { color: #94a3b8; }

.legal-footer {
  padding: 2rem 1rem;
  border-top: 1px solid var(--site-border);
  text-align: center;
  color: #94a3b8;
}

.faq-list { display: grid; gap: 1rem; margin-top: 2rem; }
.faq-list details { padding: 1.1rem 1.25rem; border: 1px solid var(--site-border); border-radius: 0.8rem; background: var(--site-card); }
.faq-list summary { min-height: 44px; cursor: pointer; color: var(--site-text); font-weight: 700; }
.faq-list details p { margin: 0.75rem 0 0; }

@media (max-width: 680px) {
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

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