.a-legal-page {
  background: var(--navy);
}

.a-legal-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  height: 68px;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgb(8 27 51 / 94%);
  backdrop-filter: blur(18px);
}

.a-legal-header .a-brand {
  margin-left: clamp(20px, 3vw, 44px);
}

.a-legal-header-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 26px;
  padding-right: clamp(20px, 3vw, 42px);
}

.a-legal-header-nav > a:first-child {
  color: rgb(234 243 255 / 72%);
  font-size: 0.78rem;
  transition: color 180ms ease;
}

.a-legal-header-nav > a:first-child:hover {
  color: var(--white);
}

.a-legal-header-cta {
  display: grid;
  min-width: 94px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--ice);
  font-size: 0.76rem;
  transition: background 180ms ease, border-color 180ms ease;
}

.a-legal-header-cta:hover {
  border-color: var(--orange);
  background: rgb(255 122 0 / 8%);
}

.a-legal-main {
  padding-top: 68px;
}

.a-legal-hero {
  position: relative;
  min-height: clamp(26.25px, 3.25vw, 45px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 40%, rgb(8 102 255 / 25%), transparent 31%),
    linear-gradient(135deg, #081b33 0%, #0a2342 58%, #081b33 100%);
}

.a-legal-hero::before {
  position: absolute;
  top: 0;
  right: clamp(20px, 7vw, 120px);
  width: min(42vw, 560px);
  height: 100%;
  background-image: radial-gradient(circle, rgb(234 243 255 / 15%) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 35%, transparent);
}

.a-legal-hero-inner {
  position: relative;
  display: flex;
  min-height: inherit;
  align-items: flex-end;
  padding-block: 8.75px 6.75px;
}

.a-legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.a-legal-eyebrow::before {
  width: 34px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.a-legal-surface {
  background: var(--ice);
  color: var(--navy);
}

.a-legal-document {
  box-sizing: border-box;
  width: 80%;
  margin-inline: auto;
  padding-block-start: clamp(32px, 4.5vw, 66px);
  padding-block-end: clamp(64px, 9vw, 132px);
  padding-inline: 0;
}

.a-legal-document h1 {
  margin: 0 0 clamp(42px, 6vw, 76px);
  color: var(--navy);
  font-size: clamp(1.35rem, 3.2vw, 2.9rem);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.a-legal-document h2 {
  margin: clamp(52px, 7vw, 82px) 0 20px;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
  color: var(--navy);
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.a-legal-document h3 {
  margin: 38px 0 14px;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 720;
}

.a-legal-document p,
.a-legal-document li {
  color: rgb(8 27 51 / 82%);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.78;
}

.a-legal-document p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.a-legal-document p + p {
  margin-block-start: 10px;
}

.a-legal-document ul,
.a-legal-document ol {
  margin: 18px 0 24px;
  padding-left: 1.4rem;
}

.a-legal-document ul {
  list-style: disc;
}

.a-legal-document ol {
  list-style: decimal;
}

.a-legal-document li + li {
  margin-top: 8px;
}

.a-legal-document a {
  color: var(--blue);
  font-weight: 620;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.a-legal-document a:hover {
  color: #064fc9;
}

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

.a-legal-document hr {
  margin: 64px 0;
  border: 0;
  border-top: 1px solid rgb(8 27 51 / 18%);
}

@media (max-width: 760px) {
  .a-legal-header-nav {
    gap: 16px;
  }

  .a-legal-header-nav > a:first-child {
    display: none;
  }

  .a-legal-header-cta {
    min-width: 82px;
  }

  .a-legal-document {
    width: min(calc(100% - 40px), 1120px);
  }

  .a-legal-document h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }
}
