.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 246, 226, .96);
  border-bottom: 1px solid rgba(0, 67, 128, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-header-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  text-decoration: none;
}

.legal-brand img {
  width: auto;
  height: 54px;
  display: block;
}

.legal-brand-copy {
  display: grid;
  font-family: var(--font-heading);
  line-height: 1.05;
}

.legal-brand-copy strong {
  font-size: 1rem;
}

.legal-brand-copy span {
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 600;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}

.legal-home-link:hover {
  background: rgba(0, 67, 128, .07);
}

.legal-home-link svg,
.legal-header .btn-cta svg {
  width: 18px;
  height: 18px;
}

.legal-home-link svg {
  transform: rotate(180deg);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  color: #fff;
  background: var(--navy);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  right: -10%;
  bottom: -65%;
  border: clamp(40px, 6vw, 86px) solid rgba(253, 198, 67, .12);
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
}

.legal-kicker svg {
  width: 18px;
  height: 18px;
}

.legal-hero h1 {
  max-width: none;
  margin: 0 0 1.3rem;
  color: #fff;
  font-size: clamp(2.55rem, 6vw, 5rem);
  letter-spacing: -.035em;
  line-height: .98;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.legal-hero p {
  max-width: 66ch;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.legal-updated {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .48rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .76);
  font-size: .8rem;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 8rem);
}

.legal-toc {
  position: sticky;
  top: 104px;
}

.legal-toc h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: .84rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
}

.legal-toc a {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: .4rem;
  padding: .45rem .55rem;
  border-radius: 8px;
  color: #3c4b5d;
  font-size: .8rem;
  line-height: 1.35;
  text-decoration: none;
}

.legal-toc a::before {
  content: counter(legal-toc, decimal-leading-zero);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: rgba(0, 67, 128, .07);
  color: var(--navy);
}

.legal-content {
  min-width: 0;
  max-width: 76ch;
}

.legal-intro {
  margin: 0 0 3.5rem;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.legal-section {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0, 67, 128, .16);
  scroll-margin-top: 112px;
}

.legal-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.legal-section h2 {
  margin: 0 0 1.15rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}

.legal-section h3 {
  margin: 1.8rem 0 .7rem;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li,
.legal-address {
  color: #29394b;
  font-size: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.legal-section p {
  margin: 0 0 1rem;
}

.legal-section ul {
  display: grid;
  gap: .55rem;
  margin: .9rem 0 1.25rem;
  padding-left: 1.2rem;
}

.legal-section li::marker {
  color: var(--navy);
}

.legal-section .legal-dash-list {
  padding-left: 0;
  list-style: none;
}

.legal-section .legal-dash-list li {
  position: relative;
  padding-left: 1.1rem;
}

.legal-section .legal-dash-list li::before {
  position: absolute;
  left: 0;
  color: #29394b;
  content: "-";
}

.legal-section a,
.legal-address a {
  color: var(--navy);
  font-weight: 700;
  text-underline-offset: .18em;
}

.legal-section a:hover,
.legal-address a:hover {
  color: var(--teal);
}

.legal-address {
  display: grid;
  gap: .1rem;
  width: fit-content;
  max-width: 100%;
  margin: 1rem 0 1.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-style: normal;
}

.legal-address strong {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.legal-note {
  margin: 1.2rem 0 1.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: var(--cream-2);
  color: #29394b;
  line-height: 1.7;
}

.legal-note strong {
  color: var(--navy);
}

.legal-status-list {
  display: grid;
  gap: .75rem;
  margin: 1.15rem 0 1.4rem;
}

.legal-status-item {
  display: grid;
  grid-template-columns: minmax(110px, .34fr) minmax(0, 1fr);
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(0, 67, 128, .12);
}

.legal-status-item:last-child {
  border-bottom: 0;
}

.legal-status-item strong {
  color: var(--navy);
  font-family: var(--font-heading);
}

.legal-status-item span {
  color: #29394b;
  line-height: 1.6;
}

.legal-page .site-foot {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

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

  .legal-toc {
    position: static;
    padding: 1.2rem;
    border-radius: 12px;
    background: var(--cream-2);
  }

  .legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-content {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .legal-header-row {
    min-height: 68px;
  }

  .legal-brand img {
    height: 46px;
  }

  .legal-brand-copy,
  .legal-home-link span,
  .legal-header .btn-cta {
    display: none;
  }

  .legal-home-link {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

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

  .legal-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

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

  .legal-status-item {
    grid-template-columns: 1fr;
    gap: .3rem;
  }

  .legal-section {
    padding: 2rem 0;
  }
}
