/* Simple pages (privacy, support): one readable column under the homepage's nav and footer.
   Loaded after base.css and home.css. */

.doc { padding: calc(70px + env(safe-area-inset-top) + clamp(36px, 7vw, 84px)) 0 clamp(72px, 9vw, 120px); }
.doc .wrap { max-width: calc(720px + 56px); }
@media (max-width: 600px) { .doc .wrap { max-width: calc(720px + 40px); } }

/* ---------- Body text (low specificity, so the named styles below win) ---------- */
.doc :where(p, li) { font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.doc :where(p) { margin: 0 0 14px; }
.doc :where(ul) { margin: 0 0 14px; padding-left: 1.25em; }
.doc :where(li) { margin: 0 0 8px; padding-left: .2em; }
.doc li::marker { color: var(--accent); }
.doc h2 { font: 700 clamp(26px, 3.2vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; margin: 0 0 14px; }
.doc h3 { font: 600 18px/1.3 var(--sans); margin: 28px 0 8px; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc .path { font-weight: 600; color: var(--ink); white-space: nowrap; }
.doc .note { font-size: 15px; color: var(--ink-2); }
.doc .eyebrow { font: 700 11.5px/1.2 var(--sans); letter-spacing: 1.6px; color: var(--accent); margin: 0; }

.doc-body a:not(.capsule) {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .18em; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  overflow-wrap: anywhere; transition: text-decoration-color .2s ease;
}
.doc-body a:not(.capsule):hover { text-decoration-color: var(--accent); }

/* An app button drawn inline in a sentence ("tap Aa"); negative margins keep the line height even. */
.inline-btn {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  vertical-align: middle; margin: -6px 2px -4px;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 .75px var(--stroke), 0 2px 6px var(--shadow);
}

/* ---------- Heading ---------- */
.doc-title { font: 700 clamp(40px, 6.4vw, 64px)/1.04 var(--serif); letter-spacing: -.015em; margin: 12px 0 18px; overflow-wrap: break-word; }
.doc-lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--ink-2); margin: 0; }
.doc-meta { margin: 16px 0 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* ---------- Sections ---------- */
.doc-section { margin-top: clamp(44px, 6vw, 64px); }
.doc-section + .doc-section { padding-top: clamp(40px, 5.5vw, 56px); margin-top: clamp(40px, 5.5vw, 56px); box-shadow: inset 0 .75px 0 var(--stroke); }

/* ---------- "In short" card ---------- */
.summary { margin-top: 36px; padding: 24px 26px; }
.doc .summary .eyebrow { margin-bottom: 14px; }
.summary-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.summary-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 0; }
.summary-list .glyph-badge { width: 30px; height: 30px; border-radius: 9px; color: var(--accent); margin-top: 1px; }
.summary-list p { margin: 0; line-height: 1.5; }

/* ---------- Contact card ---------- */
.contact { margin-top: 36px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap; }
.contact h2 { font-size: 24px; margin: 0 0 6px; }
.contact p { margin: 0; }
.contact .mail { font-weight: 600; }
.contact-text { flex: 1 1 320px; min-width: 0; }
.contact .capsule { flex: none; }
@media (max-width: 600px) {
  .summary, .contact { padding: 20px; }
  .contact .capsule { width: 100%; }
}

/* ---------- Questions (support page) ---------- */
.qa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.qa-head h2 { margin: 0; }
.qa-head .glyph-badge { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 .75px var(--stroke); }

/* ---------- Nav and footer ---------- */
/* On the narrowest phones the nav row is ~10px wider than the space inside its gutters; tighten it a little. */
@media (max-width: 400px) {
  .nav-row { gap: 10px; }
  .nav .brand { gap: 9px; }
  .nav .brand-name { font-size: 18px; }
  .nav-actions { gap: 8px; }
}
/* Narrower than that, the reading button becomes a round icon button (its label stays for screen readers). */
@media (max-width: 371px) {
  .nav-cta { width: 42px; padding: 0; }
  .nav-cta .label-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 350px) { .nav .brand-name { font-size: 16.5px; } }
/* Where you are, in the footer. */
.footer-links a[aria-current="page"] { color: var(--ink); }
