/* Стили для правовых страниц (не зависят от Tailwind CDN — грузятся мгновенно) */
:root {
  --accent: #FDE68A;
  --accent-dark: #b45309;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
a { color: #1d4ed8; }
a:hover { color: #1e40af; }

.legal-header {
  background: #111827;
  color: #fff;
  padding: 14px 0;
}
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.legal-header a { color: #e5e7eb; text-decoration: none; }
.legal-header a:hover { color: #fff; text-decoration: underline; }
.legal-header .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; color: #fff;
}
.legal-header .brand img { width: 32px; height: 32px; filter: invert(1) brightness(0) invert(1); }
.legal-header nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

main.wrap { padding-block: 40px 56px; }

h1 { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 24px 0 8px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }

.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 32px;
}
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.note {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 20px 0;
}
.note.info { background: #eff6ff; border-left-color: #3b82f6; }

.placeholder {
  background: #fee2e2;
  border: 1px dashed #ef4444;
  border-radius: 4px;
  padding: 1px 6px;
  color: #991b1b;
  font-weight: 600;
  white-space: nowrap;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.legal-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; }

@media (max-width: 640px) {
  h1 { font-size: 1.55rem; }
  body { font-size: 15px; }
}
