/* Theme adaptation for dark site */
h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.bg-dark,
.bg-dark .card-title,
.bg-dark .card-text,
.bg-dark p,
.card.bg-dark,
.card.bg-dark .card-title,
.card.bg-dark .card-text {
  color: #fff;
}

.bg-dark p,
.bg-dark .card-text,
.card.bg-dark .card-text {
  color: rgba(248, 245, 240, 0.9);
}

:root {
  --section-spacing: 3rem;
  --text-muted: rgba(255, 255, 255, 0.7);
}

.terms-header {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: var(--section-spacing);
}

.terms-section {
  margin-bottom: var(--section-spacing);
}

.terms-section h2 {
  color: var(--accent-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.terms-section h3 {
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.terms-section p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.terms-section ul,
.terms-section ol {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
}

.last-updated {
  color: #000;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.important-notice {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Numbered sections styling */
.terms-section h2::before {
  content: counter(section) ". ";
  counter-increment: section;
  color: var(--accent-primary);
}

.terms-content {
  counter-reset: section;
}

/* Subsection numbering */
.terms-subsection {
  margin-left: 1rem;
}