/* ============== LEGAL PAGES — shared styles ============== */
:root {
  --bg:        #000000;
  --bg-2:      #070707;
  --surface:   #0c0c0c;
  --surface-2: #131313;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --fg:        #f4f1ec;
  --fg-2:      #c9c5be;
  --fg-3:      #8a857d;
  --accent:    #a89ff5;
  --accent-glow: rgba(168,159,245,0.35);
  --serif:     'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --sans:      'DM Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }

/* ============== NAV (same as homepage) ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 24px 56px;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding .3s ease;
}
.nav > * { pointer-events: auto; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.brand { display: flex; align-items: center; gap: 14px; transition: opacity 0.2s ease; }
.brand:hover { opacity: 0.7; }
.brand-logo {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-logo svg { width: 100%; height: 100%; }
.brand-name {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255,255,255,0.02);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.nav-cta:active { transform: translateY(1px); }
.nav-cta svg { flex-shrink: 0; opacity: 0.92; margin-top: -2px; }

.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.06); }
.nav-link svg { opacity: 0.92; margin-top: -1px; }

@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
}
@media (max-width: 640px) {
  .nav-cta span, .nav-link span { display: none; }
  .nav-cta { padding: 9px 11px; }
  .nav-link { padding: 9px 11px; }
}

/* ============== PAGE HEADER ============== */
.legal-hero {
  padding: 200px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(168,159,245,0.10) 0%, rgba(168,159,245,0) 60%);
  pointer-events: none;
  z-index: 0;
}
.legal-hero .wrap { position: relative; z-index: 1; }

.legal-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(168,159,245,0.05);
  margin-bottom: 28px;
}
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.legal-hero h1 .em-i { font-style: italic; color: rgba(244,241,236,0.55); }
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 24px 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  text-transform: uppercase;
  margin-top: 20px;
}
.legal-meta span strong {
  color: var(--fg-2);
  font-weight: 500;
  margin-left: 8px;
}

/* ============== CONTENT LAYOUT ============== */
.legal-body {
  padding: 80px 0 100px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- TOC (left rail) ----- */
.legal-toc {
  position: sticky;
  top: 120px;
  font-family: var(--sans);
  font-size: 13px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.legal-toc .toc-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.legal-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--fg-3);
  line-height: 1.4;
  transition: color .2s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  opacity: 0.55;
  flex-shrink: 0;
  padding-top: 1px;
}
.legal-toc a:hover { color: var(--fg); }
.legal-toc a:hover::before { color: var(--accent); opacity: 1; }
@media (max-width: 980px) {
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
}

/* ----- Main prose ----- */
.legal-content {
  max-width: 720px;
  font-family: var(--sans);
}
.legal-content section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.legal-content section:first-child { padding-top: 0; }
.legal-content section:last-child { border-bottom: none; }

.legal-content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-wrap: balance;
}
.legal-content h2 .num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 32px;
}
.legal-content h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 24px 0 12px;
}
.legal-content p {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.legal-content a.inline {
  color: var(--accent);
  border-bottom: 1px solid rgba(168,159,245,0.35);
  transition: border-color .2s ease;
}
.legal-content a.inline:hover { border-bottom-color: var(--accent); }

.legal-content .callout {
  margin: 14px 0 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.015);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
}
.legal-content .callout .k {
  color: var(--fg-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  padding-top: 2px;
}
.legal-content .callout .v { color: var(--fg); }

/* ============== FOOTER ============== */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 60px;
  text-align: center;
}
.legal-footer .brand { justify-content: center; margin: 0 auto 24px; display: inline-flex; }
.legal-footer .footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.legal-footer .footer-legal a {
  color: var(--fg-2);
  padding: 4px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.legal-footer .footer-legal a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.legal-footer .footer-legal a.current { color: var(--accent); }
.legal-footer .footer-legal .sep { opacity: 0.35; user-select: none; }
.legal-footer .copy {
  font-size: 12px;
  color: var(--fg-3);
}
@media (max-width: 640px) {
  .legal-footer .footer-legal { gap: 4px; }
  .legal-footer .footer-legal a { padding: 4px 10px; }
}

/* ============== HELP PAGE additions ============== */
.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 560px) { .help-cards { grid-template-columns: 1fr; } }

.help-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.help-card:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.035);
  transform: translateY(-2px);
}
.help-card .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.help-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg);
  margin: 0;
}
.help-card p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.5;
  margin: 2px 0 0;
}
.help-card .arrow {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg-3);
  transition: transform .25s ease, color .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--fg); }
.faq-item summary:hover::after { color: var(--fg); }
.faq-item summary .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 30px;
}
.faq-item .faq-body {
  padding: 0 0 24px 48px;
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-item .faq-body p { margin-bottom: 12px; color: var(--fg-2); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body ul {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.faq-item .faq-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--fg-2);
}
.faq-item .faq-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.faq-item .faq-body a {
  color: var(--accent);
  border-bottom: 1px solid rgba(168,159,245,0.35);
  transition: border-color .2s ease;
}
.faq-item .faq-body a:hover { border-bottom-color: var(--accent); }
/* FAQ step-by-step with screenshots */
.faq-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 20px 0 8px;
  counter-reset: faq-step;
}
.faq-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.faq-step::before {
  counter-increment: faq-step;
  content: counter(faq-step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
  border-top: 1px solid var(--accent);
  opacity: 0.9;
}
.faq-step-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.faq-step-body p { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.55; }
.faq-step-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.6);
  transition: transform .25s ease, border-color .2s ease;
}
.faq-step-shot:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
@media (max-width: 560px) {
  .faq-step { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
}

.faq-item .faq-body code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--fg);
}
@media (max-width: 560px) {
  .faq-item summary { font-size: 15.5px; gap: 12px; }
  .faq-item .faq-body { padding-left: 42px; font-size: 14.5px; }
}

/* Help section group */
.help-section-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 64px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-section-title::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.help-section-title:first-child { margin-top: 0; }

/* Contact CTA block at bottom */
.help-contact {
  margin-top: 80px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(168,159,245,0.04) 0%, rgba(255,255,255,0.01) 100%);
  text-align: center;
}
.help-contact .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.help-contact h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.help-contact h2 .em-i { font-style: italic; color: rgba(244,241,236,0.55); }
.help-contact p {
  font-size: 15px;
  color: var(--fg-2);
  max-width: 48ch;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.help-contact .ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.help-contact .ctas a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--fg);
  transition: background .2s ease, border-color .2s ease;
}
.help-contact .ctas a:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.help-contact .ctas a.primary {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}
.help-contact .ctas a.primary:hover { background: #fff; }
@media (max-width: 560px) {
  .help-contact { padding: 32px 22px; }
}
