/* Shared styles for long-form doc pages — privacy, terms, about, contact.
 * Inherits design tokens (--ink, --bg, --rule, etc.) from base.html.
 * Linked from each doc template via {% block extra_head %}.
 */

body { position: relative; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(180, 200, 220, 0.20), transparent 55%),
    linear-gradient(to bottom, #fbfaf7 0%, #f7f5f1 100%);
  pointer-events: none;
}

.doc-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 36px;
  text-align: left;
}
.doc-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-whisper);
  margin: 0 0 16px;
}
.doc-title {
  font-family: ui-serif, "New York", "Iowan Old Style", "Charter", 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 144, 'wght' 500;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.doc-lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 14px;
  text-wrap: pretty;
}
.doc-meta {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-whisper);
  margin: 0;
}

.doc-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.doc-section {
  border-top: 1px solid var(--rule);
  padding: 40px 0 8px;
  scroll-margin-top: 96px;
}
.doc-section:last-of-type { border-bottom: 1px solid var(--rule); padding-bottom: 40px; }

.doc-section__index {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-whisper);
  margin: 0 0 10px;
}
.doc-section__title {
  font-family: ui-serif, "New York", "Iowan Old Style", "Charter", 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 36, 'wght' 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.doc-section h3 {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, 'SF Pro Text', 'SF Pro Display', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-whisper);
  margin: 28px 0 12px;
}

.doc-section p,
.doc-section li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.doc-section p { margin: 0 0 14px; }
.doc-section p:last-child { margin-bottom: 0; }

.doc-section strong { color: var(--ink); font-weight: 600; }

.doc-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px;
}
.doc-section ul li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 10px;
}
.doc-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--ink-whisper);
}
.doc-section ul li:last-child { margin-bottom: 0; }

.doc-section a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 150ms ease, color 150ms ease;
}
.doc-section a:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Loud-caps legal paragraph (limitation-of-liability style) gets a
   tighter setting so it reads as the formal artefact it is, without
   becoming visually deafening. */
.doc-section .legal-caps {
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 1.6;
  color: var(--ink-soft);
}

.doc-cta-row {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.doc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
  box-shadow: 0 10px 30px -10px rgba(26, 23, 21, 0.4), 0 2px 6px rgba(26, 23, 21, 0.08);
}
.doc-cta:hover { background: #000; transform: translateY(-1px); }
.doc-cta__arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.doc-cta-related {
  font-size: 14px;
  color: var(--ink-soft);
}
.doc-cta-related a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 150ms ease, color 150ms ease;
}
.doc-cta-related a:hover { color: var(--terracotta); border-color: var(--terracotta); }

@media (max-width: 600px) {
  .doc-hero { padding: 40px 24px 28px; }
  .doc-section { padding-top: 32px; }
}
