/* ════════════════════════════════════════════════════════════════════
   ANKIT AND CO — SHARED CHROME (used by legal pages)
   The main index.html ships fully self-contained.
   This stylesheet provides matching dark chrome for /privacy and /terms.
   ──────────────────────────────────────────────────────────────────── */

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

:root {
  --bg          : #08102a;
  --bg-2        : #050a1d;
  --bg-3        : #0c1a50;
  --surface     : rgba(255,255,255,.04);
  --surface-hi  : rgba(255,255,255,.07);
  --border      : rgba(255,255,255,.08);
  --border-hi   : rgba(255,255,255,.14);
  --orange      : #f97316;
  --orange-glow : rgba(249,115,22,.45);
  --blue        : #1a52e0;
  --sky         : #4db8f5;
  --text        : #f5f7ff;
  --muted       : rgba(232,236,255,.62);
  --muted-2     : rgba(232,236,255,.42);

  --max-w       : 1100px;
  --pad         : clamp(1.25rem, 4vw, 2.5rem);

  --font        : 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --mono        : 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease        : cubic-bezier(.22,.61,.36,1);
  --ease-out    : cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

::selection { background: rgba(249,115,22,.35); color: #fff; }

/* ── ATMOSPHERIC SITE BACKGROUND ───────────────────────────────────── */
.site-atmosphere {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(26,82,224,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 30%, rgba(249,115,22,.07) 0%, transparent 60%),
    var(--bg);
}
.site-atmosphere::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
}

main, header, footer { position: relative; z-index: 1; }

/* ── NAV ──────────────────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,16,42,.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid rgba(249,115,22,.22);
  padding: .55rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo img { height: 36px; width: 36px; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(26,82,224,.35)); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1rem; font-weight: 500; color: #fff; letter-spacing: 0; }
.logo-sub  { font-size: .58rem; color: var(--orange); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; margin-top: 2px; }

nav { display: flex; gap: .25rem; align-items: center; }
nav a {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 6px;
  transition: color .25s, background .25s;
}
nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
nav a.is-active { color: var(--orange); background: rgba(249,115,22,.08); }

@media (max-width: 720px) {
  header { padding: .5rem 0 .4rem; }
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .35rem .75rem;
  }
  nav {
    width: 100%;
    gap: 0;
    overflow-x: auto;
    padding-bottom: .15rem;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a {
    flex: 0 0 auto;
    padding: .45rem .55rem;
    font-size: .75rem;
  }
  .logo-text .logo-sub { display: none; }
}

/* ── LEGAL HERO ───────────────────────────────────────────────────── */
.legal-hero {
  position: relative;
  padding: 9rem 0 4rem;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(80px);
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(26,82,224,.4) 0%, transparent 65%);
  pointer-events: none;
  opacity: .7;
  animation: breathe 9s var(--ease) infinite;
}
.legal-hero::after {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  top: 20%;
  left: -100px;
  background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 65%);
  pointer-events: none;
  animation: breathe 8s var(--ease) infinite reverse;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.15); opacity: .8; }
}

.legal-hero .container { position: relative; z-index: 1; }
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}
.legal-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--sky);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
  line-height: .98;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-hero p.meta {
  color: var(--muted);
  margin-top: 1rem;
  font-size: .95rem;
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.legal-hero p.meta::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* ── LEGAL BODY ───────────────────────────────────────────────────── */
.legal-body { padding: 3rem 0 6rem; flex: 1; }

.legal-layout {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}
@media (min-width: 920px) {
  .legal-layout { grid-template-columns: 240px 1fr; gap: 4rem; }
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 6rem;
}
.legal-toc h4 {
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 1rem;
  font-family: var(--mono);
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  border-left: 1px solid rgba(255,255,255,.08);
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  padding: .5rem .85rem;
  font-size: .82rem;
  color: var(--muted);
  border-left: 1px solid transparent;
  margin-left: -1px;
  transition: color .25s var(--ease), border-color .25s var(--ease), padding-left .25s var(--ease);
  letter-spacing: 0;
  line-height: 1.4;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  display: inline-block;
  width: 2.4em;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted-2);
  margin-right: .25rem;
  transition: color .25s var(--ease);
}
.legal-toc a:hover,
.legal-toc a.is-active {
  color: #fff;
  border-left-color: var(--orange);
  padding-left: 1.1rem;
}
.legal-toc a:hover::before,
.legal-toc a.is-active::before { color: var(--orange); }

