/* ============ ASCEND LEGAL / INFO PAGES ============ */
:root {
  --bg:        #060a1f;
  --bg-2:      #0a1030;
  --panel:     #0e1633;
  --panel-2:   #131c44;
  --line:      #1b285a;
  --line-soft: #14204a;
  --text:      #e6ecff;
  --muted:     #8a95c2;
  --dim:       #5a6595;
  --cyan:      #22d3ff;
  --cyan-soft: #67e3ff;
  --cyan-deep: #0891b2;
  --scan:      #22ff66;
  --magenta:   #ff3d7a;
  --warn:      #fbbf24;
  --ok:        #22ff66;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--bg); color: var(--text); font-family:"Space Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display:block; max-width:100%; }
.container { max-width: 920px; margin: 0 auto; padding: 0 28px; }
.mono, .label { font-family:"Rajdhani", "Space Grotesk", sans-serif; letter-spacing: .22em; text-transform: uppercase; font-weight:600; }

/* nav */
nav.top {
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6,10,31,.78);
  border-bottom: 1px solid rgba(34,211,255,.08);
}
nav.top .row { display:flex; align-items:center; justify-content:space-between; padding: 14px 0; gap:24px; max-width: 1240px; margin:0 auto; padding-left: 28px; padding-right: 28px;}
nav.top .brand { display:flex; align-items:center; gap:12px; }
nav.top .brand img { height: 28px; width:auto; filter: drop-shadow(0 0 12px rgba(34,211,255,.35)); }
nav.top .links { display:flex; gap:28px; color: var(--muted); font-size: 14px; }
nav.top .links a { color: var(--muted); text-decoration: none;}
nav.top .links a:hover { color: var(--cyan); }
.btn {
  display:inline-flex; align-items:center; gap:10px;
  font-family:"Space Grotesk"; font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 12px; cursor: pointer; transition: all .2s ease;
  border: 1px solid transparent; white-space: nowrap; text-decoration: none;
}
.btn.cyan { color:#001520; background: var(--cyan); box-shadow: 0 8px 30px -8px rgba(34,211,255,.7);}
.btn.cyan:hover { background: var(--cyan-soft); transform: translateY(-1px); text-decoration: none;}
.btn.ghost { color: var(--text); border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none;}

/* page header */
.doc-head { padding: 64px 0 36px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;}
.doc-head .container { position: relative; z-index: 2;}
.doc-head .label { color: var(--cyan); font-size: 12px; margin-bottom: 16px; display: inline-block;}
.doc-head h1 { font-size: clamp(38px, 5vw, 60px); margin: 0 0 14px; letter-spacing: -0.025em; line-height: 1.04; font-weight:700;}
.doc-head .meta { color: var(--muted); font-size: 14px; display:flex; gap: 24px; flex-wrap: wrap; margin-top: 14px;}
.doc-head .meta span b { color: var(--text); font-weight: 600;}
.doc-head::before {
  content:""; position: absolute; inset:0; opacity:.35;
  background:
    linear-gradient(rgba(34,211,255,.07) 1px, transparent 1px) 0 0/52px 52px,
    linear-gradient(90deg, rgba(34,211,255,.07) 1px, transparent 1px) 0 0/52px 52px;
  mask-image: radial-gradient(ellipse at top, #000 0%, transparent 65%);
}

/* TOC */
.toc {
  margin: 40px 0; padding: 24px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
}
.toc .lbl { font-family:"Rajdhani"; font-size: 11px; letter-spacing:.22em; color: var(--cyan); font-weight:600; text-transform:uppercase; margin-bottom: 14px; display:block;}
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding: 0 0 0 20px; color: var(--muted); font-size: 14px;}
.toc ol li { margin-bottom: 8px; break-inside: avoid;}
.toc ol li a { color: var(--muted);}
.toc ol li a:hover { color: var(--cyan); text-decoration: none;}

/* doc body */
.doc-body { padding: 32px 0 80px;}
.doc-body section { padding: 32px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 80px;}
.doc-body section:last-child { border-bottom: 0;}
.doc-body h2 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px;
  display:flex; align-items: baseline; gap: 14px;
}
.doc-body h2 .num {
  font-family:"Rajdhani"; font-size: 16px; font-weight:700; color: var(--cyan);
  letter-spacing: .08em;
}
.doc-body h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--text); letter-spacing:-0.005em;}
.doc-body p { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 10px 0; text-wrap: pretty;}
.doc-body p b, .doc-body li b { color: var(--text); font-weight: 600;}
.doc-body ul, .doc-body ol { padding-left: 20px; margin: 8px 0;}
.doc-body ul li, .doc-body ol li { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 6px;}
.doc-body code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; background: rgba(34,211,255,.08);
  padding: 2px 6px; border-radius: 4px; color: var(--cyan-soft);
}
.callout {
  margin: 18px 0; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(34,211,255,.04);
  display:flex; gap: 14px; align-items: flex-start;
}
.callout .ic { width: 24px; height: 24px; border-radius: 6px; display:grid; place-items:center; flex-shrink: 0; font-size: 13px; font-weight:700; font-family: "Rajdhani";}
.callout.info .ic { background: rgba(34,211,255,.16); color: var(--cyan); border: 1px solid var(--cyan);}
.callout.warn { background: rgba(255,61,122,.05); border-color: rgba(255,61,122,.25);}
.callout.warn .ic { background: rgba(255,61,122,.16); color: var(--magenta); border: 1px solid var(--magenta);}
.callout.ok { background: rgba(34,255,102,.05); border-color: rgba(34,255,102,.25);}
.callout.ok .ic { background: rgba(34,255,102,.16); color: var(--scan); border: 1px solid var(--scan);}
.callout .body { font-size: 14px; color: var(--text); line-height: 1.55;}
.callout .body b { display: block; margin-bottom: 4px; font-weight: 600;}

