/* ============================================================
   yourcustomprofile.app — help, privacy, terms
   A quiet reading surface. Tokens only, no new palette.
   ============================================================ */

.doc-page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 560px at 14% -12%, rgba(154, 163, 199, 0.12), transparent 62%),
    radial-gradient(820px 460px at 92% 2%, rgba(200, 207, 232, 0.07), transparent 58%),
    radial-gradient(680px 380px at 78% 96%, rgba(240, 163, 94, 0.045), transparent 60%),
    var(--bg-0);
}

.doc-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--sp-3, 12px);
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(5, 6, 11, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

/* The signature hairline, once, at the very top edge of the reading surface. */
.doc-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--spectrum);
  opacity: 0.5;
  pointer-events: none;
}

.doc-bar__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.doc-bar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-wrap {
  width: min(760px, 100% - 2 * clamp(16px, 4vw, 40px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) 0 120px;
}

.doc-hero { margin-bottom: clamp(24px, 4vw, 40px); }
.doc-hero h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.doc-hero p { color: var(--text-2); max-width: 62ch; }
.doc-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.doc-toc {
  margin: 0 0 clamp(24px, 4vw, 40px);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  background: rgba(8, 10, 18, 0.42);
}
.doc-toc p { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.doc-toc ol { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 24px; }
.doc-toc li { margin: 0; font-size: 0.86rem; }
.doc-toc li a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 520px) { .doc-toc ol { columns: 1; } }

.doc-section { margin-bottom: clamp(26px, 4vw, 38px); scroll-margin-top: 84px; }
.doc-section h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.doc-section h3 {
  margin: 18px 0 6px;
  font-size: 0.95rem;
  color: var(--text-1);
}
.doc-section p,
.doc-section li { color: var(--text-2); font-size: 0.9rem; line-height: 1.65; }
.doc-section p { margin: 0 0 10px; }
.doc-section ul, .doc-section ol { margin: 0 0 12px; padding-left: 1.15em; }
.doc-section li { margin-bottom: 6px; }
.doc-section li::marker { color: var(--text-3); }
.doc-section a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 36%, transparent); }
.doc-section a:hover { border-bottom-color: var(--accent-2); }
.doc-section strong { color: var(--text-1); font-weight: 600; }

.doc-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 0 10px 10px 0;
  background: rgba(154, 163, 199, 0.07);
  color: var(--text-2);
  font-size: 0.86rem;
}

.doc-faq { display: grid; gap: 8px; }
.doc-faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 10, 18, 0.42);
  padding: 12px 14px;
}
.doc-faq summary {
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-0);
  list-style: none;
}
.doc-faq summary::-webkit-details-marker { display: none; }
.doc-faq summary::after { content: "+"; float: right; color: var(--text-3); font-weight: 400; }
.doc-faq details[open] summary::after { content: "–"; }
.doc-faq details p { margin: 9px 0 0; }

.doc-foot {
  margin-top: clamp(32px, 5vw, 52px);
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-3);
}
.doc-foot a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text-2); text-decoration: none; }
.doc-foot a:hover { color: var(--text-0); }

/* ------------------------------------------------------------
   Doc pages carry the gothic world: bone type, one crimson mark.
   ------------------------------------------------------------ */
.doc-page .eyebrow { color: var(--world, var(--accent-2)); }

.doc-toc a:hover,
.doc-toc a:focus-visible { color: var(--world, var(--accent-2)); }

/* Narrow screens: the bar's CTA pair must not push the document wide. */
@media (max-width: 420px) {
  .doc-bar { flex-wrap: wrap; row-gap: 6px; padding-block: 10px; }
  .doc-bar__actions { margin-left: 0; width: 100%; }
  .doc-bar__actions .btn { flex: 1 1 0; justify-content: center; }
}
