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

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

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

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

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

.terms-list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.terms-list li {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.sub-list {
  list-style: lower-alpha;
  padding-left: 2rem;
  margin-top: 0.75rem;
}

.sub-list li {
  margin-bottom: 0.5rem;
}

.bullet-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bullet-list li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.effective-date {
  background: var(--dark-card);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.effective-date p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlight-box {
  background: var(--dark-card);
  padding: 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid var(--primary-teal);
}

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

strong {
  color: var(--primary-coral);
  font-weight: 600;
}

p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-info {
  background: var(--dark-card);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
  border-left: 4px solid var(--accent-yellow);
}

.contact-info p {
  margin-bottom: 0.5rem;
}

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

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
  width: 100%;
}

.table thead {
  background: var(--dark-card);
  border-bottom: 2px solid var(--border-color);
}

.table th,
.table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
  vertical-align: top;
}

.table th {
  color: var(--primary-coral);
  font-weight: 600;
}

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

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