/* Styles for ZhivZdorov Legal Documents */
:root {
  --bg: oklch(98% 0.012 102);
  --surface: oklch(100% 0.003 100);
  --surface-warm: oklch(96% 0.03 92);
  --fg: oklch(22% 0.032 165);
  --muted: oklch(50% 0.025 155);
  --border: oklch(88% 0.025 112);
  --accent-strong: oklch(48% 0.14 152);
  --font-display: "Iowan Old Style", "Charter", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Контейнер по центру с оптимальной шириной для чтения */
.content-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

/* Кнопка "Назад" */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s, transform 0.2s;
  margin-bottom: 40px;
}
.back-link svg {
  transition: transform 0.2s;
}
.back-link:hover {
  color: var(--accent-strong);
}
.back-link:hover svg {
  transform: translateX(-4px);
}

/* Заголовки */
header h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.document-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.divider {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 24px;
  margin-bottom: 40px;
}

/* Контентные секции */
.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  color: var(--fg);
  margin-top: 0;
  margin-bottom: 18px;
  text-align: justify;
}

.legal-section strong {
  color: var(--fg);
}

/* Оформление списков внутри документа */
.legal-section ul,
.legal-section ol {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 10px;
  color: var(--fg);
}

/* Подвал */
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
  .content-container {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .legal-section p {
    text-align: left;
    font-size: 15px;
  }
  .legal-section h2 {
    font-size: 20px;
  }
}