.nx-legal-page {
  --nx-legal-line: rgba(120, 160, 255, 0.18);
  --nx-legal-soft: rgba(78, 161, 255, 0.08);
  --nx-legal-accent: #7eb6ff;
  padding: 0 0 4rem;
}

.nx-legal-hero {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.15rem 0;
}

@media (min-width: 992px) {
  .nx-legal-hero { padding: 2rem 1.5rem 0; }
}

.nx-legal-hero .nx-kicker { margin-bottom: 12px; }

.nx-legal-hero h1 {
  font-family: var(--nx-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.nx-legal-hero .nx-page-lead {
  max-width: 560px;
  color: var(--nx-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.nx-legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

@media (min-width: 992px) {
  .nx-legal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.75rem;
    padding: 0 1.5rem;
  }
}

.nx-legal-toc {
  display: none;
}

@media (min-width: 992px) {
  .nx-legal-toc {
    display: block;
    position: sticky;
    top: calc(var(--nx-header-h) + 28px);
    padding: 1rem 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--nx-legal-line);
    background: rgba(10, 16, 35, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

.nx-legal-toc__label {
  font-family: var(--nx-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-cyan);
  margin: 0 0 0.85rem;
}

.nx-legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 1px solid var(--nx-legal-line);
  padding-left: 0.85rem;
}

.nx-legal-toc a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(219, 228, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
  border-left: 2px solid transparent;
  margin-left: -0.85rem;
  padding-left: calc(0.85rem - 2px);
}

.nx-legal-toc a:hover,
.nx-legal-toc a:focus-visible {
  color: var(--nx-text);
}

.nx-legal-toc a.is-active {
  color: var(--nx-legal-accent);
  border-left-color: var(--nx-legal-accent);
}

.nx-legal-toc-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}

@media (min-width: 992px) {
  .nx-legal-toc-mobile { display: none; }
}

.nx-legal-toc-mobile a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(232, 240, 255, 0.88);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--nx-legal-line);
  border-radius: 999px;
  background: rgba(8, 12, 28, 0.75);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nx-legal-toc-mobile a:hover {
  color: var(--nx-legal-accent);
  border-color: rgba(126, 182, 255, 0.45);
}

.nx-legal-doc {
  min-width: 0;
  padding: 1.5rem 1.35rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--nx-legal-line);
  background: rgba(10, 16, 35, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .nx-legal-doc {
    padding: 1.85rem 1.85rem 2rem;
  }
}

.nx-legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nx-legal-line);
  font-size: 0.8rem;
  color: var(--nx-dim);
}

.nx-legal-meta strong {
  color: rgba(232, 240, 255, 0.9);
  font-weight: 600;
}

.nx-legal-intro {
  margin: 0 0 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--nx-legal-line);
  border-radius: 14px;
  background: rgba(8, 14, 32, 0.7);
}

.nx-legal-intro p {
  margin: 0;
  color: rgba(232, 240, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.65;
}

.nx-legal-intro p + p { margin-top: 0.65rem; }

.nx-legal-section {
  margin: 0 0 2.35rem;
  scroll-margin-top: 120px;
}

.nx-legal-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.95rem;
}

.nx-legal-section__num {
  flex-shrink: 0;
  font-family: var(--nx-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--nx-legal-accent);
  min-width: 1.6rem;
}

.nx-legal-section h2 {
  margin: 0;
  font-family: var(--nx-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-text);
  line-height: 1.25;
}

.nx-legal-section h3 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--nx-font);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 255, 0.95);
}

.nx-legal-section p {
  margin: 0 0 0.85rem;
  color: rgba(219, 228, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.7;
}

.nx-legal-section p:last-child { margin-bottom: 0; }

.nx-legal-section a {
  color: var(--nx-legal-accent);
  text-decoration: underline;
  text-decoration-color: rgba(126, 182, 255, 0.4);
  text-underline-offset: 0.15em;
}

.nx-legal-section a:hover {
  text-decoration-color: var(--nx-legal-accent);
}

.nx-legal-list {
  list-style: none;
  margin: 0.35rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.nx-legal-list li {
  display: grid;
  grid-template-columns: 0.55rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(8, 14, 32, 0.75);
  border: 1px solid rgba(120, 160, 255, 0.12);
  color: rgba(232, 240, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.5;
}

.nx-legal-list li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--nx-legal-accent);
  opacity: 0.85;
}

.nx-legal-list strong {
  color: #fff;
  font-weight: 650;
}

.nx-legal-callout {
  margin: 1rem 0;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--nx-legal-line);
  background: rgba(8, 14, 32, 0.75);
  color: rgba(232, 240, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.55;
}

.nx-legal-callout--warn {
  border-color: rgba(201, 108, 255, 0.35);
  background: rgba(40, 18, 48, 0.55);
}

.nx-legal-callout strong { color: #fff; }

.nx-legal-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--nx-legal-line);
  background: rgba(8, 14, 32, 0.75);
  color: var(--nx-legal-accent);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nx-legal-contact:hover {
  border-color: rgba(126, 182, 255, 0.45);
  background: rgba(14, 22, 48, 0.9);
  color: var(--nx-legal-accent);
}

.nx-legal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nx-legal-line);
}

.nx-legal-foot__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--nx-dim);
  max-width: 28rem;
  line-height: 1.5;
}

.nx-legal-foot__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #3d8fff 0%, #6b5cff 55%, #a24dff 100%);
  color: #fff !important;
  font-family: var(--nx-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(78, 161, 255, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nx-legal-foot__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .nx-legal-toc a,
  .nx-legal-toc-mobile a,
  .nx-legal-contact,
  .nx-legal-foot__btn {
    transition: none;
  }
}
