/* ── NexTutor Terms & Conditions Page Styles ─────────────────────── */

/* ── Terms Hero ──────────────────────────────────────────────────── */
.terms-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.terms-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(67, 67, 213, 0.12), transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.terms-hero h1 {
  margin-bottom: 12px;
}

/* ── Terms Content ───────────────────────────────────────────────── */
.terms-content {
  padding: 60px 0 100px;
}

.terms-body {
  max-width: 820px;
  margin: 0 auto;
}

/* ── Table of Contents Card ──────────────────────────────────────── */
.toc-card {
  background: var(--gradient-card);
  border: 1px solid rgba(93, 95, 239, 0.15);
  border-radius: var(--radius-md);
  padding: 32px 40px;
  margin-bottom: 48px;
}

.toc-card h3 {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.toc-card ol {
  list-style: decimal;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

.toc-card ol li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  break-inside: avoid;
}

.toc-card ol li a {
  color: var(--on-surface-variant);
  transition: var(--transition);
}

.toc-card ol li a:hover {
  color: var(--primary-container);
}

/* ── Terms Sections ──────────────────────────────────────────────── */
.terms-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(93, 95, 239, 0.08);
  position: relative;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(67, 67, 213, 0.3);
}

.terms-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.terms-section h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--on-surface);
}

.terms-section p {
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.terms-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.terms-section ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.7;
}

.terms-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
}

/* ── Highlight Boxes ─────────────────────────────────────────────── */
.highlight-box {
  background: var(--gradient-card);
  border: 1px solid rgba(93, 95, 239, 0.15);
  border-left: 4px solid var(--primary-container);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 20px 0;
}

.highlight-box.warning {
  border-left-color: #F59E0B;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
}

.highlight-box.ai {
  border-left-color: #00E5FF;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.02));
}

.highlight-box h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.highlight-box p {
  margin-bottom: 8px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

.highlight-box ul {
  margin-bottom: 0;
}

.highlight-box a {
  color: var(--primary-container);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.highlight-box a:hover {
  color: var(--secondary-container);
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .toc-card ol {
    columns: 1;
  }

  .toc-card {
    padding: 24px;
  }

  .terms-hero {
    padding: 140px 0 40px;
  }

  .terms-content {
    padding: 40px 0 80px;
  }

  .terms-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .highlight-box {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .terms-body {
    padding: 0 4px;
  }
}
