/* =========================================================
   CYRTIX ACADEMY — LEGAL PAGES (Privacy & Terms)
   Dark • High Contrast • Trust-Grade • Readable
========================================================= */

/* Page background safety (inherits site bg, reinforces dark) */
body {
  background-color: var(--cx-steel-950);
}

/* Container */
.cx-legal-container {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(3rem, 5vw, 5rem) 1.25rem;
}

/* Header */
.cx-legal-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cx-legal-header .display-3 {
  margin-bottom: 0.75rem;
  color: var(--cx-slate-50);
}

.cx-legal-header .subtitle {
  max-width: 720px;
  margin: 0.75rem auto 1.5rem;
  color: var(--cx-slate-400);
  line-height: 1.75;
}

.cx-legal-updated {
  font-size: 0.85rem;
  color: var(--cx-slate-500);
}

/* Main content card */
.cx-legal-content {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 26, 0.92),
    rgba(8, 12, 20, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: clamp(2rem, 3.5vw, 3.25rem);
  box-shadow:
    0 0 0 1px rgba(0, 224, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Section headings */
.cx-legal-content h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cx-slate-100);
  position: relative;
  padding-left: 0.9rem;
}

.cx-legal-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  height: 1.3rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    var(--cx-electric-cyan),
    var(--cx-cyber-coral)
  );
}

/* Paragraphs */
.cx-legal-content p {
  color: var(--cx-slate-300);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
}

/* Lists */
.cx-legal-content ul {
  margin: 0.75rem 0 1.5rem 1.4rem;
  padding-left: 0.75rem;
}

.cx-legal-content li {
  color: var(--cx-slate-300);
  margin-bottom: 0.6rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Bullet color */
.cx-legal-content li::marker {
  color: var(--cx-electric-cyan);
}

/* Links */
.cx-legal-content a {
  color: var(--cx-electric-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 224, 255, 0.4);
  transition: all 0.2s ease;
}

.cx-legal-content a:hover {
  color: #7ff3ff;
  border-bottom-color: rgba(0, 224, 255, 0.8);
}

/* Highlight / notice block */
.cx-legal-highlight {
  background: rgba(0, 224, 255, 0.07);
  border: 1px solid rgba(0, 224, 255, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  color: var(--cx-slate-200);
  font-size: 0.95rem;
}

/* Mobile tuning */
@media (max-width: 640px) {
  .cx-legal-container {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .cx-legal-content {
    padding: 1.6rem 1.3rem;
  }

  .cx-legal-content h2 {
    font-size: 1.1rem;
  }
}
