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

/* Адаптация к теме сайта */
.terms-content {
  background-color: var(--dark-card);
  color: var(--text-primary);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.terms-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

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

.terms-section h2 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  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: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

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

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

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

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

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

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

.last-updated p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

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

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