@media (max-width: 919px) {
  .legal-toc { position: static; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; }
}

/* Article */
.legal-article {
  max-width: 720px;
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  margin: 3.5rem 0 1rem;
  scroll-margin-top: 6rem;
  display: flex;
  align-items: baseline;
  gap: .85rem;
}
.legal-article h2:first-child { margin-top: 0; }
.legal-article h2 .num {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: .1em;
  background: rgba(249,115,22,.10);
  border: 1px solid rgba(249,115,22,.25);
  padding: .25rem .55rem;
  border-radius: 99px;
  flex-shrink: 0;
}
.legal-article p,
.legal-article li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: .8rem;
}
.legal-article strong { color: #fff; font-weight: 500; }
.legal-article ul {
  list-style: none;
  padding-left: 0;
  margin: .5rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.legal-article ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0;
}
.legal-article ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 1px;
  background: var(--orange);
}
.legal-article a {
  color: var(--sky);
  border-bottom: 1px solid rgba(77,184,245,.3);
  transition: color .2s, border-color .2s;
}
.legal-article a:hover { color: #fff; border-bottom-color: #fff; }

.legal-article address {
  font-style: normal;
  display: block;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  padding: 1.25rem 1.5rem;
  border-radius: 4px 14px 14px 4px;
  margin: 1rem 0 1.5rem;
  line-height: 1.85;
  color: var(--text);
  font-size: .95rem;
  font-weight: 400;
  backdrop-filter: blur(10px);
}
.legal-article address a { color: var(--sky); border-bottom: none; }
.legal-article address a:hover { color: #fff; }

/* Cross-link card at end */
.legal-crosslink {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .legal-crosslink { grid-template-columns: 1fr 1fr; }
}
.legal-crosslink a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  text-decoration: none;
}
.legal-crosslink a:hover {
  transform: translateY(-3px);
  border-color: rgba(249,115,22,.32);
  background: rgba(255,255,255,.04);
}
.legal-crosslink .cl-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  font-family: var(--mono);
}
.legal-crosslink .cl-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-crosslink .cl-title::after {
  content: '→';
  transition: transform .3s var(--ease);
  color: var(--muted);
}
.legal-crosslink a:hover .cl-title::after { transform: translateX(4px); color: var(--orange); }
.legal-crosslink .cl-desc {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: .25rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
footer {
  position: relative;
  background: var(--bg-2);
  color: var(--muted);
  padding: 4rem 0 2rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
footer::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 30%, hsla(220, 80%, 35%, .22), transparent 45%),
    radial-gradient(circle at 70% 70%, hsla(20, 90%, 50%, .10), transparent 45%);
  animation: footer-shift 18s linear infinite;
  pointer-events: none;
  filter: blur(40px);
}
@keyframes footer-shift {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
footer .container { position: relative; z-index: 1; }

.footer-top {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 4rem; }
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand .logo-name { color: #fff; font-size: 1.05rem; font-weight: 600; }
.footer-brand p {
  color: var(--muted-2);
  font-size: .87rem;
  line-height: 1.75;
  font-weight: 300;
  max-width: 380px;
}
.footer-col h4 {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}
.footer-col li + li { margin-top: .35rem; }
.footer-col a {
  position: relative;
  display: inline-block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  padding: .25rem 0 .25rem .9rem;
  transition: color .25s var(--ease), padding .25s var(--ease);
}
.footer-col a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 0;
  width: 2px;
  background: var(--orange);
  transition: height .3s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 1.1rem; }
.footer-col a:hover::before { height: 70%; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1.5rem;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .78rem;
  color: var(--muted-2);
}
.footer-legal strong { color: rgba(255,255,255,.75); font-weight: 500; }
@media (min-width: 720px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-legal { max-width: 60%; text-align: right; }
}

/* ── REVEAL ───────────────────────────────────────────────────────── */
.reveal {
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js-reveals .reveal:not(.in) {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
