/*
 * The Terms of Use and the Privacy Policy (`web/legal/*.html`), on their own
 * page and in the footer's policy dialog.
 *
 * Hand-written rather than added to `style.css`, which is a compiled Tailwind
 * build: its reset strips list bullets and gives tables no cell rules, and
 * both documents rely on lists, and the Privacy Policy on a table. Loaded on
 * every public page because the dialog can open from any of them.
 */
.legal-doc {
  color: #333;
  font-size: 16px;
  line-height: 26px;
  overflow-wrap: break-word;
}

.legal-doc p,
.legal-doc ul {
  margin: 0 0 14px;
}

.legal-doc h2 {
  margin: 32px 0 12px;
  color: #000000d9;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-doc h3 {
  margin: 22px 0 10px;
  color: #000000d9;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-doc__title {
  margin: 0 0 8px;
  color: var(--color-brand-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.legal-doc .legal-updated {
  color: #666;
  font-size: 14px;
}

.legal-doc .legal-updated + h2 {
  margin-top: 20px;
}

.legal-doc ul {
  padding-inline-start: 22px;
  list-style: disc;
}

.legal-doc li + li {
  margin-top: 6px;
}

.legal-doc li::marker {
  color: var(--color-brand-gold);
}

.legal-doc strong {
  color: #222;
  font-weight: 600;
}

.legal-doc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--color-brand-gold);
}

/* The table scrolls inside its own frame, so a phone never scrolls the page
   sideways to read it. */
.legal-doc .legal-table {
  margin: 0 0 14px;
  overflow-x: auto;
  border: 1px solid var(--color-line-150);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.legal-doc .legal-table:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: 2px;
}

.legal-doc .legal-table table {
  display: table;
  width: 100%;
  min-width: 36rem;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 21px;
}

.legal-doc .legal-table :is(th, td) {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-line-150);
}

.legal-doc .legal-table thead th {
  border-top: none;
  background: #f7f7f7;
  color: #000000d9;
  font-weight: 600;
  white-space: nowrap;
}

.legal-doc .legal-table tbody th {
  width: 28%;
  color: #222;
  font-weight: 600;
}

@media (max-width: 39.99rem) {
  .legal-doc {
    font-size: 15px;
    line-height: 24px;
  }

  .legal-doc h2 {
    font-size: 18px;
  }
}
