:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #030b0e;
  --surface: #08161a;
  --surface-2: #0b1c20;
  --line: rgba(211, 235, 220, 0.12);
  --text: #f5f8f5;
  --muted: #9aaba5;
  --lime: #8eea22;
  --cyan: #61c8e8;
  --amber: #f0bd55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: #8edcf2;
  text-underline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 13px;
  color: #07110c;
  background: var(--lime);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.language-control {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.privacy-shell {
  width: min(100% - 28px, 960px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 0 max(34px, env(safe-area-inset-bottom));
}

.privacy-topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 10;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 16, 19, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.privacy-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.privacy-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(142, 234, 34, 0.32);
  border-radius: 8px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  background: rgba(142, 234, 34, 0.06);
}

.privacy-brand-copy {
  display: grid;
  min-width: 0;
}

.privacy-brand-copy strong {
  font-size: 15px;
}

.privacy-brand-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #061114;
}

.language-switch label {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

#privacyLangRu:checked ~ .privacy-shell .language-switch label[for="privacyLangRu"],
#privacyLangEn:checked ~ .privacy-shell .language-switch label[for="privacyLangEn"] {
  color: #07110c;
  background: var(--lime);
}

#privacyLangRu:focus-visible ~ .privacy-shell .language-switch label[for="privacyLangRu"],
#privacyLangEn:focus-visible ~ .privacy-shell .language-switch label[for="privacyLangEn"],
a:focus-visible,
#policyContent:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.policy-hero {
  display: grid;
  gap: 9px;
  padding: 46px 0 20px;
}

.policy-kicker {
  color: var(--amber);
  font-size: 11px;
  font-weight: 740;
  text-transform: uppercase;
}

.policy-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.policy-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 22, 26, 0.82);
}

.policy-meta div {
  min-width: 0;
  padding: 13px 14px;
  border-left: 1px solid var(--line);
}

.policy-meta div:first-child {
  border-left: 0;
}

.policy-meta dt {
  color: var(--muted);
  font-size: 10px;
}

.policy-meta dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.policy-article {
  display: grid;
  gap: 10px;
}

.policy-article section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  break-inside: avoid;
}

.section-number {
  padding-top: 3px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}

.policy-article h2 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

.policy-article p,
.policy-article li {
  color: #bbc7c2;
  font-size: 14px;
  line-height: 1.62;
}

.policy-article p {
  margin: 8px 0 0;
}

.policy-article ul {
  margin: 9px 0 0;
  padding-left: 20px;
}

.policy-article li + li {
  margin-top: 6px;
}

.policy-article strong {
  color: #f2f7f3;
}

.policy-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.policy-en {
  display: none;
}

#privacyLangEn:checked ~ .privacy-shell .policy-ru {
  display: none;
}

#privacyLangEn:checked ~ .privacy-shell .policy-en {
  display: grid;
}

@media (max-width: 600px) {
  .privacy-shell {
    width: min(100% - 24px, 960px);
  }

  .privacy-brand-copy span {
    max-width: 142px;
  }

  .policy-hero {
    padding-top: 34px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-hero p {
    font-size: 15px;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }

  .policy-meta div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .policy-meta div:first-child {
    border-top: 0;
  }

  .policy-article section {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 18px 14px;
  }

  .policy-article h2 {
    font-size: 18px;
  }

  .policy-article p,
  .policy-article li {
    font-size: 13px;
  }

  .policy-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    color-scheme: light;
    --text: #101713;
    --muted: #4c5952;
    --line: #d5ddd8;
  }

  body {
    color: #101713;
    background: #fff;
  }

  .privacy-shell {
    width: 100%;
    padding: 0;
  }

  .privacy-topbar,
  .skip-link,
  .policy-footer {
    display: none !important;
  }

  .policy-hero {
    padding: 0 0 12mm;
  }

  .policy-kicker {
    color: #435148;
  }

  .policy-meta {
    border-color: #ccd5cf;
    background: #fff;
  }

  .policy-article {
    gap: 5mm;
  }

  .policy-article section {
    padding: 5mm;
    border: 1px solid #d5ddd8;
    background: #fff;
    box-shadow: none;
  }

  .policy-article p,
  .policy-article li {
    color: #28332d;
    font-size: 10pt;
  }

  .policy-article strong {
    color: #101713;
  }

  .section-number {
    color: #315c1d;
  }

  a {
    color: #174b65;
  }

  @page {
    size: A4;
    margin: 14mm;
  }
}
