
:root {
  color-scheme: dark;
  --bg: #090911;
  --panel: rgba(20, 20, 36, .76);
  --panel-solid: #131321;
  --panel-soft: #10101b;
  --border: rgba(186, 177, 255, .14);
  --border-strong: rgba(186, 177, 255, .27);
  --text: #f4f3ff;
  --muted: #aaa9c2;
  --subtle: #77768f;
  --purple: #b6a1ff;
  --cyan: #7de9ef;
  --accent: linear-gradient(110deg, #b6a1ff 0%, #8fbcff 52%, #7de9ef 100%);
  --content: 1180px;
  --radius: 22px;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% -12%, rgba(126, 87, 255, .19), transparent 37rem),
    radial-gradient(ellipse at 94% 18%, rgba(47, 191, 211, .09), transparent 30rem),
    var(--bg);
  line-height: 1.7;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #c0fbff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(9, 9, 17, .78);
}
.header-inner {
  width: min(var(--content), calc(100% - 44px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font: 700 1.2rem 'Trebuchet MS', 'Segoe UI', sans-serif; letter-spacing: -.045em; }
.brand img { width: 38px; height: 38px; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word small { margin-top: 5px; color: var(--subtle); font: 600 .63rem 'Segoe UI', sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { padding: 10px 14px; color: var(--muted); border: 1px solid transparent; border-radius: 12px; font-size: .91rem; font-weight: 600; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(180, 162, 255, .09); border-color: var(--border); }
.nav .support-link { margin-left: 8px; color: #131321; background: var(--accent); border: 0; box-shadow: 0 7px 24px rgba(143, 134, 255, .16); }
.nav .support-link:hover { color: #090911; filter: brightness(1.08); }
.mobile-nav-label { display: none; }

.page-shell { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; }
.hero { position: relative; padding: 94px 0 70px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; color: #d4ceff; background: rgba(166, 143, 255, .075); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgba(125,233,239,.85); }
h1, h2, h3 { font-family: 'Space Grotesk', 'Segoe UI', sans-serif; letter-spacing: -.045em; }
.hero h1 { max-width: 820px; margin: 24px auto 18px; font-size: clamp(2.65rem, 7vw, 5.35rem); line-height: 1.02; font-weight: 700; }
.gradient-text { color: transparent; background: var(--accent); -webkit-background-clip: text; background-clip: text; }
.hero p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2vw, 1.14rem); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 47px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 13px; color: var(--text); background: rgba(255,255,255,.035); font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(182,161,255,.5); background: rgba(182,161,255,.1); }
.button.primary { color: #10101b; border-color: transparent; background: var(--accent); }
.button.primary:hover { color: #090911; filter: brightness(1.08); }
.button svg { width: 16px; height: 16px; }

.hero-orbit { width: 100%; max-width: 700px; height: 1px; margin: 64px auto 0; background: linear-gradient(90deg, transparent, rgba(174,155,255,.48), rgba(125,233,239,.35), transparent); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 22px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.2rem); }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doc-card { position: relative; display: flex; min-height: 255px; padding: 27px; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: linear-gradient(140deg, rgba(27, 26, 47, .94), rgba(15, 15, 27, .92)); box-shadow: 0 18px 54px rgba(0,0,0,.12); transition: transform .2s ease, border-color .2s ease; }
.doc-card::before { content: ''; position: absolute; right: -50px; top: -62px; width: 180px; height: 180px; border-radius: 50%; background: rgba(163,139,255,.1); filter: blur(4px); }
.doc-card:hover { transform: translateY(-4px); border-color: var(--border-strong); color: var(--text); }
.card-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: 15px; color: var(--purple); background: rgba(166,143,255,.09); }
.card-icon svg { width: 24px; height: 24px; }
.doc-card h3 { position: relative; margin: 22px 0 7px; font-size: 1.35rem; }
.doc-card p { position: relative; margin: 0; max-width: 460px; color: var(--muted); font-size: .95rem; }
.card-link { position: relative; display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; color: var(--cyan); font-size: .91rem; font-weight: 700; }
.card-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.doc-card:hover .card-link svg { transform: translateX(4px); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 48px 0 96px; }
.value { padding: 21px; border: 1px solid rgba(255,255,255,.075); border-radius: 17px; background: rgba(255,255,255,.025); }
.value-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.value-top svg { width: 18px; height: 18px; color: var(--cyan); }
.value p { margin: 0; color: var(--muted); font-size: .9rem; }

.legal-hero { padding: 56px 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--subtle); font-size: .84rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .slash { color: #55546b; }
.legal-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.legal-hero h1 { margin: 0 0 12px; font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08; }
.legal-hero .lede { max-width: 660px; margin: 0; color: var(--muted); }
.updated-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; color: #d0cae9; background: rgba(255,255,255,.03); font-size: .78rem; white-space: nowrap; }
.updated-pill svg { width: 15px; height: 15px; color: var(--cyan); }
.legal-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); align-items: start; gap: 25px; padding-bottom: 100px; }
.toc { position: sticky; top: 105px; padding: 19px 13px; border: 1px solid var(--border); border-radius: 18px; background: rgba(17,17,30,.78); }
.toc h2 { margin: 0 10px 12px; color: var(--subtle); font: 700 .72rem 'Segoe UI', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 190px); overflow-y: auto; }
.toc li + li { margin-top: 3px; }
.toc a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-size: .83rem; line-height: 1.4; transition: color .15s ease, background .15s ease; }
.toc a:hover, .toc a.active { color: var(--text); background: rgba(173,153,255,.1); }
.toc a.active { box-shadow: inset 2px 0 var(--purple); }
.legal-content { min-width: 0; padding: clamp(22px, 4vw, 43px); border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(160deg, rgba(20,20,35,.96), rgba(13,13,24,.96)); box-shadow: 0 22px 72px rgba(0,0,0,.13); }
.intro-note { margin: 0 0 28px; padding: 16px 18px; border-left: 2px solid var(--purple); border-radius: 0 12px 12px 0; color: #d2d0e3; background: rgba(172,152,255,.06); }
.policy-section { padding: 29px 0; border-top: 1px solid rgba(255,255,255,.075); scroll-margin-top: 105px; }
.policy-section:first-of-type { border-top: 0; padding-top: 0; }
.policy-section:last-child { padding-bottom: 0; }
.policy-section h2 { display: flex; align-items: baseline; gap: 13px; margin: 0 0 15px; font-size: clamp(1.25rem, 3vw, 1.55rem); line-height: 1.35; }
.policy-section h2 .section-number { flex: 0 0 auto; color: var(--subtle); font: 600 .83rem 'Segoe UI', sans-serif; letter-spacing: .02em; }
.policy-section h3 { margin: 23px 0 8px; font-size: 1.04rem; letter-spacing: -.025em; }
.policy-section h3:first-child { margin-top: 0; }
.policy-section p { margin: 0 0 13px; color: #c3c1d5; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul, .policy-section ol { margin: 8px 0 15px; padding-left: 24px; color: #c3c1d5; }
.policy-section li { padding-left: 4px; margin: 7px 0; }
.policy-section li::marker { color: #9d8cf4; }
.policy-section strong { color: #eeeaff; font-weight: 700; }
.policy-section .all-caps { color: #d5d1ec; }
.external-link { text-decoration: underline; text-decoration-color: rgba(125,233,239,.4); text-underline-offset: 3px; }
.contact-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.025); }
.contact-panel strong { display: block; margin-bottom: 3px; }
.contact-panel p { margin: 0; color: var(--muted); font-size: .92rem; }
.contact-panel .button { min-height: 41px; padding: 0 14px; font-size: .88rem; }

.site-footer { border-top: 1px solid rgba(255,255,255,.075); background: rgba(7,7,13,.4); }
.footer-inner { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .84rem; }
.footer-links a:hover { color: var(--text); }
.copyright { width: min(var(--content), calc(100% - 44px)); margin: -8px auto 0; padding: 0 0 22px; color: #65647b; font-size: .76rem; }

@media (max-width: 850px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 15px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; max-height: none; overflow: visible; }
  .toc li + li { margin-top: 0; }
  .toc a { border: 1px solid transparent; }
  .toc a.active { border-color: var(--border); box-shadow: none; }
  .legal-title-row { align-items: start; flex-direction: column; gap: 17px; }
  .updated-pill { order: -1; }
}
@media (max-width: 650px) {
  .header-inner, .page-shell, .footer-inner, .copyright { width: min(100% - 30px, var(--content)); }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .brand-word small { display: none; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 9px; font-size: .8rem; }
  .nav .support-link { display: none; }
  .hero { padding: 69px 0 45px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-orbit { margin-top: 44px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 225px; padding: 23px; }
  .values { grid-template-columns: 1fr; margin: 30px 0 64px; }
  .section-heading { align-items: start; flex-direction: column; }
  .legal-hero { padding-top: 36px; }
  .legal-layout { padding-bottom: 64px; }
  .legal-content { padding: 22px 18px; border-radius: 17px; }
  .policy-section { padding: 24px 0; }
  .policy-section h2 { gap: 9px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-links { gap: 14px; }
  .copyright { margin-top: -5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
