.legal {
  padding-block: clamp(3rem, 8vw, 7rem);
}

.legal-header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.legal-header p {
  color: var(--muted);
  margin: 0;
}

.legal-copy {
  max-width: 72ch;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-copy h2,
.legal-copy h3 {
  line-height: 1.25;
  font-weight: 500;
}

.legal-copy h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.legal-copy h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

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

.legal-table {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--rule);
}

.legal-table:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.legal-table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.8rem;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table th {
  background: var(--surface);
}

.footer-inner a[aria-current="page"] {
  text-decoration: underline;
}
