/* ==================================================================
   BUSKR — secondary pages: support, privacy, terms.
   Loads after home.css and reuses its tokens, header, footer, buttons
   and type, so these pages can't drift from the home page again.
   ================================================================== */

/* home.css hides horizontal overflow on body; a scroll container there would
   stop the sticky contents list from sticking, so clip instead. */
body.subpage { overflow-x: clip; }
main.page { min-height: 60vh; }

/* ------------ page hero ------------ */
.page-hero {
  padding: calc(66px + clamp(44px, 8vw, 92px)) 0 clamp(26px, 4vw, 40px);
  background:
    radial-gradient(70% 90% at 50% -40%, rgba(46,155,240,0.26), transparent 62%),
    linear-gradient(180deg, #080d1b, var(--night));
  border-bottom: 1px solid var(--hairline);
}
.page-hero h1.display { font-size: clamp(2.3rem, 6vw, 4.4rem); }
.page-hero .lede { margin-top: 16px; }
.doc-meta { margin-top: 14px; color: var(--muted-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--hairline-2); color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 560;
  transition: color .16s, border-color .16s, background .16s;
}
.subnav a:hover { color: var(--ink); border-color: rgba(150,180,235,0.42); }
.subnav a[aria-current="page"] { color: #fff; background: rgba(46,155,240,0.16); border-color: rgba(46,155,240,0.55); }

h2.display.sm { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
.section-title { margin: clamp(30px, 5vw, 48px) 0 8px; }
.section-title + .lede { margin-bottom: 4px; }

/* ------------ document (privacy, terms) ------------ */
.page-body { padding: clamp(28px, 4vw, 48px) 0 clamp(60px, 8vw, 96px); }
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.toc { position: sticky; top: 84px; border: 1px solid var(--hairline); border-radius: var(--r); background: rgba(13,20,36,0.75); padding: 4px 6px 8px; }
.toc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brand-soft);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 0 4px 2px; max-height: calc(100vh - 170px); overflow: auto; overscroll-behavior: contain; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.86rem; line-height: 1.35; transition: color .16s, background .16s; }
.toc a:hover { color: var(--ink); background: rgba(150,180,235,0.06); }
.toc a[aria-current="true"] { color: #fff; background: rgba(46,155,240,0.14); box-shadow: inset 2px 0 0 var(--brand); }
@media (min-width: 960px) { .toc summary { pointer-events: none; } .toc summary::after { display: none; } }
@media (max-width: 959px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { max-height: none; }
}

.doc { max-width: 74ch; }
.doc h2 { font: 700 1.24rem/1.3 var(--sans); letter-spacing: -0.02em; color: var(--ink); margin: 2.3rem 0 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); }
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p, .doc ul { color: #d3dae9; font-size: 1.03rem; line-height: 1.72; margin: 0 0 1rem; }
.doc ul { padding-left: 1.35rem; }
.doc li { margin: 0.38rem 0; padding-left: 0.15rem; }
.doc li::marker { color: var(--brand-soft); }
.doc a { color: var(--brand-soft); text-decoration: underline; text-decoration-color: rgba(130,196,255,0.45); text-underline-offset: 3px; }
.doc a:hover { color: #fff; text-decoration-color: currentColor; }

.doc-cta { margin-top: 44px; padding: 22px 24px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.doc-cta p { color: var(--muted); }
.doc-cta strong { color: var(--ink); display: block; margin-bottom: 2px; }
.doc-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------ support ------------ */
.contact-card {
  padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid rgba(46,155,240,0.38);
  background: linear-gradient(160deg, rgba(46,155,240,0.18), rgba(13,20,36,0.92) 62%); box-shadow: var(--shadow);
}
.contact-card .eyebrow { margin-bottom: 10px; }
.contact-card .addr { display: inline-block; font: 640 clamp(1.35rem, 4.6vw, 2.2rem)/1.15 var(--sans); letter-spacing: -0.02em; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-card .addr:hover { color: var(--brand-soft); }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.contact-note { color: var(--muted); margin-top: 16px; max-width: 62ch; }
.btn.ok { border-color: var(--live); color: var(--live); }

.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.topic { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.topic .ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(46,155,240,0.14); color: var(--brand-soft); display: grid; place-items: center; }
.topic .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topic p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.topic .btn { align-self: flex-start; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); }
.panel h3 { margin-bottom: 10px; }
.panel p { color: var(--muted); margin: 0 0 10px; }
.panel a { color: var(--brand-soft); }
.panel ul { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.6; }
.panel li { margin: 0.3rem 0; }
.panel li::marker { color: var(--brand-soft); }
@media (max-width: 860px) { .topics, .panels { grid-template-columns: 1fr; } }

/* ------------ print (people print legal pages) ------------ */
@media print {
  header.site, footer.site2, .subnav, .toc, .doc-cta { display: none !important; }
  body, .page-hero { background: #fff !important; color: #000; }
  .page-hero { padding-top: 0; border: 0; }
  .doc-layout { display: block; }
  .doc p, .doc ul, .doc h2, h1.display, .doc-meta, .lede { color: #000 !important; }
  .grad-blue { color: #000; background: none; }
  .doc a { color: #000; }
}
