/* ─────────────────────────────────────────────────────────────
   Shared stylesheet for the policy pages:
     terms.html · shipping.html · refunds.html · privacy.html
   ───────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #15161a;
  --surface:  #1b1c21;
  --card:     #202128;
  --border:   rgba(255,255,255,0.08);
  --border-c: rgba(59,130,246,0.18);
  --cyan:     #3b82f6;
  --white:    #ffffff;
  --grey:     #888899;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--white);
  font-family: var(--font); line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden; max-width: 100%;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ── Top site nav (sticky) ── */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,16,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav.site-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 820px; margin: 0 auto; padding: 0 32px;
}
.logo { display: flex; align-items: center; gap: 4px; }
.logo-bolt {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden; background: #000;
}
.logo-bolt img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-name { font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.logo-name .dim { color: var(--grey); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* Back link — sits below the nav, top-left, as the first thing on the page */
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px;
  font-size: 13px; font-weight: 600; color: var(--grey);
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.page-back:hover { color: var(--cyan); border-color: var(--border-c); }

/* ── Page header ── */
.page-header { padding: 56px 0 24px; text-align: left; }
.page-header .kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; color: var(--cyan); margin-bottom: 14px;
}
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.05;
}
.page-header .updated {
  font-size: 12px; color: var(--grey); margin-top: 14px;
}

/* ── Policy tabs (sub-nav between the 4 pages) ── */
nav.policy-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
nav.policy-tabs a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--grey);
  border: 1px solid var(--border);
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
nav.policy-tabs a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
nav.policy-tabs a.active {
  color: #000;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* ── Policy content ── */
section.policy { padding: 8px 0 32px; }
section.policy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
section.policy h2 em { font-style: normal; color: var(--cyan); }
section.policy .lead {
  font-size: 14px; color: var(--grey); margin-bottom: 28px;
}
section.policy h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--white); margin: 28px 0 10px;
}
section.policy h4 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin: 24px 0 8px;
}
section.policy p {
  font-size: 14.5px; color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
}
section.policy ul, section.policy ol {
  font-size: 14.5px; color: rgba(255,255,255,0.78);
  padding-left: 22px; margin-bottom: 14px;
}
section.policy li { margin-bottom: 6px; }
section.policy strong { color: var(--white); font-weight: 700; }
section.policy a.inline,
section.policy a[href^="http"],
section.policy a[href^="mailto"] { color: var(--cyan); }
section.policy code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px; border-radius: 4px;
}

/* ── Callout highlight box ── */
.callout {
  background: rgba(59,130,246,0.06);
  border: 1px solid var(--border-c);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0 24px;
}
.callout strong { color: var(--cyan); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; text-align: center; margin-top: 64px;
}
.footer-logo { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-logo .c { color: var(--cyan); }
.footer-links {
  display: flex; justify-content: center; gap: 28px;
  list-style: none; margin: 0 0 14px; flex-wrap: wrap;
}
.footer-links a { font-size: 12px; color: var(--grey); transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
footer p { font-size: 12px; color: var(--grey); }

@media (max-width: 600px) {
  nav.site-nav .nav-inner, .container { padding: 0 20px; }
  .page-header { padding: 36px 0 16px; }
  nav.policy-tabs { gap: 6px; margin-bottom: 28px; padding-bottom: 18px; }
  nav.policy-tabs a { padding: 8px 14px; font-size: 12.5px; }
}
