:root {
  --white: #ffffff;
  --bg: #f6f7fb;
  --gray: #2b2f36;
  --gray-soft: #5a6170;
  --blue: #0b1f4d;
  --blue-2: #0e2a6b;
  --green: #22c55e;
  --line: rgba(43, 47, 54, 0.1);
  --nav-height: 73px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 28px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--gray);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.display {
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(43, 47, 54, 0.06);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.nav-inner,
.hero-inner,
.legal-layout,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.brand:hover img {
  transform: rotate(-7deg) scale(1.04);
}

.brand-muted {
  color: var(--gray);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--blue);
  transform: translateX(-3px);
}

.reading-progress {
  position: fixed;
  inset: var(--nav-height) auto auto 0;
  z-index: 60;
  width: 0;
  height: 3px;
  background: var(--green);
  transform-origin: left;
}

.legal-hero {
  position: relative;
  min-height: 500px;
  padding: 150px 0 92px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-orbit {
  position: absolute;
  top: 115px;
  right: max(-80px, calc((100vw - 1180px) / 2 - 90px));
  width: 330px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: orbit-breathe 5s ease-in-out infinite;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-orbit::after {
  top: 18px;
  left: 76px;
  width: 11px;
  height: 11px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.14);
}

@keyframes orbit-breathe {
  50% { transform: scale(1.035) rotate(5deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 800;
}

.hero-copy {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.75;
}

.effective-date {
  display: inline-flex;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: clamp(52px, 8vw, 110px);
  align-items: start;
  padding: 88px 0 120px;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 36px);
  max-height: calc(100vh - var(--nav-height) - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 31, 77, 0.2) transparent;
}

.toc-label {
  margin: 0 0 18px;
  color: var(--gray-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legal-toc nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.legal-toc a {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--gray-soft);
  font-size: 13px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.legal-toc a::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 2px;
  background: transparent;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--blue);
}

.legal-toc a.active {
  font-weight: 700;
}

.legal-toc a.active::before {
  background: var(--blue);
}

.legal-content {
  min-width: 0;
}

.summary-note {
  margin-bottom: 64px;
  padding: 24px 26px;
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: var(--white);
  color: var(--gray-soft);
  box-shadow: 0 16px 45px -36px rgba(11, 31, 77, 0.45);
}

.summary-note strong {
  color: var(--gray);
}

.summary-note a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(11, 31, 77, 0.25);
  text-underline-offset: 4px;
}

.legal-section {
  padding: 0 0 54px;
  margin: 0 0 54px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.legal-section h2 {
  margin: 0 0 20px;
  color: var(--gray);
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 800;
}

.legal-section h3 {
  margin: 30px 0 10px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 750;
}

.legal-section p {
  margin: 0 0 17px;
  color: var(--gray-soft);
}

.legal-section ul {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.legal-section li {
  position: relative;
  margin: 12px 0;
  padding-left: 25px;
  color: var(--gray-soft);
}

.legal-section li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.legal-section strong {
  color: var(--gray);
}

.legal-section a,
.contact-link {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(11, 31, 77, 0.25);
  text-underline-offset: 4px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.contact-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.contact-band .contact-link {
  flex: 0 0 auto;
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  padding: 58px 0 32px;
  background: var(--gray);
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.footer-copy {
  max-width: 410px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.footer-label {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.js .hero-animate,
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .hero-animate.is-visible,
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 64px;
  }

  .legal-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
    border-left: 0;
  }

  .legal-toc a {
    padding-left: 0;
  }

  .legal-toc a::before {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root { --nav-height: 67px; }

  .nav-inner,
  .hero-inner,
  .legal-layout,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .back-link span {
    display: none;
  }

  .legal-hero {
    min-height: 455px;
    padding: 125px 0 70px;
  }

  .legal-hero h1 {
    font-size: 43px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-orbit {
    right: -190px;
    opacity: 0.7;
  }

  .legal-toc nav {
    grid-template-columns: 1fr;
  }

  .summary-note,
  .contact-band {
    padding: 21px;
  }

  .legal-section {
    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: auto;
  }
}

@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;
  }
}
