/* Docs pages (privacy, terms, support) — V2 Product style */
@import url('./shared.css');

body {
  background: var(--bg);
  color: var(--fg-primary);
  font-family: var(--font-system);
  line-height: 1.6;
}

/* ---------- Nav (copied from V2) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 48px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(15,16,19,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .logomark { font-size: 16px; }
.nav__links {
  display: flex; gap: 28px; font-size: 14px; font-weight: 500;
  color: var(--fg-secondary); justify-content: center;
}
.nav__links a { padding: 6px 10px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav__links a:hover { color: var(--fg-primary); background: var(--surface-2); }
.nav__links a[aria-current] { color: var(--orange); }
.nav__actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 500; }
.nav__actions .login { color: var(--fg-secondary); }
.nav__cta {
  padding: 9px 18px; background: var(--fg-primary); color: var(--bg);
  border-radius: 10px; font-weight: 700;
}
.nav__cta:hover { background: var(--orange); color: #fff; }

/* ---------- Page header ---------- */
.docs-header {
  padding: 80px 48px 60px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.docs-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,106,0,0.12), transparent 70%);
  pointer-events: none;
}
.docs-header__inner {
  max-width: 1040px; margin: 0 auto;
  position: relative;
}
.docs-breadcrumb {
  font-size: 13px; color: var(--fg-muted);
  margin-bottom: 20px;
  display: flex; gap: 8px; align-items: center;
}
.docs-breadcrumb a { color: var(--fg-secondary); }
.docs-breadcrumb a:hover { color: var(--orange); }
.docs-breadcrumb__sep { opacity: 0.5; }

.docs-header__kicker {
  font-size: 11px; letter-spacing: 3px; font-weight: 800;
  color: var(--orange); text-transform: uppercase;
  margin-bottom: 14px;
}
.docs-header h1 {
  font-size: 72px; font-weight: 900; letter-spacing: -2.5px;
  line-height: 0.95;
  margin-bottom: 16px;
  text-wrap: balance;
}
.docs-header h1 .accent { color: var(--orange); }
.docs-header p {
  font-size: 18px; color: var(--fg-secondary);
  max-width: 640px;
  text-wrap: balance;
}
.docs-meta {
  margin-top: 24px;
  font-size: 13px; color: var(--fg-muted);
  display: flex; gap: 16px; align-items: center;
}
.docs-meta__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--fg-secondary);
}
.docs-meta__chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success-light);
}

/* ---------- Body layout ---------- */
.docs-body {
  max-width: 1040px; margin: 0 auto;
  padding: 60px 48px 120px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
.docs-body--single {
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* ---------- TOC ---------- */
.docs-toc {
  position: sticky; top: 90px;
  align-self: start;
}
.docs-toc__label {
  font-size: 11px; letter-spacing: 2px; font-weight: 800;
  color: var(--fg-muted); text-transform: uppercase;
  margin-bottom: 16px;
}
.docs-toc ol {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--border);
}
.docs-toc li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--fg-secondary);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.docs-toc li a:hover { color: var(--fg-primary); }
.docs-toc li a.is-active {
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: 600;
}

/* ---------- Content ---------- */
.docs-content h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.8px;
  margin: 64px 0 16px;
  scroll-margin-top: 90px;
}
.docs-content h2:first-child { margin-top: 0; }
.docs-content h2 .num {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  margin-right: 12px;
  letter-spacing: 0;
  vertical-align: 2px;
}
.docs-content h3 {
  font-size: 17px; font-weight: 700;
  margin: 32px 0 10px;
  color: var(--fg-primary);
}
.docs-content p {
  font-size: 15px; color: var(--fg-secondary);
  margin-bottom: 16px;
}
.docs-content strong { color: var(--fg-primary); font-weight: 700; }
.docs-content ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
}
.docs-content ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 15px;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border);
}
.docs-content ul li:last-child { border-bottom: none; }
.docs-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--orange);
}
.docs-content a {
  color: var(--orange);
  border-bottom: 1px solid var(--orange-30);
  transition: border-color 0.15s;
}
.docs-content a:hover { border-bottom-color: var(--orange); }

