/* Legal pages: the site's tokens (../styles.css), a single reading column. */
.legal-page {
  background: var(--background);
  min-height: 100vh;
}

.legal-page .site-header {
  border-bottom-color: var(--border);
}

/* No menu here, so the two buttons stay at every width. */
.legal-page .nav {
  justify-content: space-between;
}

.legal-page .nav__actions {
  display: flex;
}

.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-wrap {
  max-width: 46rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-kicker {
  margin-bottom: 0.75rem;
}

.legal-wrap h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-wrap p {
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 1.15rem;
  max-width: 65ch;
}

.legal-contact {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.legal-contact a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--brand);
}

.legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .legal-wrap {
    padding: 1.5rem;
  }

  .legal-page .nav__actions .btn--ghost {
    display: none;
  }

  .legal-page .lockup__eyebrow {
    display: none;
  }
}

/* After `.legal-wrap p`, which would otherwise grey the label and cut the rules short. */
.legal-wrap .legal-kicker {
  color: var(--brand);
}

.legal-wrap .legal-updated,
.legal-wrap .legal-contact {
  max-width: none;
}
