/* privacy.vetera.si — the WBT brand on the policy pages (Čebela; Znamka z2). Readable first (Enej, 6 Oct): a ~68-character column,
   18 px body at 1.7, numbered sections with a contents list, and the app's orange used sparingly (section numbers, links, one short rule).
   Figtree is served from this site (no third-party font request on a privacy page). Colours are the app's tokens
   (packages/design-tokens, light and dark); the page follows the reader's light / dark setting. */
@font-face { font-family: Figtree; src: url(/assets/figtree-regular.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/assets/figtree-bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #F6F7F5; --card: #FFFFFF; --text: #171A16; --body: #2A2F27; --muted: #5E645A; --line: rgba(23, 26, 22, .1);
  --primary: #FF9A47; --accent: #B04F0E; --link: #B04F0E; --glow: #E6EEE3;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D0A; --card: #151913; --text: #F6F7F5; --body: #DCE1D8; --muted: #A5AD9F; --line: rgba(255, 255, 255, .1);
    --primary: #FF9A47; --accent: #FF9A47; --link: #FFB27A; --glow: #142019;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; padding: 0 24px 96px;
  font: 400 18px/1.7 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: radial-gradient(80% 360px at 12% 0%, var(--glow) 0%, transparent 100%) no-repeat, var(--bg);
  text-rendering: optimizeLegibility;
}
body > * { max-width: 42.5rem; margin-left: auto; margin-right: auto; }

/* the header: the boar and the name (the brand book's horizontal lockup), the language flags on the right */
.site { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 0; }
.site > a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.site img { width: 48px; height: auto; display: block; }
.site b { display: block; font-size: 20px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.site small { display: block; font-size: 14px; line-height: 1.3; color: var(--muted); margin-top: 3px; }

/* the language switch: small drawn flags (Windows draws no flag emoji); the language name is the accessible label */
.lang { display: flex; align-items: center; gap: 6px; margin: 0; }
.lang a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; text-decoration: none; }
.lang a:hover, .lang a:focus-visible { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.lang a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang svg { width: 24px; height: 16px; display: block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang .txt { font-size: 15px; font-weight: 700; color: var(--link); width: auto; padding: 0 10px; white-space: nowrap; }
/* the language on screen: the flag of the one shown is marked (the switch script sets data-show; without it both languages show) */
html[data-show="sl"] .lang a[data-lang="sl"], html[data-show="en"] .lang a[data-lang="en"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--primary); }
html[data-show="sl"] .doc[lang="en"], html[data-show="en"] .doc[lang="sl"], html[data-show] .divider { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* titles: the page title, the date line, one short orange rule */
h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 56px auto 0; text-wrap: balance; counter-reset: sec; }
h1::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--primary); margin-top: 20px; }
h1 + p { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* sections: a hairline, room above, the number in orange (CSS counters: the legal text itself is untouched) */
h2 { counter-increment: sec; position: relative; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--text);
  margin: 56px auto 14px; padding-top: 28px; border-top: 1px solid var(--line); text-wrap: balance; }
h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.doc { counter-reset: sec; }
.txt > h2:first-child, h1 + h2 { border-top: none; padding-top: 0; margin-top: 40px; }
h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 28px auto 8px; }
p, ul, ol { margin-top: 0; margin-bottom: 18px; }
ul, ol { padding-left: 1.25em; }
li { margin: 10px 0; padding-left: 4px; }
li::marker { color: var(--muted); }
ol > li::marker { font-weight: 700; }
li > ul { margin-top: 10px; margin-bottom: 4px; }
strong, b { font-weight: 700; color: var(--text); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font: 15px/1.4 ui-monospace, Consolas, monospace; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 1px 6px; border-radius: 6px; }

/* the contents list at the top of each language: the same numbers as the sections */
.toc { margin: 32px auto 8px; padding: 20px 24px 18px; background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.toc .toct { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; counter-reset: toc; }
.toc li { counter-increment: toc; margin: 0; padding: 5px 0; break-inside: avoid; font-size: 16px; line-height: 1.4; display: flex; gap: 10px; }
.toc li::before { content: counter(toc, decimal-leading-zero); flex: none; width: 1.6em; font-size: 13px; font-weight: 800; line-height: 1.75; color: var(--accent); font-variant-numeric: tabular-nums; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.toc a.on { color: var(--link); font-weight: 700; }

.divider { border: none; height: 1px; background: var(--line); margin: 96px auto 0; }

footer { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* wide screens: the contents move into a side column that stays in view while reading */
@media (min-width: 1100px) {
  body:has(.toc) > * { max-width: 62rem; }
  .doc:has(.toc) { display: grid; grid-template-columns: 14rem minmax(0, 42.5rem); column-gap: 5.5rem; grid-template-areas: ". dh" "toc txt"; }
  .doc .dh { grid-area: dh; } .doc .txt { grid-area: txt; }
  .doc .toc { grid-area: toc; position: sticky; top: 32px; align-self: start; margin: 46px 0 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .toc ol { columns: 1; }
  .toc li { font-size: 15px; padding: 6px 0; }
}
@media (max-width: 560px) {
  body { padding: 0 20px 72px; font-size: 17px; line-height: 1.65; }
  .site { padding-top: 20px; }
  .site img { width: 40px; }
  .site b { font-size: 18px; }
  .site small { font-size: 13px; }
  h1 { font-size: 30px; margin-top: 40px; }
  h2 { font-size: 21px; margin-top: 44px; padding-top: 24px; }
  .toc { padding: 16px 18px 14px; margin-top: 24px; }
  .toc ol { columns: 1; }
  .lang .txt { display: none; }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; padding: 0; }
  body > * { max-width: none; }
  .lang, .toc { display: none; }
  h1, h2, h3, strong, b { color: #000; }
  h1::after { background: #000; }
  h2 { border-top-color: #bbb; margin-top: 24pt; padding-top: 10pt; break-after: avoid; }
  h2::before { color: #000; }
  a { color: #000; text-decoration: none; }
  .divider { break-after: page; margin: 0; }
}
