/* ============================================================
   ACX+ — Legal pages shared styles (Privacy / Terms)
   ============================================================ */

:root {
  --bg: #000000;
  --bg-1: #060606;
  --bg-2: #0c0c0c;
  --bg-3: #0d0e10;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.05);
  --text: #f7f7f5;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.38);
  --acx: #D3D812;
  --acx-soft: rgba(211, 216, 18, 0.16);
  --acx-glow: rgba(211, 216, 18, 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  position: relative;
}

/* Ambient bg */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(211, 216, 18, 0.07), transparent 65%),
    radial-gradient(700px 500px at 100% 100%, rgba(211, 216, 18, 0.04), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.30;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
}

.page { position: relative; z-index: 1; }

/* Header */
header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  max-width: 1100px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 28px; width: auto; display: block; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  transition: all .25s ease;
}
.back-link:hover {
  color: var(--acx);
  border-color: rgba(211, 216, 18, 0.4);
  background: rgba(211, 216, 18, 0.06);
}

/* Hero / page title */
.legal-hero {
  max-width: 880px; margin: 0 auto;
  padding: 30px 48px 12px;
}
.legal-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--acx-soft);
  border: 1px solid rgba(211, 216, 18, 0.35);
  color: var(--acx);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06; letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 14px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.legal-hero .sub {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 640px;
  margin: 0;
}
.legal-hero .meta {
  display: inline-flex; gap: 18px; flex-wrap: wrap;
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-faint);
  letter-spacing: 0.04em;
}
.legal-hero .meta b { color: var(--text-dim); font-weight: 500; margin-right: 6px; }

/* TOC / floating ToC */
.legal-shell {
  max-width: 1100px; margin: 0 auto;
  padding: 24px 48px 100px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
.toc {
  position: sticky; top: 32px; align-self: start;
  font-size: 13px;
}
.toc h6 {
  margin: 0 0 12px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: tn; }
.toc li {
  counter-increment: tn;
  padding: 6px 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  position: relative;
}
.toc li::before {
  content: counter(tn, decimal-leading-zero);
  position: absolute; left: 14px; top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--text-faint);
}
.toc a {
  display: block;
  padding-left: 28px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s ease;
  line-height: 1.4;
}
.toc a:hover { color: var(--acx); }

/* Content area */
.legal-content {
  min-width: 0;
  max-width: 720px;
}
.legal-content h2 {
  font-size: 22px; font-weight: 700;
  margin: 48px 0 14px;
  letter-spacing: -0.015em;
  scroll-margin-top: 24px;
  display: flex; align-items: baseline; gap: 14px;
}
.legal-content h2::before {
  content: attr(data-no);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--acx);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 15px; font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.legal-content p {
  color: var(--text-dim);
  margin: 0 0 14px;
}
.legal-content ul, .legal-content ol {
  color: var(--text-dim);
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 6px;
}
.legal-content ul ol, .legal-content ol ol, .legal-content ul ul {
  margin-top: 6px;
}
.legal-content b, .legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a {
  color: var(--acx);
  text-decoration: none;
  border-bottom: 1px solid rgba(211, 216, 18, 0.4);
  transition: border-color .2s ease;
}
.legal-content a:hover { border-bottom-color: var(--acx); }

.legal-content .note {
  margin: 22px 0;
  padding: 16px 18px;
  background: rgba(211, 216, 18, 0.06);
  border: 1px solid rgba(211, 216, 18, 0.25);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 14px;
  position: relative;
}
.legal-content .note::before {
  content: "!";
  position: absolute; top: -10px; left: 16px;
  width: 22px; height: 22px;
  background: var(--acx); color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 13px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.legal-content .note b { color: var(--acx); }

/* Footer */
footer.foot {
  position: relative; z-index: 6;
  padding: 38px 48px 38px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  max-width: 1100px;
  margin: 0 auto;
}
footer .links {
  display: inline-flex; gap: 26px; margin-bottom: 16px;
  flex-wrap: wrap; justify-content: center;
}
footer .copy { font-family: 'JetBrains Mono', monospace; }

/* === Brand hover underline (sweep) === */
.hover-line {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  padding-bottom: 4px;
  transition: color .25s ease;
}
.hover-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--acx);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 12px var(--acx-glow);
}
.hover-line:hover,
.hover-line:focus-visible { color: var(--acx); outline: none; }
.hover-line:hover::after,
.hover-line:focus-visible::after { transform: scaleX(1); }
.hover-line.is-active { color: var(--acx); }
.hover-line.is-active::after { transform: scaleX(1); }

/* Responsive */
@media (max-width: 900px) {
  header.top { padding: 22px 22px; }
  .legal-hero { padding: 22px 22px 8px; }
  .legal-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 22px 80px;
  }
  .toc {
    position: static;
    padding: 16px 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .legal-content h2 { font-size: 20px; }
  footer.foot { padding: 38px 22px 30px; }
}

/* Print */
@media print {
  body { background: #fff; color: #000; }
  .bg-glow, .bg-grid, .back-link, .toc, footer.foot { display: none; }
  .legal-content { max-width: none; }
  .legal-content p, .legal-content li { color: #000; }
  .legal-content h2::before { color: #555; }
}
