/* Long-form legal text (privacy.html). Reuses the tokens from styles.css;
   only the reading column and the table are page-specific. */
.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding-block: 1rem 2rem;
  font-size: 18px;
  line-height: 1.6;
}
.legal h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
}
.legal h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
}
.legal p,
.legal ul,
.legal table {
  margin-top: 1rem;
}
.legal h1 + p,
.legal h2 + p {
  margin-top: 0.75rem;
}
.legal ul {
  padding-left: 1.5rem;
}
.legal li + li {
  margin-top: 0.5rem;
}
.legal .legal-note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.legal a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.legal thead th {
  font-weight: 700;
  border-bottom-color: var(--frame);
}
.legal tbody th {
  font-weight: 700;
}
@media (max-width: 40rem) {
  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal table,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
    width: 100%;
  }
  .legal tr {
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .legal th,
  .legal td {
    border: 0;
    padding: 0.15rem 0;
  }
  .legal td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--ink-soft);
  }
}
