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

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

.terms-section {
  margin-bottom: 3rem;
}

.terms-section h2 {
  color: var(--primary, #ff6b9d);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent, #c44569);
}

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

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

.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-secondary, #b0b0b0);
}

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

.highlight-box {
  background: var(--dark-card, #16213e);
  border-left: 4px solid var(--accent, #c44569);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.25rem;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-tertiary, #808080);
  font-style: italic;
  margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
  .terms-section h2 {
    font-size: 1.3rem;
  }
  
  .terms-section h3 {
    font-size: 1.1rem;
  }
}