/* Document pages (safety, help, developers, brand, legal).
   Each section is a ruled row: heading in the left column, text on the right.
   Needs site.css (page header, .rule-list). */

.doc { padding-bottom: 96px; }

.doc-toc { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 40px; }
.doc-toc a {
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.doc-toc a:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 24px 48px;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 96px;
}
.doc-row:last-child { border-bottom: 1px solid var(--border-soft); }
.doc-row > h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }

.doc-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
  margin-bottom: 16px;
}
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--text-primary); font-weight: 600; }
.doc-body a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
.doc-body .rule-list { max-width: 62ch; margin-bottom: 16px; }
.doc-body .rule-list:last-child { margin-bottom: 0; }

/* Brand swatches: flat blocks in one ruled strip */
.brand-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
  border: 1px solid var(--border-soft);
}
.swatch { padding: 64px 14px 14px; font-size: 14px; font-weight: 600; }
.swatch--teal  { background: #085041; color: #fff; }
.swatch--green { background: #1D9E75; color: #fff; }
.swatch--lime  { background: #97C459; color: #0A0A0A; }
.swatch--white { background: #FFFFFF; color: #0A0A0A; }

/* Legal pages */
.doc-updated { font-size: 14px; color: var(--text-muted); padding-bottom: 24px; }
.doc-body h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--text-primary); }
.doc-body h3:first-child { margin-top: 0; }
.doc-body code { font-family: var(--font-body); font-weight: 600; color: var(--text-primary); }

@media (max-width: 860px) {
  .doc-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .brand-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}