:root {
  --nx-bg: #070d1a;
  --nx-bg-soft: #0f172a;
  --nx-border: rgba(148, 163, 184, 0.24);
  --nx-text: #e2e8f0;
  --nx-text-soft: #cbd5e1;
  --nx-blue: #3b82f6;
  --nx-blue-strong: #2563eb;
}

.nx-sector-page {
  background:
    radial-gradient(900px 450px at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(760px 380px at 100% 0%, rgba(124, 58, 237, 0.14), transparent 50%),
    var(--nx-bg);
  color: var(--nx-text);
  min-height: 100vh;
}

.nx-shell {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.nx-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfdbfe;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

.nx-back-link:hover {
  color: #ffffff;
}

.nx-surface {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(17, 24, 39, 0.78));
  border: 1px solid var(--nx-border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 55px -30px rgba(2, 6, 23, 0.75);
}

.nx-surface::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 72%);
  pointer-events: none;
}

.nx-surface > * {
  position: relative;
  z-index: 1;
}

.nx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nx-card-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.nx-card-grid > li {
  list-style: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.74);
  border-radius: 0.9rem;
  padding: 0.95rem;
  color: var(--nx-text-soft);
}

.nx-btn-primary,
.nx-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.nx-btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 12px 25px -12px rgba(37, 99, 235, 0.8);
}

.nx-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nx-btn-ghost {
  border: 1px solid rgba(148, 163, 184, 0.46);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.55);
}

.nx-btn-ghost:hover {
  background: rgba(30, 41, 59, 0.82);
}

.nx-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.nx-note a {
  color: #bfdbfe;
  font-weight: 700;
  text-decoration: none;
}

.nx-note a:hover {
  color: #fff;
}

.nx-blog-page {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
  min-height: 100vh;
}

.nx-blog-shell {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.nx-blog-hero {
  background: linear-gradient(140deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.4rem;
  box-shadow: 0 12px 30px -22px rgba(15, 23, 42, 0.35);
}

.nx-blog-list-card,
.nx-blog-article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 10px 24px -20px rgba(15, 23, 42, 0.28);
}

.nx-blog-article-card {
  padding: 1.35rem;
}

.nx-blog-cta {
  margin-top: 2rem;
  background: linear-gradient(140deg, #eff6ff, #eef2ff);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1.2rem;
}

@media (max-width: 900px) {
  .nx-card-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Legal pages (terms / privacy / conditions) --- */
.nx-legal-shell {
  padding-top: 3.25rem;
  padding-bottom: 4rem;
}

.nx-legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--nx-border);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
}

.nx-legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--nx-text);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.nx-legal-logo {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.35);
}

.nx-legal-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nx-legal-link {
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.nx-legal-link:hover {
  color: #ffffff;
}

.nx-legal-sep {
  color: rgba(148, 163, 184, 0.7);
}

.nx-legal-card {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
}

.nx-legal-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 950;
  color: #ffffff;
}

.nx-legal-meta {
  margin-top: 0.6rem;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.95rem;
  font-weight: 650;
}

.nx-prose {
  margin-top: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.nx-prose h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nx-prose p {
  margin: 0;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
}

.nx-prose ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(226, 232, 240, 0.92);
}

.nx-prose li {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.nx-prose a {
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 800;
}

.nx-prose a:hover {
  color: #ffffff;
}

@media (max-width: 520px) {
  .nx-legal-topbar { padding: 0.7rem 0.8rem; }
  .nx-legal-brand-name { display: none; }
  .nx-legal-card { padding: 1.15rem 1.1rem; }
}
