/* legal.css — additions for the generated legal pages (/terms, /privacy, /research).
 *
 * The site's styles.css already covers .subpage h1/h2/h3/p/ul/.updated/.related.
 * The canonical legal markdown also uses tables, h4, blockquotes and inline
 * code, none of which .subpage styled — this file adds only those, using the
 * existing CSS variables so the pages stay on-brand.
 *
 * Loaded after styles.css. Generated pages reference it; see
 * scripts/build-legal.py.
 */

/* Long-form legal reads better slightly narrower and looser than a marketing
   subpage. */
.subpage.legal p,
.subpage.legal li {
  line-height: 1.7;
}

.subpage.legal h4 {
  font-size: 14.5px;
  margin: 20px 0 6px;
  color: var(--text);
}

/* "Same as the app" note under the updated line. */
.subpage.legal .legal-note {
  color: var(--text-faint);
  font-size: 13.5px;
  border-left: 2px solid var(--green-soft);
  padding-left: 12px;
  margin: -22px 0 30px;
}

.subpage.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.subpage.legal blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--green);
  background: var(--green-soft);
  border-radius: 0 8px 8px 0;
}
.subpage.legal blockquote p {
  margin: 0;
}

.subpage.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text);
}

/* Tables. The privacy policy's purposes and retention tables are wide, so the
   wrapper scrolls horizontally on phones rather than letting the page itself
   scroll sideways. */
.subpage.legal .table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.subpage.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 14px;
}

.subpage.legal thead th {
  background: var(--bg-raised);
  color: var(--text);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.subpage.legal th,
.subpage.legal td {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  vertical-align: top;
  color: var(--text-dim);
}

.subpage.legal tbody tr:last-child th,
.subpage.legal tbody tr:last-child td {
  border-bottom: 0;
}

.subpage.legal tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}
