/* ══════════════════════════════════════════════════════════════════
   STOBOX — Privacy v3 (page-specific)
   Loads AFTER /css/v3-system.css. Long-form legal layout with
   sticky TOC sidebar, structured legal sections, and v3-styled
   final dual-path CTA.
   ══════════════════════════════════════════════════════════════════ */

/* ── HERO (mirrors index-v3 shell, shorter for legal) ─────────── */
.hero{
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: calc(100vh - 52px);
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark);
  color: var(--bg);
}
.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 75%, transparent);
  pointer-events: none;
  z-index: 1;
}
.hero::after{
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, rgba(10,14,44,0.55) 70%, var(--bg-dark) 100%);
  pointer-events: none;
  z-index: 1;
}
@keyframes bg-drift-a{
  0%   { transform: translate3d(0,    0,    0) scale(1.10) }
  50%  { transform: translate3d(-4%,  -3%,  0) scale(1.20) }
  100% { transform: translate3d(0,    0,    0) scale(1.10) }
}
.hero .sec-bg-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  display: block;
  animation: bg-drift-a 22s ease-in-out infinite;
}
@keyframes glow-breathe{
  0%, 100%{ opacity: 0.55; filter: blur(70px) }
  50%     { opacity: 1;    filter: blur(90px) }
}
.hero-glow{
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  top: -10%;
  left: 35%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(99,91,255,0.45) 0%,
      rgba(99,91,255,0.20) 30%,
      rgba(99,91,255,0.05) 60%,
      transparent 80%);
  pointer-events: none;
  z-index: 1;
  animation: glow-breathe 7s ease-in-out infinite;
}
.hero-content{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--gutter) 60px;
  position: relative;
  z-index: 2;
}
.hero-eye{
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-eye::before{
  content: '';
  width: 24px; height: 2px;
  background: var(--accent-hi);
}
.hero h1{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 6.4vw, 116px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bg);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 .line{ display: block; overflow: hidden }
.hero h1 .line span{
  display: inline-block;
  transform: translateY(102%);
  animation: rise .9s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) span{ animation-delay: .1s }
.hero h1 .line:nth-child(2) span{ animation-delay: .22s }
.hero h1 .line:nth-child(3) span{ animation-delay: .34s }
.hero h1 em{ font-style: normal; color: var(--accent-hi) }
@keyframes rise{ to { transform: none } }
.hero-sub{
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 64ch;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade .5s var(--ease) .35s forwards;
}
.hero-sub strong{ color: var(--bg); font-weight: 600 }
@keyframes fade{ to { opacity: 1 } }
.hero-meta-line{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  opacity: 0;
  animation: fade .5s var(--ease) .5s forwards;
}
.hero-meta-line::before{
  content: '';
  width: 18px; height: 1px;
  background: rgba(255,255,255,0.4);
}

/* ── LONG-FORM LEGAL LAYOUT ───────────────────────────────────── */
.legal-wrap{
  background: var(--bg);
  padding: 80px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.legal-wrap-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: flex-start;
}

/* ── STICKY TOC SIDEBAR ──────────────────────────────────────── */
.legal-toc{
  position: sticky;
  top: 80px;
  align-self: flex-start;
}
.legal-toc-label{
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.legal-toc nav{
  display: flex;
  flex-direction: column;
  gap: 0;
}
.legal-toc nav a{
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 0;
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -14px;
  transition: color var(--t-fast), border-color var(--t-fast);
  line-height: 1.4;
}
.legal-toc nav a:hover{
  color: var(--accent);
  border-left-color: var(--accent);
}
.legal-toc nav a.active{
  color: var(--ink);
  border-left-color: var(--accent);
}

/* ── MAIN LEGAL CONTENT COLUMN ──────────────────────────────── */
.legal-main{
  max-width: 720px;
}
.legal-section{
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.legal-section:last-of-type{ margin-bottom: 0 }
.legal-section h2{
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.legal-section h3{
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 28px 0 14px;
}
.legal-section p{
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.legal-section p strong{
  color: var(--ink);
  font-weight: 600;
}
.legal-section ul{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.legal-section ul li{
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.legal-section ul li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.legal-section ul li strong{ color: var(--ink); font-weight: 600 }
.legal-section a{
  color: var(--accent);
  border-bottom: 1px solid var(--accent-bd);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.legal-section a:hover{
  color: var(--accent-lo);
  border-bottom-color: var(--accent-lo);
}
.legal-section code{
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 1px;
  color: var(--ink);
  word-break: break-all;
}

/* ── LEGAL STAMP (footer of legal column) ─────────────────────── */
.legal-stamp{
  margin-top: 60px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-3);
  line-height: 1.7;
}
.legal-stamp p{
  margin: 0 0 6px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  color: var(--ink-3) !important;
  line-height: 1.7 !important;
}
.legal-stamp p strong{
  color: var(--ink) !important;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── FINAL DUAL-PATH CTA ─────────────────────────────────────── */
.cta-sec{
  padding: 130px var(--gutter);
  background: var(--bg-dark);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 980px){
  .legal-wrap-inner{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-toc{
    position: static;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
  }
  .legal-toc nav{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .legal-toc nav a{
    border-left: 0;
    padding: 6px 12px;
    margin: 0;
    border: 1px solid var(--rule-hard);
    border-radius: 1px;
    font-size: 12px;
  }
  .legal-toc nav a:hover,
  .legal-toc nav a.active{
    border-color: var(--accent);
    background: var(--accent-bg);
  }
  .legal-main{ max-width: 100% }
}

@media (max-width: 720px){
  .legal-wrap{ padding: 56px var(--gutter) }
  .legal-section{ margin-bottom: 40px }
  .legal-section p,
  .legal-section ul li{ font-size: 14.5px }
}
