/* Long-form legal pages. The landing page's styles cover a hero and a footer; a policy needs
 * readable prose, headings that can be scanned, and a table that survives a phone.
 *
 * The point of these two pages is that somebody actually reads them, so the measure is narrow, the
 * line height is generous, and nothing is in small grey type. A policy set in 11px is a policy
 * written to be skipped.
 */

.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: 8px 24px 96px;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg, #d7d7db);
}

.legal h2 {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.3;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal h2:first-child {
  margin-top: 16px;
  border-top: 0;
  padding-top: 0;
}

.legal h3 {
  font-family: var(--display);
  font-size: 16px;
  margin: 36px 0 12px;
}

.legal p {
  margin: 0 0 18px;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal li {
  margin: 0 0 10px;
}

.legal strong {
  color: #fff;
}

.legal a {
  color: var(--brand, #7ee787);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The retention table. Scrollable rather than squeezed on a narrow screen: a table that reflows
 * into unreadable columns is worse than one you swipe. */
.legal table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}

.legal th,
.legal td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 14ch;
}

.legal th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 500;
  white-space: nowrap;
}

.legal code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 640px) {
  .legal {
    padding: 8px 16px 72px;
    font-size: 14.5px;
  }
}
