:root {
  --bg: #060708;
  --bg-elevated: #0b0d0f;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-strong: rgba(255, 255, 255, 0.04);
  --text: #f3eee6;
  --text-soft: #d2cabf;
  --muted: #a69883;
  --muted-soft: #7c7367;
  --line: rgba(198, 165, 98, 0.16);
  --line-strong: rgba(198, 165, 98, 0.32);
  --accent: #7ea8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --page-pad: clamp(22px, 5vw, 56px);
  --section-gap: clamp(72px, 9vw, 120px);
  --card-pad: clamp(22px, 2.8vw, 34px);
  --display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 168, 255, 0.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(67, 111, 186, 0.18), transparent 24%),
    linear-gradient(180deg, #060708 0%, #08090a 34%, #090b0d 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.22), transparent 42%);
  opacity: .3;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

main section[id] { scroll-margin-top: 104px; }
.site-shell { position: relative; isolation: isolate; }

.container {
  width: min(var(--container), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 7, 8, 0.72);
  border-bottom: 1px solid rgba(198, 165, 98, 0.1);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(198, 165, 98, 0.2) 14%, rgba(198, 165, 98, 0.2) 86%, transparent 100%);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1;
  text-decoration: none;
  letter-spacing: -.03em;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .18em;
  transition: color 180ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--text); outline: none; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}
.menu-toggle span { margin: 5px 0; }
body.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }
body.menu-open .menu-toggle span { opacity: 0; }

/* Policy pages use the existing site header, colors, and type. */
.legal-main { padding: clamp(44px, 6vw, 80px) 0 clamp(72px, 8vw, 110px); }
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-header { margin-bottom: 40px; }
.legal-header h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}
.legal-date { margin: 0; color: var(--muted); font-size: .9rem; }
.legal-content p, .legal-content li { color: var(--text-soft); }
.legal-content p { margin: 0 0 18px; }
.legal-content .legal-date { color: var(--muted); }
.legal-content section { margin-top: 36px; }
.legal-content h2 { margin: 0 0 12px; color: var(--text); font-size: 1.35rem; line-height: 1.35; letter-spacing: -.02em; }
.legal-content ul { margin: 0 0 18px; padding-left: 1.3em; }
.legal-content li + li { margin-top: 8px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere; }
.legal-content a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-footer {
  padding: 28px 0 32px;
  border-top: 1px solid rgba(126,168,255,.14);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: .88rem;
}
.footer-copyright { margin: 0; color: var(--muted); }
.footer-links {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .22em; }
.footer-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 78px 18px auto;
    background: rgba(9, 14, 24, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .menu-toggle { width: 100%; }
  .header-inner { min-height: 72px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav, .menu-toggle span, .menu-toggle::before, .menu-toggle::after { transition: none; }
}