/* data table for privacy */
.dtable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;}
.dtable th, .dtable td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top;}
.dtable th { color: var(--cyan); font-family:"Rajdhani"; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px;}
.dtable td { color: var(--muted);}
.dtable td b { color: var(--text); font-weight: 600;}
.dtable tr:hover td { background: rgba(255,255,255,.02);}

/* badge */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-family:"Rajdhani"; font-size: 10px; letter-spacing:.16em; font-weight:600; text-transform:uppercase;
}
.badge.cy { background: rgba(34,211,255,.12); color: var(--cyan); border:1px solid rgba(34,211,255,.3);}
.badge.gr { background: rgba(34,255,102,.12); color: var(--scan); border:1px solid rgba(34,255,102,.3);}
.badge.mg { background: rgba(255,61,122,.12); color: var(--magenta); border:1px solid rgba(255,61,122,.3);}

/* contact card */
.contact-card {
  margin: 32px 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  display:flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.contact-card .label { color: var(--cyan); font-size: 11px; margin-bottom: 6px; display: inline-block;}
.contact-card .who { font-size: 18px; font-weight: 600;}
.contact-card .em { color: var(--muted); font-size: 14px; margin-top: 4px;}
.contact-card .em a { color: var(--cyan);}

/* FAQ */
.faq { margin: 16px 0;}
.faq details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: var(--panel); overflow: hidden;
}
.faq details[open] { border-color: rgba(34,211,255,.35);}
.faq summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15px;
  display:flex; align-items: center; justify-content: space-between; gap: 20px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display:none;}
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; font-weight: 300; transition: transform .2s; line-height: 1;}
.faq details[open] summary::after { transform: rotate(45deg);}
.faq .ans { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.6;}
.faq .ans p { margin: 0 0 8px;}
.faq .ans p:last-child { margin-bottom: 0;}
.faq .ans b { color: var(--text); }

/* footer */
footer.f { padding: 50px 0 30px; border-top: 1px solid var(--line);}
footer.f .row { max-width: 1240px; margin:0 auto; padding: 0 28px; display:flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px;}
footer.f .brand img { height: 26px; margin-bottom: 12px;}
footer.f .brand p { color: var(--dim); font-size: 13px; max-width: 280px; line-height:1.5;}
footer.f .cols { display: grid; grid-template-columns: repeat(3, auto); gap: 60px;}
footer.f h4 { font-family:"Rajdhani"; letter-spacing:.22em; font-size:12px; color: var(--cyan); margin: 0 0 14px; text-transform: uppercase; font-weight:600; }
footer.f a { display:block; color: var(--muted); font-size: 14px; margin-bottom: 10px; text-decoration: none;}
footer.f a:hover { color: var(--text);}
footer.f .copy { max-width: 1240px; margin: 40px auto 0; padding: 24px 28px 0; border-top: 1px solid var(--line); display:flex; justify-content:space-between; color: var(--dim); font-size: 12px; flex-wrap: wrap; gap: 10px;}

/* responsive */
@media (max-width: 720px) {
  .toc ol { columns: 1;}
  nav.top .links { display: none;}
  footer.f .cols { grid-template-columns: 1fr 1fr; gap: 28px;}
  .contact-card { flex-direction: column; align-items: flex-start;}
}
