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

.legal-page .site-header,
.legal-page .site-header.is-scrolled,
.legal-page .site-header:not(.is-scrolled) {
  border-bottom-color: rgba(11, 11, 11, 0.14);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.legal-main {
  padding: calc(var(--header-height) + clamp(56px, 8vw, 120px)) var(--page-padding) clamp(80px, 10vw, 150px);
}

.legal-hero,
.legal-content {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.legal-hero {
  padding-bottom: clamp(36px, 5vw, 72px);
  border-bottom: 3px solid var(--black);
}

.legal-eyebrow {
  margin: 0 0 18px;
  color: var(--violet);
  font: 700 0.78rem/1 "Dazzle Unicase", Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 11ch;
  margin: 0;
  font: 700 clamp(3.4rem, 9vw, 8.5rem)/0.86 "Dazzle Unicase", Impact, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.legal-intro {
  max-width: 760px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.legal-updated {
  margin: 22px 0 0;
  color: #5d5d5d;
  font-size: 0.86rem;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  padding-top: clamp(48px, 7vw, 96px);
}

.legal-index {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.legal-index p {
  margin: 0 0 14px;
  color: #666;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-index nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-index a {
  width: fit-content;
  border-bottom: 1px solid transparent;
  font-size: 0.92rem;
  text-decoration: none;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  border-bottom-color: currentColor;
}

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

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-section + .legal-section {
  margin-top: clamp(50px, 7vw, 86px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(11, 11, 11, 0.22);
}

.legal-section h2 {
  margin: 0 0 24px;
  font: 700 clamp(1.75rem, 3.5vw, 2.8rem)/1 "Dazzle Unicase", Impact, sans-serif;
  letter-spacing: -0.02em;
}

.legal-section h3 {
  margin: 32px 0 10px;
  font-size: 1rem;
}

.legal-section p,
.legal-section li,
.legal-data dd {
  line-height: 1.7;
}

.legal-section p {
  margin: 0 0 18px;
}

.legal-section ul {
  margin: 18px 0 0;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 10px;
}

.legal-section a {
  text-underline-offset: 3px;
}

.legal-data {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--black);
}

.legal-data dt,
.legal-data dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.2);
}

.legal-data dt {
  padding-right: 20px;
  font-weight: 700;
}

.legal-note {
  margin: 30px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 5px solid var(--violet);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

.cookie-status {
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--lime);
}

.cookie-status strong {
  display: block;
  margin-bottom: 10px;
  font: 700 clamp(1.2rem, 2.2vw, 1.6rem)/1.1 "Dazzle Unicase", Impact, sans-serif;
}

.cookie-status p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .legal-main {
    padding-top: calc(var(--header-height) + 46px);
  }

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

  .legal-index {
    position: static;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(11, 11, 11, 0.22);
  }

  .legal-index nav {
    flex-flow: row wrap;
    gap: 9px 18px;
  }

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

  .legal-data dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .legal-data dd {
    padding-top: 4px;
  }
}
