:root {
  --ink: #142b38;
  --muted: #536976;
  --line: #d6e8ef;
  --paper: #ffffff;
  --wash: #f3f9fc;
  --teal: #0089c3;
  --teal-dark: #1d4459;
  --mint: #e1f5fc;
  --warning: #fff7e8;
  --warning-line: #e6a847;
  --shadow: 0 18px 55px rgba(29, 68, 89, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--teal-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.1;
}

.button-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 25px rgba(0, 137, 195, 0.26);
}

.nav-links .button-primary {
  color: white;
}

.button-primary:hover,
.nav-links .button-primary:hover {
  background: var(--teal-dark);
  color: white;
}

.legal-hero {
  padding: 5rem 0 3rem;
  color: white;
  background: linear-gradient(115deg, #142b38, #087da9);
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  color: #9bdff7;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.legal-content {
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-content section {
  padding: 0 0 2rem;
  scroll-margin-top: 95px;
}

.legal-content section + section {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

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

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
}

p,
ul {
  margin: 0.65rem 0 0;
}

ul {
  padding-left: 1.25rem;
}

.notice {
  margin-bottom: 2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--warning-line);
  background: var(--warning);
}

.placeholder {
  display: inline-block;
  max-width: 100%;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  background: #fff0cc;
  color: #70470a;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.legal-nav {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 118px);
  overflow-y: auto;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.legal-nav strong {
  display: block;
  margin-bottom: 0.7rem;
}

.legal-nav a {
  display: block;
  padding: 0.36rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--teal);
}

.footer {
  padding: 2rem 0;
  background: #132b39;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  font-size: 0.92rem;
}

.footer-brand {
  align-self: center;
  justify-self: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.footer-groups {
  display: contents;
}

.footer-links {
  align-self: start;
  display: grid;
  gap: 0.45rem;
  justify-self: center;
  width: min(100%, 230px);
}

.footer-links strong {
  color: white;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.footer a:hover {
  color: white;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 780px) {
  .nav {
    min-height: 64px;
  }

  .brand img {
    width: 54px;
  }

  .legal-hero {
    padding: 3.6rem 0 2.5rem;
  }

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

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

  .footer-brand,
  .footer-links {
    align-self: start;
    justify-self: start;
    text-align: left;
  }

  .legal-nav {
    position: static;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
