/* =============================================================
   pages.css — Legal (privacy/terms) + Support layouts
   Loaded after styles.css on those pages.
   ============================================================= */

/* ---- Page header band ---- */
.page-head { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 92px)); padding-bottom: clamp(32px, 5vw, 56px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.03em; }
.page-head .updated { color: var(--muted); font-size: 14px; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; }
.page-head .updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* ---- Legal article layout (TOC + prose) ---- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(72px, 11vw, 140px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.toc h4 { font-family: var(--font-display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-dim); font-size: 14px; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--accent); }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; margin-top: 48px; margin-bottom: 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 28px; margin-bottom: 8px; color: var(--text); }
.prose p { color: var(--text-dim); margin-bottom: 16px; font-size: 16.5px; line-height: 1.7; }
.prose ul, .prose ol { color: var(--text-dim); margin: 0 0 18px 1.1em; display: flex; flex-direction: column; gap: 9px; font-size: 16.5px; line-height: 1.6; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--accent-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout {
  border: 1px solid var(--border); background: var(--grad-soft);
  border-radius: var(--r); padding: 18px 20px; margin: 22px 0; color: var(--text-dim); font-size: 15.5px;
}
.prose .callout strong { color: var(--text); }

@media (max-width: 820px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* ===================== SUPPORT ===================== */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: clamp(56px, 8vw, 84px); }
.support-card {
  padding: 30px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s;
}
.support-card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.support-card .ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent-2); }
.support-card .ficon svg { width: 22px; height: 22px; }
.support-card h3 { font-size: 19px; letter-spacing: -.01em; }
.support-card p { color: var(--text-dim); font-size: 15px; }
.support-card a { color: var(--accent-2); font-weight: 600; font-size: 15px; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.support-card a:hover { gap: 10px; }
.support-card a span { transition: transform .2s; }

@media (max-width: 820px) { .support-grid { grid-template-columns: 1fr; } }

/* ---- FAQ accordion ---- */
.faq-head { max-width: 56ch; margin-bottom: clamp(28px, 4vw, 40px); }
.faq-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; }
.faq-head p { color: var(--text-dim); margin-top: 12px; font-size: 17px; }
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color .25s, background .25s; }
.faq-item[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform .3s, color .25s; }
.faq-item[open] .chev { transform: rotate(45deg); color: var(--accent-2); }
.faq-item .faq-body { padding: 0 22px 22px; color: var(--text-dim); font-size: 16px; line-height: 1.65; }

/* ---- Contact band ---- */
.contact-band {
  margin-top: clamp(56px, 8vw, 88px);
  border-radius: var(--r-xl); padding: clamp(36px, 6vw, 60px);
  background: var(--card-grad); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.contact-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--glow-violet), transparent 70%); top: -160px; right: -60px; filter: blur(40px); }
.contact-band > * { position: relative; z-index: 1; }
.contact-band h3 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em; }
.contact-band p { color: var(--text-dim); margin-top: 8px; font-size: 16px; max-width: 42ch; }
.contact-band .btn { background: var(--grad); color: var(--accent-ink); }
.contact-band .btn:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -18px var(--glow-violet); }
