/* Brand-matched legal pages style — Перезагрузка */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-cream: #f4ede3;
  --bg-white: #faf7f2;
  --text: #1c1a17;
  --text-muted: #5c564e;
  --text-soft: #8a8275;
  --accent: #a8411d;
  --accent-hover: #8a3215;
  --line-soft: #e2d8c6;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg-cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  padding: 60px 20px 80px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 60px 56px;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(28, 26, 23, 0.04);
}

header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

header a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

header a:hover { color: var(--accent); }

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 32px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  color: var(--text);
}

ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
  color: var(--text);
}

li > ul, li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

strong { font-weight: 600; color: var(--text); }
em { font-style: italic; color: var(--text-muted); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

a:hover { color: var(--accent-hover); }

hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

th {
  text-align: left;
  padding: 12px 14px;
  background: var(--bg-cream);
  border-bottom: 2px solid var(--line-soft);
  font-weight: 600;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-cream);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-muted);
}

pre {
  background: var(--bg-cream);
  padding: 16px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  font-size: 0.92em;
  line-height: 1.5;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}

footer a { color: var(--text-soft); }

@media (max-width: 640px) {
  body { padding: 24px 14px 40px; font-size: 15px; }
  .container { padding: 36px 24px; border-radius: 4px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; margin-top: 32px; }
}

@media print {
  body { background: white; padding: 0; }
  .container { box-shadow: none; padding: 24px 0; }
  header, footer { display: none; }
}
