/*
 * Prose styling for the legal surfaces (privacy, terms). Tokens come from
 * tokens.css; nothing here redefines a brand colour. Kept separate from
 * landing.css because the landing page is a single composed layout and these
 * are long-form documents with different rhythm.
 */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.doc-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.doc .doc-meta {
  color: var(--sv-ink-soft);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.doc h2 {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sv-paper-edge);
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.doc h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

.doc p,
.doc li {
  color: var(--sv-ink);
  line-height: 1.65;
}

.doc p { margin: 0 0 1rem; }

.doc ul {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.doc li { margin-bottom: 0.55rem; }

/* The summary block at the top. Carries the whole answer for anyone who
   reads one paragraph and leaves, which is most people. */
.doc-summary {
  background: var(--sv-paper-raised);
  border: 1px solid var(--sv-paper-edge);
  border-left: 4px solid var(--sv-spruce);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem 0.35rem;
  margin: 0 0 2.5rem;
}

.doc-summary p:last-child { margin-bottom: 1rem; }

.doc-note {
  color: var(--sv-ink-soft);
  font-size: 0.95rem;
}

.doc footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sv-paper-edge);
  color: var(--sv-ink-soft);
  font-size: 0.9rem;
}

.doc footer p { color: inherit; margin-bottom: 0.5rem; }
