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

/* Адаптация к темной теме */
.terms-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.terms-content h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 1rem;
}

.terms-content h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

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

.terms-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.terms-content ul,
.terms-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: var(--text-muted);
}

.terms-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

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

.last-updated {
  background: var(--dark-card);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 4px;
}

.section-number {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.important-notice {
  background: var(--dark-lighter);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 6px;
}

.table-responsive {
  margin: 2rem 0;
}

.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);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .terms-content h1 {
    font-size: 2rem;
  }
  
  .terms-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .terms-content h3 {
    font-size: 1.25rem;
  }
}