/* Voltio legal pages (privacy, terms, delete-account) in every language, generated by Voltio.Landing.Src/build.mjs.
   Same white + blue palette, fonts and light/dark themes as index.html; the theme is the one the
   visitor picked on the landing page (localStorage key voltio-theme). */
@font-face { font-family: "Noto Sans Georgian"; src: url("/fonts/NotoSansGeorgian-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("/fonts/NotoSansGeorgian-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("/fonts/NotoSansGeorgian-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface-1: #f4f6fa;
  --surface-3: #e3e8f0;
  --card: #ffffff;
  --border: #e3e8f0;
  --border-strong: #cdd5e1;
  --text: #0b1220;
  --text-2: #4b5870;
  --text-3: #64718a;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-text: #1d4ed8;
  --brand-tint: #eff6ff;
  --brand-tint-strong: #dbeafe;
  --brand-ring: rgba(29, 78, 216, .28);
  --header-bg: rgba(255, 255, 255, .84);
  --header-line: rgba(11, 18, 32, .07);
  /* "fill this in" markers — deliberately loud, they must not survive legal review */
  --todo-bg: #fef3c7;
  --todo-fg: #78350f;
  --todo-line: #d97706;
  --container: 820px;
  --gutter: 20px;
  --menu-shadow: 0 18px 40px -18px rgba(11, 18, 32, .35);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --surface-1: #0f1522;
  --surface-3: #1c2538;
  --card: #0f1522;
  --border: #212c40;
  --border-strong: #2e3b54;
  --text: #f4f7fb;
  --text-2: #a3aec2;
  --text-3: #7d8aa3;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-text: #60a5fa;
  --brand-tint: rgba(59, 130, 246, .14);
  --brand-tint-strong: rgba(59, 130, 246, .24);
  --brand-ring: rgba(96, 165, 250, .4);
  --header-bg: rgba(7, 11, 20, .80);
  --header-line: rgba(255, 255, 255, .06);
  --todo-bg: rgba(245, 158, 11, .18);
  --todo-fg: #fcd34d;
  --todo-line: #f59e0b;
  --menu-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.7;
  transition: background-color .2s ease, color .2s ease;
}
a { color: var(--brand-text); }
svg { display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 3px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--header-line); }
.site-header .container { max-width: 1160px; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 21px; letter-spacing: -.2px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); box-shadow: 0 6px 16px -6px rgba(29, 78, 216, .55); }
.brand-mark svg { width: 18px; height: 18px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
/* Language menu: 12 languages by their own names. Plain <details>, so it also works without JS;
   /site.js closes it on an outside click or Escape and remembers the choice (voltio-lang). */
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2);
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--brand-text); border-color: var(--brand-text); }
.lang-menu summary svg { width: 18px; height: 18px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 304px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--menu-shadow);
}
.lang-list.lang-list-short { grid-template-columns: minmax(0, 1fr); width: 196px; }
.lang-list li { margin: 0; }
.lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14.5px; line-height: 1.3; }
.lang-list a span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.lang-list a:hover { background: var(--surface-1); color: var(--brand-text); }
.lang-list a[aria-current="true"] { background: var(--brand-tint); color: var(--brand-text); font-weight: 600; }
.lang-list a[aria-current="true"] span { color: var(--brand-text); }
.theme-toggle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--brand-text); border-color: var(--brand-text); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 400px) { .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Document */
main { padding: clamp(32px, 6vw, 64px) 0 72px; }
.doc + .doc { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--border); }
.kicker { color: var(--brand-text); font-weight: 600; font-size: 14px; letter-spacing: .4px; }
/* "კონფიდენციალურობის" is one long word: keep it on a 320–375px phone without page scroll */
h1 { margin: 8px 0 8px; font-size: clamp(24px, 6.8vw, 42px); line-height: 1.18; letter-spacing: -.5px; overflow-wrap: break-word; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.updated { margin: 0 0 24px; color: var(--text-3); font-size: 14px; }
.intro { margin: 0 0 8px; color: var(--text-2); font-size: 17px; }
h2 { margin: 40px 0 10px; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.3; letter-spacing: -.2px; }
h3 { margin: 24px 0 6px; font-size: 17px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--brand-text); }
.muted { color: var(--text-3); font-size: 14px; }

.toc { margin: 24px 0 8px; padding: 18px 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; }
.toc b { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-2); }
.toc ol { margin: 0; columns: 2 220px; column-gap: 28px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--brand-text); }

.table-wrap { margin: 8px 0 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface-1); color: var(--text-2); font-weight: 600; font-size: 13.5px; }
tr:last-child td { border-bottom: 0; }

.callout { margin: 16px 0; padding: 16px 18px; border-radius: 14px; background: var(--brand-tint); border: 1px solid var(--brand-tint-strong); }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { position: relative; margin: 0; padding: 14px 16px 14px 60px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }

/* Placeholders the owner must fill in before publishing (search the source for class="todo") */
.todo { background: var(--todo-bg); color: var(--todo-fg); border-bottom: 2px dashed var(--todo-line); padding: 0 4px; border-radius: 4px; font-weight: 600; }
/* Every language except the Georgian original: "translation, not yet reviewed by a lawyer" */
.translation-banner { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--brand-tint); color: var(--text); border: 1px solid var(--brand-tint-strong); font-size: 14.5px; }
.draft-banner { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; background: var(--todo-bg); color: var(--todo-fg); border: 1px dashed var(--todo-line); font-size: 14.5px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--text-3); font-size: 14px; }
footer .container { max-width: 1160px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; color: var(--text-2); }
footer a:hover, footer a[aria-current="page"] { color: var(--brand-text); }
