/* Long-form legal & reference pages */

.legal-page main {
  padding-top: calc(var(--header-height) + 2rem);
}

.legal-content {
  max-width: 70ch;
}

.legal-content > * + * {
  margin-top: 1.25rem;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-content h2:first-of-type {
  margin-top: 2rem;
}

.legal-content p,
.legal-content li,
.legal-content dd {
  color: var(--text-2);
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--brand);
}

.legal-content address {
  line-height: 1.75;
  color: var(--text-2);
}

.legal-glossary {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.legal-glossary dt {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-glossary dd {
  margin: 0.5rem 0 0;
  padding-left: 0;
}

.legal-glossary dd + dt {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  padding-top: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  max-height: 2.25rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

@media (max-width: 767px) {
  .legal-page main {
    padding-top: calc(var(--header-height) + 1.25rem);
  }

  .legal-content {
    max-width: 100%;
  }
}
