/* ============================================================================
   fAI — legal documents (terms, privacy, refunds).
   Loaded AFTER styles.css: the header, footer, sky, tokens and type come from
   the landing. This file only sets the reading column. These pages are read,
   not scrolled through, so the measure is narrow and the ornament is spare:
   the same hairlines and pink accent the landing uses.
   ========================================================================== */

.doc-page { position: relative; z-index: 1; padding: calc(var(--head-h) + clamp(2.5rem, 6vw, 4.5rem)) var(--gutter) clamp(4rem, 8vw, 6.5rem); }
.doc-page::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy-base) 55%, transparent), color-mix(in srgb, var(--navy-base) 88%, transparent) 30rem);
}

.doc { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.72; color: var(--fg-body); }
.doc h1 { margin: 0; max-width: 16ch; font-size: clamp(38px, 5.4vw, 62px); font-weight: 400; letter-spacing: -.045em; line-height: 1.04; }
.doc-rule { height: 1px; border: 0; margin: 30px 0 14px; background: linear-gradient(90deg, var(--fai-accent), var(--rim-strong) 30%, transparent); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 48px; font-size: 13px; color: var(--fg-ghost); }

.doc h2 {
  position: relative; margin: 64px 0 0; padding-top: 22px; border-top: 1px solid var(--hair);
  font-size: clamp(22px, 2.2vw, 27px); font-weight: 500; letter-spacing: -.03em;
}
.doc h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 64px; height: 1px; background: var(--fai-accent); }
.doc h3 { margin: 34px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; color: var(--fg-primary); }
.doc p { margin: 14px 0 0; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; padding-left: 4px; }
.doc li::marker { color: var(--fai-accent); }
.doc strong { font-weight: 600; color: var(--fg-primary); }
.doc a { color: var(--info); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--info) 40%, transparent); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc code {
  padding: 1px 6px; border: 1px solid var(--rim); border-radius: 5px;
  background: color-mix(in srgb, var(--navy-card) 80%, transparent);
  font-family: var(--font-mono); font-size: .86em; color: var(--fg-soft);
}

/* The one call-out these documents use: the promise that has to be impossible
   to miss (the unconditional refund, the freeze-with-export rule). */
.callout {
  margin: 30px 0 0; padding: 22px 24px;
  border: 1px solid var(--accent-border); border-radius: 14px;
  background: var(--accent-soft);
}
.callout p:first-child { margin-top: 0; }

/* A value the operator must fill in before this page is public. Loud on
   purpose: it must never survive to production unnoticed. */
.fillme {
  padding: 1px 6px; border: 1px dashed #ff6b6b; border-radius: 4px;
  background: #3a1010; color: #ffd2d2; font-family: var(--font-mono); font-size: .86em;
}

/* Conspicuous warranty disclaimer. UCC 2-316 requires a disclaimer of the
   implied warranty of merchantability to name it AND be conspicuous: bold, a
   contrasting frame and an all-caps lead line, not a wall of caps. */
.disclaimer {
  margin: 30px 0 0; padding: 22px 24px;
  border: 1.5px solid var(--fai-accent); border-radius: 14px;
  background: color-mix(in srgb, var(--navy-card) 85%, transparent);
  font-weight: 500; color: var(--fg-primary);
}
.disclaimer p { margin-top: 12px; }
.disclaimer p:first-child { margin-top: 0; }
.disclaimer .caps {
  display: block; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--fai-accent) 30%, white);
}

/* Opening paragraph under a document title. */
.lede { max-width: 62ch; margin-top: 18px; font-size: 18px; color: var(--fg-soft); }

@media (max-width: 720px) {
  .doc h1 { max-width: 13ch; }
  .doc h2 { margin-top: 52px; }
  .callout, .disclaimer { padding: 18px 20px; }
}