/* Callout card */
.docs-callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--surface-1);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  border-left: 3px solid var(--orange);
}
.docs-callout__title {
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.docs-callout p { margin: 0; font-size: 14px; }

/* Stat strip (support page) */
.docs-stats {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.docs-stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.docs-stat__value {
  font-size: 40px; font-weight: 900; letter-spacing: -1.5px;
  color: var(--orange); line-height: 1;
  margin-bottom: 8px;
}
.docs-stat__label {
  font-size: 13px; color: var(--fg-secondary); font-weight: 500;
}

/* Search (support) */
.docs-search {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border-bright);
  border-radius: 14px;
  max-width: 520px;
}
.docs-search input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--fg-primary);
  font-size: 15px;
  font-family: inherit;
}
.docs-search input::placeholder { color: var(--fg-muted); }
.docs-search svg { width: 18px; height: 18px; color: var(--fg-muted); flex-shrink: 0; }
.docs-search kbd {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: var(--fg-muted);
  padding: 2px 6px;
  background: var(--surface-3);
  border: 1px solid var(--border-bright);
  border-radius: 5px;
}

/* FAQ (support) */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; }
details.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.15s;
}
details.faq-item[open] { border-color: var(--orange-30); }
details.faq-item summary {
  padding: 20px 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700;
  cursor: pointer; list-style: none;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--surface-3);
  color: var(--fg-secondary);
  display: grid; place-items: center;
  background-image:
    linear-gradient(to right, currentColor, currentColor),
    linear-gradient(to bottom, currentColor, currentColor);
  background-size: 10px 1.5px, 1.5px 10px;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size 0.2s, background-color 0.2s, color 0.2s;
}
details.faq-item[open] summary::after {
  background-size: 10px 1.5px, 0 0;
  background-color: var(--orange-20);
  color: var(--orange);
}
details.faq-item .faq-body {
  padding: 0 22px 22px;
  color: var(--fg-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact CTA card */
.contact-card {
  margin-top: 60px;
  padding: 40px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 50%, rgba(255,106,0,0.15), transparent 70%),
    var(--surface-1);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.contact-card h3 {
  font-size: 28px; font-weight: 900; letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.contact-card p { font-size: 15px; color: var(--fg-secondary); margin: 0; }
.docs-content .contact-card__cta,
.contact-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--orange-tab);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700; font-size: 15px;
  transition: background 0.15s;
  white-space: nowrap;
}
.docs-content .contact-card__cta:hover,
.contact-card__cta:hover { background: var(--orange-active); color: #fff; border: none; }

/* Contact grid (privacy page bottom) */
.contact-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-grid__item {
  padding: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.contact-grid__label {
  font-size: 11px; letter-spacing: 2px; font-weight: 800;
  color: var(--fg-muted); text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-grid__value {
  font-size: 17px; font-weight: 700;
  color: var(--orange);
}
.contact-grid__value:hover { color: var(--orange-hover); }

/* ---------- Footer (shared) ---------- */
.footer {
  padding: 60px 48px 40px;
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  border-top: 1px solid var(--border);
}
.footer__col h4 {
  font-size: 11px; letter-spacing: 2px; font-weight: 700;
  color: var(--fg-muted); text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px; color: var(--fg-secondary);
  padding: 6px 0;
}
.footer__col a:hover { color: var(--orange); }
.footer__brand p {
  font-size: 14px; color: var(--fg-secondary);
  margin-top: 16px; max-width: 320px; line-height: 1.5;
}
.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--fg-muted);
}

/* ---------- Responsive fallback (iframe-friendly) ---------- */
@media (max-width: 900px) {
  .docs-body { grid-template-columns: 1fr; gap: 40px; }
  .docs-toc { position: static; }
  .docs-stats { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .docs-header h1 { font-size: 52px; }
}
