/* Legal and help pages (privacy, terms, support), on top of home.css so they
 * share the homepage's nav, footer, type and tokens. A dark header band like
 * the pricing hero, then the text at a readable measure beside a sticky
 * "On this page" contents list that doc.js builds from the h2s. */

.doc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 136px 20px 56px; background: var(--black); color: #fff;
}
.doc-hero .hero-glow { height: 600px; top: -40%; }
.doc-hero-inner { position: relative; max-width: 1120px; margin: 0 auto; }
.doc-hero .kicker { color: var(--neon); }
.doc-hero h1 { margin: 0; font: 700 clamp(40px, 6vw, 68px)/1.02 var(--display); letter-spacing: -0.04em; }
.doc-lead { max-width: 620px; margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.doc-meta {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.doc-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }

.doc-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start;
  max-width: 1120px; margin: 0 auto; padding: 56px 20px 96px;
}
.doc-toc { position: sticky; top: 96px; }
.doc-toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.doc-toc a {
  display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.35; color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover { color: var(--text); }
.doc-toc a.is-active { color: var(--text); font-weight: 600; border-left-color: var(--green-2); }

.doc-body { max-width: 760px; font-size: 16px; line-height: 1.75; color: #2A2D2A; }
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 {
  margin: 56px 0 14px; padding-top: 8px; scroll-margin-top: 96px;
  font: 700 26px/1.2 var(--display); letter-spacing: -0.025em; color: var(--text);
}
.doc-body h3 { margin: 28px 0 8px; font: 700 18px/1.3 var(--display); letter-spacing: -0.015em; color: var(--text); }
.doc-body p { margin: 0 0 16px; }
.doc-body ul { margin: 0 0 18px; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--green-2); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body a { color: var(--green); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent); text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.doc-body a:hover { text-decoration-color: var(--green); }
.doc-callout {
  margin: 0 0 24px; padding: 18px 20px; border-radius: 16px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
}
.doc-callout p:last-child { margin-bottom: 0; }

/* Support: a contact card and expanding questions */
.help-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 0 0 40px; padding: 22px 24px; border-radius: 20px; background: var(--black); color: #fff;
}
.help-contact h2 { margin: 0 0 4px; padding: 0; font-size: 22px; color: #fff; }
.help-contact p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.help-contact .btn { text-decoration: none; }
.help-group { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.help-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.help-item {
  border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.help-item[open] { box-shadow: 0 0 0 1px var(--line), 0 20px 40px -28px rgba(0, 0, 0, 0.3); }
.help-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer;
  list-style: none; font: 600 16px/1.35 var(--display); letter-spacing: -0.01em; color: var(--text);
}
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.help-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.help-answer { padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: #3A3D3A; animation: help-in 0.35s var(--ease) both; }
.help-answer p { margin: 0 0 10px; }
.help-answer p:last-child { margin: 0; }
@keyframes help-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .doc-toc { position: static; padding: 16px 18px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
}

/* main carries .section so home.js flips the nav to its light skin over it;
   the layout supplies its own spacing. */
.doc-main { padding: 0; }
