:root {
  --navy: #0a1628;
  --navy-mid: #0f1f38;
  --navy-light: #152848;
  --gold: #6cc8e8;
  --gold-light: #92d9f5;
  --off-white: #f2f5f8;
  --warm-gray: #8a95a3;
  --white: #ffffff;
  --text-body: #4a5568;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108, 200, 232, 0.25);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  line-height: 1.2;
}

.nav-icon {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.legal-hero {
  background: var(--navy);
  color: var(--white);
  padding: 132px 5% 72px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 75% at 80% 30%, rgba(108, 200, 232, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
  pointer-events: none;
}

.legal-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.legal-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.75;
  max-width: 720px;
}

.legal-wrap {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 780px);
  gap: 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 5% 92px;
}

.legal-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 8px;
  padding: 22px;
}

.legal-toc h2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.legal-toc a {
  display: block;
  color: var(--text-body);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(13, 27, 42, 0.07);
  transition: color 0.2s;
}

.legal-toc a:last-child {
  border-bottom: 0;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--navy);
}

.legal-document {
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.08);
}

.effective-date {
  color: var(--warm-gray);
  font-size: 14px;
  margin-bottom: 34px;
}

.notice-box {
  border-left: 3px solid var(--gold);
  background: rgba(108, 200, 232, 0.08);
  padding: 18px 20px;
  color: var(--navy-light);
  font-size: 15px;
  margin-bottom: 38px;
}

.legal-document section {
  scroll-margin-top: 100px;
  padding-top: 8px;
  margin-top: 34px;
}

.legal-document section:first-of-type {
  margin-top: 0;
}

.legal-document h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal-document h3 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 24px 0 8px;
}

.legal-document p,
.legal-document li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.78;
}

.legal-document p + p {
  margin-top: 14px;
}

.legal-document ul {
  margin: 12px 0 0 20px;
}

.legal-document li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.legal-document strong {
  color: var(--navy);
  font-weight: 600;
}

.legal-document a {
  color: #16799e;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

footer {
  background: #080f17;
  padding: 52px 5% 34px;
  border-top: 1px solid rgba(108, 200, 232, 0.2);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.footer-brand .nav-icon {
  height: 42px;
  width: 42px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

@media (max-width: 820px) {
  .legal-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-toc {
    position: static;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 0 4%;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links li:first-child {
    display: none;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 11px;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .legal-hero {
    padding: 116px 5% 58px;
  }
}
