.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-header .shell,
.legal-footer .shell {
  display: flex;
  align-items: center;
  width: min(980px, calc(100% - clamp(2.5rem, 8vw, 5rem)));
  max-width: 980px;
  padding-inline: 0;
}

.legal-header .shell {
  justify-content: space-between;
  min-height: 4.5rem;
}

.legal-header .nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.legal-content {
  box-sizing: content-box;
  width: auto;
  max-width: 50rem;
  align-self: stretch;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter);
}

.legal-content h1 {
  font-size: clamp(2.125rem, 5vw, 3.625rem);
  font-weight: var(--sr-weight-heading);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.policy-date {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .875rem;
}

.legal-content section {
  margin-top: 2rem;
}

.legal-content h2 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: var(--sr-weight-heading);
  letter-spacing: -.015em;
}

.legal-content section p {
  max-width: 72ch;
  margin-top: .45rem;
  line-height: 1.65;
}

.legal-content a,
.legal-footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.legal-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.legal-footer .shell {
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  padding-block: 1.25rem;
  font-size: .875rem;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
}

.legal-footer [aria-current="page"] {
  color: var(--ink);
  font-weight: var(--sr-weight-heading);
}

@media (max-width: 36rem) {
  .legal-footer .shell { gap: .15rem 1rem; }
  .legal-content { margin-inline: 0; }
}
