/* Адаптация для темной темы */
.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-dark {
  --bs-table-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Юридический документ стили */
.terms-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.terms-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.terms-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.terms-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

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

.terms-content ul,
.terms-content ol {
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 2rem;
}

.terms-content ul li,
.terms-content ol li {
  margin-bottom: 0.75rem;
}

.terms-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.last-updated {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.important-notice {
  background: rgba(var(--accent-rgb), 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.important-notice p {
  margin-bottom: 0;
  color: var(--text-primary);
}