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

/* Адаптация под темную тему */
.terms-container {
  background-color: var(--dark-bg);
  color: var(--text-primary);
}

.terms-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-section:last-child {
  border-bottom: none;
}

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

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

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

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

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

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

.effective-date {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.highlight-text {
  color: var(--primary-magenta);
  font-weight: 500;
}

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

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

.table thead {
  background: var(--card-bg);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.table thead th {
  color: var(--primary-cyan);
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.1);
}

.table tbody td {
  border-color: rgba(255, 255, 255, 0.08);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
  .terms-section h2 {
    font-size: 1.5rem;
  }
  
  .terms-section h3 {
    font-size: 1.2rem;
  }
  
  .terms-section ul,
  .terms-section ol {
    padding-left: 1.25rem;
  }
}