/* ============================================================
   Legal page styles — shared by Terms & Privacy
   Visual language matches "Nuvoplay Beta Download.html"
   ============================================================ */
:root {
  --blue-500: rgb(25,144,236);
  --blue-600: rgb(17,110,186);
  --blue-700: rgb(12, 82,143);
  --blue-900: rgb(2, 30, 63);
  --cyan-400: rgb(35,215,239);
  --cyan-300: rgb(120,232,246);
  --purple:   rgb(99,106,232);
  --green:    rgb(58,201,133);
  --navy-950: rgb(2,11,19);
  --navy-900: rgb(8,18,30);
  --ink:      rgb(255,255,255);
  --ink-70:   rgba(255,255,255,0.72);
  --ink-50:   rgba(255,255,255,0.52);
  --ink-30:   rgba(255,255,255,0.30);
  --ink-20:   rgba(255,255,255,0.18);
  --ink-10:   rgba(255,255,255,0.10);
  --ink-6:    rgba(255,255,255,0.06);
  --f: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  color: var(--ink);
  background: var(--navy-950);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* ---- Background -------------------------------------------- */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--navy-950); overflow: hidden; pointer-events: none; }
.bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 620px at 18% 12%,  rgba(25,144,236,.25), transparent 60%),
    radial-gradient(760px 540px at 92% 35%,  rgba(35,215,239,.14), transparent 62%),
    radial-gradient(520px 380px at 50% 100%, rgba(99,106,232,.20), transparent 65%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 50% 110%, rgba(2,30,63,.9), transparent 55%),
    linear-gradient(180deg, rgba(2,11,19,0) 0%, rgba(2,11,19,.55) 100%);
}
.bg .ring {
  position: absolute;
  right: 0; bottom: 0;
  width: 200vmin; height: 200vmin;
  transform: translate(50%, 50%);
  background: url("rings.png") center / contain no-repeat;
  opacity: .28;
  mix-blend-mode: screen;
}

/* ---- Page shell ------------------------------------------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 3.2vw, 40px) clamp(20px, 4vw, 56px) 80px;
}

/* ---- Header ----------------------------------------------- */
header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.wordmark { display:flex; align-items:center; height: 36px; }
.wordmark img { height: 100%; width: auto; display: block; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--ink-20);
  background: var(--ink-6);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.back-link:hover {
  background: rgba(255,255,255,.09);
  border-color: var(--ink-30);
}
.back-link:active { transform: translateY(1px); }
.back-link svg { width: 16px; height: 16px; transition: transform .18s; }
.back-link:hover svg { transform: translateX(-2px); }

/* ---- Doc hero --------------------------------------------- */
.doc-hero {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: left;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--ink-20);
  background: var(--ink-6);
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 18px;
}
.eyebrow .chip {
  width: 16px; height: 16px;
  border-radius: 999px;
  background: conic-gradient(from 140deg, var(--blue-500), var(--cyan-400), var(--purple), var(--blue-500));
  box-shadow: inset 0 0 0 2px var(--navy-950);
}
.doc-hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.doc-hero h1 .accent {
  background: linear-gradient(92deg, var(--cyan-300) 0%, var(--cyan-400) 35%, var(--blue-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.doc-hero .lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--ink-70);
  margin: 0 0 14px;
  max-width: 62ch;
  text-wrap: pretty;
}
.doc-meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 8px;
}
.doc-meta b { color: var(--ink); font-weight: 700; letter-spacing: .04em; text-transform: none; }
.doc-meta .sep { color: var(--ink-30); }

/* ---- Body layout ------------------------------------------ */
.doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
}

/* ---- TOC --------------------------------------------------- */
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--ink-10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.toc h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 10px;
}
.toc ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: toc;
  display: grid; gap: 2px;
}
.toc ol li { counter-increment: toc; }
.toc ol a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-70);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.toc ol a::before {
  content: counter(toc, upper-alpha);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink-30);
  flex: none;
  width: 18px;
}
.toc ol a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.toc ol a.active {
  color: var(--cyan-400);
  background: rgba(35,215,239,.08);
}
.toc ol a.active::before { color: var(--cyan-400); }

/* ---- Content ---------------------------------------------- */
.doc-body {
  max-width: 70ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-70);
}
.doc-body section { padding-top: clamp(20px, 3vw, 36px); }
.doc-body section:first-child { padding-top: 0; }
.doc-body section + section {
  margin-top: clamp(24px, 3.4vw, 40px);
  border-top: 1px solid var(--ink-10);
}
.doc-body h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-wrap: balance;
}
.doc-body h2 .num {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cyan-400);
  flex: none;
  width: 28px;
}
.doc-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 20px 0 8px;
  letter-spacing: -.005em;
}
.doc-body p { margin: 0 0 14px; text-wrap: pretty; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(35,215,239,.4);
  transition: text-decoration-color .15s;
}
.doc-body a:hover { text-decoration-color: var(--cyan-400); }

