/* ==========================================================================
   Long-form pages — privacy, terms, 404.

   Loaded alongside site.css. Legal text is read, not skimmed, so it gets a
   narrower measure and looser leading than the marketing page.
   ========================================================================== */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.doc-header { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.doc-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 12px; }
.doc-updated { font-size: 14px; color: var(--text-3); }

.doc h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}
.doc h3 { font-size: 1.05rem; margin: 26px 0 10px; }

.doc p, .doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
.doc p + p { margin-top: 14px; }

.doc ul, .doc ol { margin: 14px 0 14px 22px; display: grid; gap: 9px; }
.doc li::marker { color: var(--text-3); }

.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { text-decoration-thickness: 2px; }

.doc strong { color: var(--ink); font-weight: 620; }

.doc-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  padding: 16px 18px;
  background: var(--bg-white);
  margin: 22px 0;
}
.doc-note p { font-size: 15px; margin: 0; }

.doc-toc {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  background: var(--bg-white);
  margin-bottom: 40px;
}
.doc-toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.doc-toc ol { margin: 0 0 0 18px; gap: 7px; }
.doc-toc a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.doc-toc a:hover { color: var(--accent); text-decoration: underline; }

.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); }
.doc th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); border-bottom-color: var(--border); }
.doc td { color: var(--text-2); }

/* ─── 404 ─────────────────────────────────────────────────── */

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound-code {
  font-size: clamp(4.5rem, 13vw, 9rem);
  font-weight: 750;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
}
.notfound p { margin: 16px auto 30px; max-width: 46ch; }
.notfound-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Cookie consent ──────────────────────────────────────── */

/* Bottom-anchored rather than a modal: nothing here blocks reading the page,
   and a banner that traps the visitor is worse than no banner. */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  transform: translateY(140%);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar[hidden] { display: none; }

.cookie-text { flex: 1 1 300px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; font-size: 13.5px; }

@media (max-width: 520px) {
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}

/* Return-from-checkout page: the outcome badge above the headline. */
.status-mark {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
}
.status-ok { background: var(--green-light); color: var(--green); }
.status-fail { background: var(--red-light); color: var(--red); }
