.legal-page {
  background: #071421;
}

.legal-main {
  padding-top: var(--header-h);
}

.legal-shell {
  width: min(calc(100vw - 10vw), 1140px);
  margin-inline: auto;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 11vh, 8.5rem) 0 clamp(4.5rem, 8vh, 6rem);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(72,169,166,.18), transparent 32%),
    radial-gradient(circle at 82% 30%, rgba(216,92,50,.15), transparent 28%),
    linear-gradient(180deg, rgba(7,20,33,.99), rgba(7,20,33,.95));
}

.legal-hero .legal-shell {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 10ch;
  margin: 1rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 6.7rem);
  line-height: .9;
  letter-spacing: -.055em;
  color: var(--white);
}

.legal-hero h1 em {
  display: block;
  font-weight: 400;
  color: var(--aqua-soft);
}

.legal-lead {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}

.legal-update {
  margin-top: 1.4rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.legal-content {
  padding: clamp(4.5rem, 9vh, 7rem) 0 clamp(5rem, 10vh, 8rem);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(190px, .36fr) minmax(0, 1.64fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.legal-grid--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: .5rem;
  padding: 1.3rem;
  border: 1px solid rgba(7,20,33,.08);
  border-radius: 22px;
  background: rgba(7,20,33,.025);
}

.legal-index > span {
  margin-bottom: .45rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2c3d51;
}

.legal-index a {
  font-size: .82rem;
  line-height: 1.35;
  color: rgba(7,20,33,.6);
  transition: color .2s ease, transform .2s ease;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: #2c3d51;
  transform: translateX(3px);
}

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

.legal-copy section {
  scroll-margin-top: calc(var(--header-h) + 2rem);
  padding: 0 0 clamp(3.4rem, 6vh, 4.7rem);
  margin-bottom: clamp(3.4rem, 6vh, 4.7rem);
  border-bottom: 1px solid rgba(7,20,33,.10);
}

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

.legal-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(72,169,166,.45);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  color: #2c3d51;
}

.legal-copy h2 {
  max-width: 18ch;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.045em;
  color: #071421;
}

.legal-copy p,
.legal-copy li {
  font-size: clamp(.98rem, 1.12vw, 1.08rem);
  line-height: 1.78;
  color: rgba(7,20,33,.78);
}

.legal-copy p + p {
  margin-top: 1rem;
}

.legal-copy ul {
  display: grid;
  gap: .7rem;
  margin: 1rem 0 1.1rem;
  padding-left: 1.2rem;
}

.legal-copy a:not(.legal-button) {
  color: #2c3d51;
  text-decoration: underline;
  text-decoration-color: rgba(72,169,166,.55);
  text-underline-offset: .2em;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.3rem;
  padding: .9rem 1.2rem;
  border: 1px solid rgba(7,20,33,.12);
  border-radius: 999px;
  background: #071421;
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: transform .25s ease, background .25s ease;
}

.legal-button:hover,
.legal-button:focus-visible {
  transform: translateY(-2px);
  background: #2c3d51;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
}

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

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: rgba(141,212,207,.95);
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-index > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .legal-main {
    padding-top: calc(var(--header-h) - 4px);
  }

  .legal-shell {
    width: min(calc(100vw - 32px), 1140px);
  }

  .legal-hero {
    padding-top: 5.4rem;
  }

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

  .legal-copy h2 {
    max-width: 100%;
  }
}
