/* rampa.bg – стил на правните страници (същите цветове и шрифтове като приложението) */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Semi+Condensed:wght@600;700&display=swap');

:root {
  --asphalt: #1e293b; --paper: #f6f7f9; --surface: #ffffff; --ink: #0f172a; --ink-2: #334155;
  --muted: #64748b; --line: #dfe3e8; --dock: #f2b705; --link: #0b5cad;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Semi Condensed', 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--link); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--asphalt); outline-offset: 2px; }

.top { background: var(--asphalt); color: #fff; }
.top .in { max-width: 860px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 19px var(--font-head); }
.home img { width: 28px; height: 28px; }
.home sup { font-size: 10px; color: #94a3b8; margin-left: -6px; }
.lang { display: flex; gap: 2px; background: rgba(255,255,255,0.08); border-radius: 8px; padding: 3px; }
.lang button { font: 600 13px var(--font); color: #94a3b8; background: none; border: 0; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--dock); color: var(--asphalt); }

main { max-width: 860px; margin: 0 auto; padding: 36px 20px 56px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 36px 44px; }
h1 { font: 700 clamp(28px, 4vw, 38px)/1.15 var(--font-head); margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
h2 { font: 700 22px/1.25 var(--font-head); margin: 34px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); }
h2:first-of-type { border-top: 0; }
h3 { font: 600 18px/1.3 var(--font-head); margin: 20px 0 6px; }
p, li { color: var(--ink-2); }
ul, ol { padding-left: 1.3em; }
li { margin: 4px 0; }
.toc { background: var(--paper); border-radius: 8px; padding: 14px 20px; margin: 0 0 8px; columns: 2; column-gap: 32px; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc ol { margin: 0; }
.toc li { margin: 0 0 4px; break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); font-weight: 600; color: var(--ink); }
.note { background: #fff6d6; border-left: 4px solid var(--dock); padding: 10px 14px; border-radius: 4px; }
.missing { background: #fde68a; color: #7c2d12; padding: 0 4px; border-radius: 3px; font-weight: 600; }

footer { max-width: 860px; margin: 0 auto; padding: 0 20px 36px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

[data-lang="en"] .bg, [data-lang="bg"] .en { display: none; }

@media (max-width: 640px) {
  .doc { padding: 22px 18px; }
  .toc { columns: 1; }
  table, thead, tbody, tr, th, td { font-size: 14px; }
}
@media print {
  .top, .lang, footer, .toc { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}
