/* Dhatom — právní stránky. Stejné barvy jako hlavní stránka */
:root {
  --paper: #f4f5f7; --surface: #ffffff; --ink: #17202e; --muted: #59626f;
  --accent-ink: #9a3622; --band: #121c2c; --tint: #e8ecf1; --line: #dce1e8;
  --on-band-soft: rgba(255,255,255,.78);
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e131b; --surface: #161e2a; --ink: #e9edf3; --muted: #a3adbb;
    --accent-ink: #f08a72; --band: #0a111c; --tint: #1b2533; --line: #273244;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1513; --surface: #17211d; --ink: #e7ede9; --muted: #a2b1a9;
  --accent-ink: #f0b867; --band: #0c1a16; --tint: #1c2a24; --line: #27362f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.65; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b5462f; outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Galvene */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1; }
.logo-mark { width: 30px; height: 36px; flex: none; border: 3px solid #1f3350; border-radius: 15px 15px 2px 2px; position: relative; background: linear-gradient(#1f3350, #1f3350) center / 3px 100% no-repeat, linear-gradient(#1f3350, #1f3350) 0 60% / 100% 3px no-repeat; }
.logo-mark::after { content: ""; position: absolute; left: -3px; right: -3px; bottom: -6px; height: 4px; background: #b5462f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark { border-color: #8fb0dc; background: linear-gradient(#8fb0dc, #8fb0dc) center / 3px 100% no-repeat, linear-gradient(#8fb0dc, #8fb0dc) 0 60% / 100% 3px no-repeat; } }
.back { font-size: 15px; font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 3px; border: 1.5px solid var(--line); }
.back:hover { border-color: var(--ink); }

/* Struktūra */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 52px 96px; }
.docs { position: sticky; top: 24px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.docs h2 { font: 600 12.5px var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs a { display: block; padding: 9px 12px; border-radius: 3px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.docs a:hover { background: var(--tint); color: var(--ink); }
.docs a[aria-current="page"] { background: #1f3350; color: #fff; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 26px; padding-block: 26px 64px; }
  .docs { position: static; padding: 12px; }
  .docs ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .docs a { padding: 7px 12px; background: var(--tint); font-size: 14px; }
}

/* Dokuments */
article { max-width: 74ch; min-width: 0; }
.eyebrow { font: 600 12.5px var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 12px; }
article h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.updated { font: 500 13px var(--f-num); color: var(--muted); margin: 14px 0 0; }
.intro { font-size: 18px; color: var(--muted); margin: 24px 0 0; padding: 20px 22px; background: var(--surface); border-radius: 4px; border-left: 5px solid #b5462f; }
article h2 { font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 40px 0 12px; text-wrap: balance; scroll-margin-top: 24px; }
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
article strong { font-weight: 800; }
article a { color: var(--accent-ink); font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px 20px; margin: 0 0 16px; }
.card dl { margin: 0; display: grid; }
.card dl div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.card dl div:last-child { border-bottom: 0; }
.card dt { font: 600 12.5px var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 520px) { .card dl div { grid-template-columns: 1fr; gap: 2px; } }
.table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font: 600 12px var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--tint); }
tr:last-child td { border-bottom: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--f-body); padding: 14px 20px; border-radius: 3px; text-decoration: none; background: #b5462f; color: #fff !important; }

/* Kājene */
footer { background: var(--band); color: var(--on-band-soft); padding-block: 32px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
