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

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

/* Типографика для юридического документа */
.terms-section {
  margin-bottom: 3rem;
  line-height: 1.8;
}

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

.terms-section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.terms-section h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

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

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

.terms-section li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

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

.last-updated {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--primary);
}

.intro-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Таблицы для структурированных данных */
.table-responsive {
  margin-bottom: 2rem;
}

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

.table thead {
  background: var(--darker);
  border-bottom: 2px solid var(--primary);
}

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

/* Блоки с важной информацией */
.important-notice {
  padding: 1.5rem;
  margin: 2rem 0;
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--accent);
}

.important-notice p {
  margin-bottom: 0;
  font-weight: 500;
}