:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #182230;
  --muted: #596779;
  --line: #dbe3ec;
  --accent: #1267d6;
  --note: #eef6ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(920px, calc(100% - 32px));
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { color: var(--text); font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.language-picker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
select {
  max-width: 270px;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--card);
  font: inherit;
}
main { width: min(920px, calc(100% - 32px)); margin: 34px auto; }
.policy-card { padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 12px 40px rgb(25 45 75 / 8%); }
h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -.015em; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin-top: 2.3em; padding-top: .2em; border-top: 1px solid var(--line); font-size: 1.45rem; }
h3 { margin-top: 1.8em; font-size: 1.12rem; }
h4 { margin-top: 1.5em; font-size: 1rem; }
p, li { overflow-wrap: anywhere; }
li + li { margin-top: .42em; }
.dates { margin: 0 0 28px; color: var(--muted); }
.translation-note, .translation-error { margin: 22px 0; padding: 13px 15px; border-radius: 10px; background: var(--note); color: var(--muted); }
.translation-note[data-state="done"] { border-inline-start: 3px solid #2f9e67; }
.translation-note[data-state="error"] { border-inline-start: 3px solid #d97706; }
footer { width: min(920px, calc(100% - 32px)); margin: 0 auto 36px; color: var(--muted); text-align: center; font-size: .9rem; }
[dir="rtl"] .policy-card { text-align: right; }
@media (max-width: 620px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; gap: 7px; }
  .language-picker { width: 100%; justify-content: space-between; }
  select { width: min(72vw, 290px); }
  main { margin-top: 18px; }
  .policy-card { border-radius: 14px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e141c; --card: #151e29; --text: #edf3fa; --muted: #a9b6c6; --line: #2a394a; --accent: #78b5ff; --note: #152b42; color-scheme: dark; }
}

:root[data-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"] {
  --bg: #0e141c;
  --card: #151e29;
  --text: #edf3fa;
  --muted: #a9b6c6;
  --line: #2a394a;
  --accent: #78b5ff;
  --note: #152b42;
  color-scheme: dark;
}

:root[data-theme="light"],
html[data-theme="light"],
body[data-theme="light"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #182230;
  --muted: #596779;
  --line: #dbe3ec;
  --accent: #1267d6;
  --note: #eef6ff;
  color-scheme: light;
}


.brand-group { display: flex; align-items: baseline; gap: 16px; }
.legal-link { color: var(--muted); font-size: .9rem; text-decoration: none; }
.legal-link:hover { color: var(--accent); text-decoration: underline; }
.policy-card strong { font-weight: 720; }
@media (max-width: 620px) {
  .brand-group { width: 100%; justify-content: space-between; }
}
