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

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

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

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

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

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

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

.terms-section ul li {
  margin-bottom: 0.75rem;
}

.terms-section ol li {
  margin-bottom: 1rem;
}

.terms-intro {
  background: var(--dark-card);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  margin-bottom: 3rem;
}

.terms-intro p {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.terms-intro strong {
  color: var(--primary);
}

.important-notice {
  background: rgba(var(--accent-rgb), 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.important-notice p {
  color: var(--text-primary);
  margin-bottom: 0;
}

.sub-list {
  list-style-type: lower-alpha;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .terms-section h2 {
    font-size: 1.5rem;
  }
  
  .terms-intro {
    padding: 1.5rem;
  }
}