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

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

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

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

.terms-section h2 {
  color: var(--accent, #ffd700);
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

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

.terms-section h4 {
  color: var(--text-primary, #ffffff);
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

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

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

.terms-section li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary, rgba(255,255,255,0.85));
}

.terms-section strong {
  color: var(--accent, #ffd700);
  font-weight: 600;
}

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

.contact-info {
  background-color: var(--dark-card, #0f0f1e);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}

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

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

.table thead {
  background: var(--dark-card, #0f0f1e);
  border-bottom: 2px solid var(--border-color, rgba(255,255,255,0.2));
}

.table th {
  color: var(--accent, #ffd700);
  font-weight: 600;
  padding: 1rem;
}

.table td {
  padding: 0.75rem 1rem;
  border-color: var(--border-color, rgba(255,255,255,0.1));
}

.table-dark th {
  color: #000000 !important;
}

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