/* Legal documents (terms / privacy) — rides on site.css + forms.css tokens,
   but a wide readable article instead of the 460px form column. */

.page.legal {
  max-width: 780px;
}

.doc h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.doc-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 26px;
}

.doc h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  scroll-margin-top: 24px;
}

.doc h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin: 20px 0 6px;
}

.doc p,
.doc li {
  font-size: 14.5px;
  line-height: 1.65;
}

.doc p {
  margin: 0 0 12px;
}

.doc ul,
.doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--accent);
}

.doc strong {
  font-weight: 650;
}

/* table of contents */
.toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.toc li {
  font-size: 13.5px;
  margin-bottom: 4px;
  break-inside: avoid;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

/* subprocessor / data tables */
.doc .table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.doc th,
.doc td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.doc th {
  background: var(--panel);
  font-weight: 650;
  white-space: nowrap;
}

.doc-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.doc-footer a {
  color: var(--accent);
}
