:root {
  --bg: #020817;
  --panel: #0f172a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b8c4d9;
  --gold: #d9b354;
  --blue: #3b82f6;
  --max-width: 920px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.14), transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(139, 92, 246, 0.1), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

.legal-hero,
.legal-content {
  scroll-margin-top: 130px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 112px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(2, 8, 23, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 64px;
}

.logo img {
  height: 58px;
  width: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  flex-shrink: 0;
}

.desktop-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #fff;
}

.top-cta {
  background: linear-gradient(135deg, #f2d27a, #c79632);
  color: #050505;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 18px 28px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  margin: 7px 0;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  background: #050915;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a {
  display: block;
  padding: 14px;
  color: #d7e2f2;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
  display: block;
}

/* ===================== LEGAL PAGE ===================== */
.legal-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 40px 48px;
  text-align: center;
}

.legal-hero .eyebrow {
  color: #a5c8ff;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.legal-hero .effective-date {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px 120px;
}

.legal-document {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 56px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.legal-document > p,
.legal-document > ul {
  margin-bottom: 1.25rem;
}

.legal-document > p:last-child {
  margin-bottom: 0;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.legal-document strong {
  color: var(--text);
}

.legal-document h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.legal-document h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-document ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-document li {
  margin-bottom: 0.65rem;
}

.legal-document li strong {
  color: #e2e8f0;
}

.sms-exclusion {
  margin-top: 1rem;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(217, 179, 84, 0.35);
  background: rgba(217, 179, 84, 0.08);
}

.sms-exclusion p {
  color: #e8edf5 !important;
  margin-bottom: 0 !important;
}

.contact-block {
  margin-top: 0.5rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-block a {
  color: #9ddaff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-block a:hover {
  color: #fff;
}

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 80px 60px;
}

.footer-brand img {
  height: 55px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h4 {
  color: var(--gold);
  margin-bottom: 20px;
}

.site-footer a {
  display: block;
  color: #d7e2f2;
  text-decoration: none;
  margin-bottom: 12px;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .legal-hero,
  .legal-content {
    scroll-margin-top: 100px;
  }

  .desktop-nav,
  .top-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .site-header {
    height: 96px;
    padding: 0 28px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .legal-hero {
    padding: 96px 20px 32px;
  }

  .legal-content {
    padding: 0 20px 80px;
  }

  .legal-document {
    padding: 32px 24px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 60px 24px;
  }
}
