/* Privacy Policy and Terms of Use pages (static files, no scripts). English first; a language is chosen with the
   links at the top (#en, #ka, #ru). Without :has() support every language is simply shown one below the other. */
:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5b6270;
  --line: #dfe3ea;
  --accent: #1d5fe0;
  --card: #f5f7fb;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --fg: #eceff5;
    --muted: #9aa3b5;
    --line: #262b36;
    --accent: #6ea2ff;
    --card: #131722;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Georgian", Arial, sans-serif;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.brand { font-weight: 800; letter-spacing: 0.01em; color: var(--fg); text-decoration: none; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs a, .doc-switch a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
}
.langs a:hover, .doc-switch a:hover { border-color: var(--accent); color: var(--accent); }
.doc-switch { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
h1 { font-size: 28px; line-height: 1.2; margin: 26px 0 4px; }
h2 { font-size: 18px; margin: 28px 0 6px; }
p { margin: 8px 0; }
ul, ol { margin: 8px 0; padding-left: 22px; }
li { margin: 5px 0; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  font-size: 15px;
}
a { color: var(--accent); }
section.lang { scroll-margin-top: 76px; padding-top: 4px; }
section.lang + section.lang { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 12px; }

@supports selector(:has(*)) {
  /* a language was chosen: show only that one */
  body:has(section.lang:target) section.lang:not(:target) { display: none; }
  /* nothing chosen: English */
  body:not(:has(section.lang:target)) section.lang:not(#en) { display: none; }
  section.lang + section.lang { border-top: 0; margin-top: 0; padding-top: 4px; }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
}
