/* ═══════════════════════════════════════════════════════
   NM-LEGAL — Terms / Privacy content pages  (prefix: nm-legal-)
═══════════════════════════════════════════════════════ */

/* ── 1. HERO ────────────────────────────────────────── */
.nm-legal-hero {
  padding: 130px 0 56px;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.nm-legal-hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at 50% 40%, rgba(26,110,255,.16) 0%, transparent 70%);
  pointer-events: none;
}
.nm-legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.nm-legal-hero-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.nm-legal-hero-h1 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--t1);
  margin-bottom: 18px;
}
.nm-legal-acc {
  background: linear-gradient(90deg, #1a6eff 0%, #7b61ff 55%, #3d8bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nm-legal-hero-desc {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 26px;
}
.nm-legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  font-size: 13px;
  color: var(--t3);
}
.nm-legal-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nm-legal-hero-meta i {
  color: var(--blue);
  font-size: 13px;
}
.nm-legal-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--t2);
  transition: var(--ease);
}
.nm-legal-hero-link:hover {
  color: var(--blue-l);
}

/* ── 2. BODY LAYOUT ─────────────────────────────────── */
.nm-legal-body {
  padding: 20px 0 90px;
  background: var(--bg-0);
  position: relative;
}
.nm-legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ── 3. TOC ─────────────────────────────────────────── */
.nm-legal-toc {
  position: sticky;
  top: 100px;
}
.nm-legal-toc-card {
  border: 1px solid var(--b-sub);
  border-radius: var(--rl);
  background: linear-gradient(180deg, rgba(14,29,53,.85) 0%, rgba(8,15,30,.95) 100%);
  padding: 22px 20px;
}
.nm-legal-toc-title {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 14px;
}
.nm-legal-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.nm-legal-toc-link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--t2);
  border: 1px solid transparent;
  transition: var(--ease);
}
.nm-legal-toc-link:hover {
  color: var(--t1);
  background: rgba(26,110,255,.08);
}
.nm-legal-toc-link.is-active {
  color: var(--t1);
  background: rgba(26,110,255,.12);
  border-color: var(--b-blue);
}
.nm-legal-toc-help {
  border-top: 1px solid var(--b-sub);
  padding-top: 18px;
}
.nm-legal-toc-help p {
  font-size: 13px;
  color: var(--t3);
  margin-bottom: 12px;
  line-height: 1.5;
}
.nm-legal-toc-btn {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 10px 14px;
}

/* ── 4. CONTENT / PROSE ─────────────────────────────── */
.nm-legal-content {
  border: 1px solid var(--b-sub);
  border-radius: var(--rl);
  background:
    radial-gradient(ellipse at top right, rgba(26,110,255,.08) 0%, transparent 45%),
    linear-gradient(180deg, rgba(11,22,40,.95) 0%, rgba(8,15,30,.98) 100%);
  padding: 40px 44px;
  min-width: 0;
}

.nm-legal-prose,
.nm-legal-prose * {
  font-family: var(--ff) !important;
  box-sizing: border-box;
}

/* Kill CMS light-theme inline colors */
.nm-legal-prose,
.nm-legal-prose p,
.nm-legal-prose li,
.nm-legal-prose span,
.nm-legal-prose div {
  color: var(--t2) !important;
  background: transparent !important;
}

.nm-legal-prose {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--t2);
  max-width: 760px;
}

/* Hide duplicate page title from CMS HTML */
.nm-legal-prose > h2:first-child,
.nm-legal-prose > div > h2:first-child {
  display: none !important;
}

.nm-legal-prose > div {
  padding: 0 !important;
}

.nm-legal-prose h2,
.nm-legal-prose h3,
.nm-legal-prose h4 {
  font-family: var(--fd) !important;
  color: var(--t1) !important;
  font-weight: 750;
  line-height: 1.3;
  scroll-margin-top: 110px;
}

.nm-legal-prose h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0 0 18px;
}

.nm-legal-prose h3 {
  font-size: 18px;
  margin: 34px 0 12px;
  padding-top: 6px;
  border-top: 1px solid var(--b-sub);
}

.nm-legal-prose h3:first-of-type {
  margin-top: 8px;
  border-top: none;
  padding-top: 0;
}

.nm-legal-prose p {
  margin: 0 0 16px;
}

.nm-legal-prose ul,
.nm-legal-prose ol {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.nm-legal-prose ul li,
.nm-legal-prose ol li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--t2) !important;
}

.nm-legal-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,110,255,.18);
}

.nm-legal-prose a {
  color: var(--blue-l) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(61,139,255,.35);
  transition: var(--ease);
}
.nm-legal-prose a:hover {
  color: #fff !important;
  border-bottom-color: var(--blue-l);
}

.nm-legal-prose strong,
.nm-legal-prose b {
  color: var(--t1) !important;
  font-weight: 650;
}

/* ── 5. RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .nm-legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nm-legal-toc {
    position: static;
  }
  .nm-legal-toc-card {
    padding: 18px 16px;
  }
  .nm-legal-toc-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .nm-legal-toc-help {
    display: none;
  }
  .nm-legal-content {
    padding: 28px 22px;
  }
}

@media (max-width: 560px) {
  .nm-legal-hero {
    padding: 110px 0 40px;
  }
  .nm-legal-toc-nav {
    grid-template-columns: 1fr;
  }
  .nm-legal-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
