:root {
  --bg: #faf7f2;
  --paper: #ffffff;
  --text: #2b2624;
  --muted: #6e625c;
  --accent: #8c1d18;
  --accent-soft: #d9b28c;
  --border: #e0d5c8;
  --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #f2eadf, #faf7f2 55%, #f6f1e8);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Контейнер документа */

.legal-shell {
  max-width: 920px;
  margin: 40px auto;
  padding: 24px;
}

.legal-card {
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 32px 32px 40px;
}

/* Шапка */

.legal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.legal-logo {
  width: 120px;
  height: auto;
  display: block;
}

.legal-title-block {
  flex: 1;
}

.legal-brand {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.legal-h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--text);
}

.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* Основной текст */

.legal-content {
  font-size: 15px;
  color: var(--text);
}

.legal-content h2 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 20px;
  margin: 26px 0 8px;
  color: var(--accent);
}

.legal-content h3 {
  font-weight: 600;
  font-size: 16px;
  margin: 18px 0 6px;
}

.legal-content p {
  margin: 8px 0;
}

.legal-content ul,
.legal-content ol {
  margin: 6px 0 10px 20px;
  padding-left: 16px;
}

.legal-content li {
  margin: 4px 0;
}

/* Блок-сноска */

.legal-note {
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8f1e9;
  border: 1px dashed var(--accent-soft);
  font-size: 13px;
  color: var(--muted);
}

/* Футер */

.legal-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.legal-footer a {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* Адаптив */

@media (max-width: 720px) {
  .legal-shell {
    margin: 16px auto;
    padding: 12px;
  }

  .legal-card {
    padding: 20px 18px 26px;
  }

  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-logo {
    width: 96px;
  }

  .legal-h1 {
    font-size: 22px;
  }

  .legal-content {
    font-size: 14px;
  }
}
