/* Support and privacy pages. Builds on home.css (tokens, fonts, bar, footer, reveal). */

/* Set the page colours here too, so a stale or missing home.css can never pair light text with a light page. */
body.doc { background: #15181B; color: #F4F3EE; color-scheme: dark; }

.doc-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50rem 22rem at 90% 0%, rgba(255, 196, 107, 0.08), transparent 60%),
    repeating-linear-gradient(90deg, rgba(244, 243, 238, 0.022) 0 1px, transparent 1px 64px),
    var(--graphite); }
.doc-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); line-height: 1.02; max-width: 24ch; }
.doc-hero .lede { margin: 1.5rem 0 2rem; max-width: 40rem; }
.doc-meta { color: var(--steel); font-size: 0.9rem; margin: 1.1rem 0 0; }
.doc-meta strong { color: var(--porcelain-dim); font-weight: 600; }
.doc-intro { color: var(--porcelain-dim); max-width: 44rem; margin: 1.5rem 0 0; }
.doc-intro strong { color: var(--porcelain); }

.short { margin-top: 2rem; max-width: 44rem; padding: 1.25rem 1.5rem; border-radius: 1rem;
  border: 1px solid rgba(255, 196, 107, 0.4);
  background: linear-gradient(135deg, rgba(255, 196, 107, 0.1), rgba(255, 196, 107, 0.02)); }
.short p { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--porcelain); }
.short strong { color: var(--amber); font-weight: 600; }

.contact-card { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--line); max-width: 60rem; }
.contact-card > div { background: var(--graphite-2); padding: 1.1rem 1.25rem; }
.contact-card dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--amber); margin-bottom: 0.4rem; }
.contact-card dd { margin: 0; color: var(--porcelain); }
.contact-card dd span { display: block; color: var(--steel); font-size: 0.9rem; margin-top: 0.25rem; }

.doc-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.toc { position: sticky; top: 5.5rem; align-self: start; }
.toc p { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--steel); margin: 0 0 0.9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 1px solid transparent;
  color: var(--porcelain-dim); text-decoration: none; font-size: 0.95rem; line-height: 1.35; }
.toc a:hover { color: var(--porcelain); border-left-color: var(--amber); }

.doc-body { max-width: 44rem; color: var(--porcelain-dim); }
.doc-body section { scroll-margin-top: 5.5rem; }
.doc-body section + section { margin-top: clamp(2.75rem, 6vw, 3.75rem); padding-top: clamp(2.75rem, 6vw, 3.75rem);
  border-top: 1px solid var(--line); }
.doc-body h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.1; color: var(--porcelain); margin-bottom: 1rem;
  display: flex; align-items: baseline; gap: 0.75rem; }
.doc-body h2 .num { color: var(--amber); font-size: 0.85em; min-width: 1.1em; }
.doc-body p { margin: 0 0 1rem; }
.doc-body strong { color: var(--porcelain); font-weight: 600; }
.doc-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.doc-body ul li { margin: 0.45rem 0; }
.doc-body ul li::marker { color: var(--amber); }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  color: var(--porcelain); background: var(--graphite-3); padding: 0.1em 0.4em; border-radius: 0.3em; }

.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--line); border-radius: 1rem; background: var(--graphite-2); line-height: 1.55; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif);
  font-size: 1.6rem; color: var(--amber); line-height: 1; margin-bottom: 0.6rem; }
.steps li > strong:first-child { display: block; color: var(--porcelain); margin-bottom: 0.3rem; }

.faq { margin: 0; }
.faq > div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { color: var(--porcelain); font-weight: 600; margin-bottom: 0.4rem; }
.faq dd { margin: 0; }

.doc-hero .reveal:nth-child(2) { animation-delay: 0.06s; }
.doc-hero .reveal:nth-child(3) { animation-delay: 0.12s; }
.doc-hero .reveal:nth-child(4) { animation-delay: 0.18s; }
.doc-hero .reveal:nth-child(5) { animation-delay: 0.24s; }

@media (max-width: 52rem) {
  .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; border-left: none; }
  .toc a { padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 0.85rem; }
  .contact-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