.doc-body ul, .doc-body ol.body-ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.doc-body ul li, .doc-body ol.body-ol li {
  position: relative;
  padding-left: 22px;
}
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 3px rgba(35,215,239,.18);
}
.doc-body ol.body-ol { counter-reset: bli; }
.doc-body ol.body-ol li { counter-increment: bli; }
.doc-body ol.body-ol li::before {
  content: counter(bli) ".";
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}

/* Definition list */
.doc-body dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 8px 24px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--ink-10);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
.doc-body dt { color: var(--ink); font-weight: 600; }
.doc-body dd { margin: 0; color: var(--ink-70); }

/* Callout */
.callout {
  margin: 18px 0;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(35,215,239,.25);
  background: rgba(35,215,239,.06);
  border-radius: 12px;
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
}
.callout::before {
  content: "";
  position: absolute; left: 14px; top: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  box-shadow: 0 0 0 3px rgba(35,215,239,.15);
}
.callout::after {
  content: "i";
  position: absolute; left: 19px; top: 14px;
  font-family: var(--f);
  font-size: 12px; font-weight: 800;
  color: #fff;
  font-style: italic;
}
.callout strong { color: var(--ink); }

/* End-of-document contact card */
.contact-card {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--ink-10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-card .ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(35,215,239,.12);
  border: 1px solid rgba(35,215,239,.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cyan-400);
  flex: none;
}
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.contact-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-70);
  max-width: 50ch;
}
.contact-card .cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0A70BE 0%, #00BDD6 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  transition: filter .15s, box-shadow .15s, transform .12s;
}
.contact-card .cta:hover { filter: brightness(1.08); box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.contact-card .cta:active { transform: translateY(1px); }
.contact-card .cta svg { width: 14px; height: 14px; }

/* ---- Footer ----------------------------------------------- */
footer.site {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--ink-10);
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-50);
}
footer.site .ver b { color: var(--ink); font-weight: 700; }
footer.site .legal { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
footer.site .legal a { color: var(--ink-70); text-decoration: none; }
footer.site .legal a:hover { color: var(--ink); text-decoration: underline; }
footer.site .legal .sep { color: var(--ink-30); }
footer.site .legal a.current { color: var(--cyan-400); }

/* ---- Anchor offset (so sticky-scroll lands below header) -- */
.doc-body section[id] { scroll-margin-top: 24px; }

/* ---- Nested lists ----------------------------------------- */
.doc-body ul ul,
.doc-body ul ol,
.doc-body ol.body-ol ul,
.doc-body ol.body-ol ol {
  margin: 8px 0 0;
}
.doc-body ul ul li::before {
  background: transparent;
  border: 1.5px solid var(--cyan-400);
  box-shadow: none;
}

/* ---- Lead-in lists (bold term : rest) --------------------- */
.doc-body ul.lead-list li { padding-left: 24px; }
.doc-body ul.lead-list li b,
.doc-body ul.lead-list li strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---- Table ------------------------------------------------ */
.doc-table {
  margin: 14px 0 18px;
  border: 1px solid var(--ink-10);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.025);
}
.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
}
.doc-table thead th {
  background: rgba(35,215,239,.08);
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ink-10);
  vertical-align: top;
}
.doc-table tbody td {
  padding: 12px 14px;
  vertical-align: top;
  color: var(--ink-70);
  border-bottom: 1px solid var(--ink-10);
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table tbody td:first-child { color: var(--ink); font-weight: 600; }
.doc-table tbody td .tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(35,215,239,.10);
  color: var(--cyan-400);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .doc-table { overflow-x: auto; }
  .doc-table table { min-width: 560px; }
}

/* ---- Subsection heading badge ----------------------------- */
.doc-body h3 .sub-num {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}

/* ---- Address block ---------------------------------------- */
.address-block {
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--ink-10);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70);
}
.address-block .org { color: var(--ink); font-weight: 700; }

/* ---- Mobile ------------------------------------------------ */
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc {
    position: static;
    order: -1;
  }
  .toc ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .doc-hero h1 { font-size: clamp(28px, 7.6vw, 36px); }
  .toc ol { grid-template-columns: 1fr; }
  footer.site { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-card { grid-template-columns: 1fr; text-align: left; }
  .contact-card .cta { justify-self: start; }
}
