/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация к теме сайта */
.bg-light {
  background-color: var(--dark-lighter) !important;
  color: var(--text-primary) !important;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

/* Юридический документ - минималистичный стиль */
.terms-section {
  margin-bottom: 2.5rem;
}

.terms-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

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

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

.terms-section ul,
.terms-section ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

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

.last-update {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.important-notice {
  padding: 1rem;
  border-left: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 1.5rem;
}