/* PDF Merge — shared tokens, nav, footer, and doc-page type
   The homepage (index.html) has its own inline styles for the marketing components.
   This file covers everything used across privacy/terms/support and the shared nav+footer. */

:root {
  --paper:      #FBF7F7;
  --paper-warm: #F5EEEC;
  --ink:        #1A0304;
  --ink-soft:   #4A3A3A;
  --ink-mute:   #7F6E6E;
  --rule:       #E8DFDE;
  --red-deep:   #D20518;
  --red:        #EB081B;
  --orange:     #FC490E;
  --peach:      #F69E8D;

  --display:    "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:       "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:       "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max:        1240px;
  --gutter:     clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 6px rgba(210,5,24,0.25);
}
.nav-links {
  display: none;
  gap: 30px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 720px) { .nav-links { display: inline-flex; } }

/* ============ Doc pages (privacy/terms/support) ============ */
.doc {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}
.doc-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 40px;
  margin-bottom: 48px;
}
.doc-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.doc-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}
.doc-head h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 18ch;
}
.doc-head .updated {
  font-size: 14px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.doc-body {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .doc-body { grid-template-columns: 1fr 3fr; gap: 64px; align-items: start; }
}
.doc-toc {
  position: sticky;
  top: 100px;
  align-self: start;
}
.doc-toc h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-toc ol li {
  counter-increment: toc;
  font-size: 14px;
}
.doc-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--red);
  margin-right: 12px;
  font-size: 12px;
}
.doc-toc ol li a { color: var(--ink-soft); }
.doc-toc ol li a:hover { color: var(--ink); }

.doc-content h2 {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "wght" 550;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 20px;
  scroll-margin-top: 100px;
}
.doc-content h2 + p { margin-top: 0; }
.doc-content h3 {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "wght" 550;
  font-size: 20px;
  margin: 32px 0 12px;
  letter-spacing: -0.005em;
}
.doc-content p, .doc-content li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 66ch;
}
.doc-content p { margin: 0 0 18px; }
.doc-content ul {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 24px;
}
.doc-content ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.doc-content ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--red);
}
.doc-content section {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.doc-content section:first-child {
  padding-top: 0;
  border-top: 0;
}
.doc-content a.inline {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.doc-content a.inline:hover { color: var(--red-deep); }
.doc-content strong { color: var(--ink); font-weight: 600; }
.doc-content .callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--red);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.doc-content .callout p { margin: 0; color: var(--ink); }

/* ============ Footer ============ */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--rule); margin-top: 40px; }
.footer-inner {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer ul a:hover { color: var(--red); }
.footer .colophon { color: var(--ink-mute); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer .legal {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-mute);
  font-size: 13px;
}
