:root {
  --surface: #f7f9fb;
  --surface-soft: #eef4fb;
  --card: #ffffff;
  --card-muted: #f8fbff;
  --line: #dbe5f0;
  --line-strong: #b9c8da;
  --ink: #172033;
  --ink-muted: #526276;
  --primary: #005bbf;
  --primary-bright: #1a73e8;
  --teal: #10b6ca;
  --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.1);
  --site-pref-text: #172033;
  --site-pref-text-hover: #0f172a;
  --site-pref-muted: #526276;
  --site-pref-accent: #1267d8;
  --site-pref-panel: rgba(255, 255, 255, 0.94);
  --site-pref-panel-soft: rgba(255, 255, 255, 0.74);
  --site-pref-line: rgba(191, 219, 254, 0.76);
  --site-pref-hover: rgba(26, 115, 232, 0.12);
  --site-pref-selected: rgba(26, 115, 232, 0.16);
  --site-pref-selected-dot: #1a73e8;
  --site-pref-selected-ring: rgba(26, 115, 232, 0.16);
  --site-pref-control-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --site-pref-menu-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="dark"] {
  --surface: #080d16;
  --surface-soft: #0d1422;
  --card: #101827;
  --card-muted: #121c2d;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.32);
  --ink: #eef4ff;
  --ink-muted: #aebdd3;
  --primary: #8ec5ff;
  --primary-bright: #76b7ff;
  --teal: #80ecff;
  --shadow-soft: 0 24px 54px rgba(0, 0, 0, 0.36);
  --site-pref-text: #eef4ff;
  --site-pref-text-hover: #ffffff;
  --site-pref-muted: #aebdd3;
  --site-pref-accent: #93c5fd;
  --site-pref-panel: rgba(15, 23, 42, 0.9);
  --site-pref-panel-soft: rgba(15, 23, 42, 0.86);
  --site-pref-line: rgba(148, 163, 184, 0.24);
  --site-pref-hover: rgba(59, 130, 246, 0.14);
  --site-pref-selected: rgba(59, 130, 246, 0.18);
  --site-pref-selected-dot: #60a5fa;
  --site-pref-selected-ring: rgba(96, 165, 250, 0.22);
  --site-pref-control-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  --site-pref-menu-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--surface);
}

html[data-theme="dark"] body {
  background: var(--surface);
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

code {
  padding: 0.08em 0.32em;
  color: #24405f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
  background: rgba(226, 238, 250, 0.75);
  border: 1px solid rgba(185, 200, 218, 0.7);
  border-radius: 6px;
}

html[data-theme="dark"] code {
  color: #a8d3ff;
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.26);
}

html:not([data-language="ru"]) [data-language-panel="ru"],
html[data-language="ru"] [data-language-panel="en"] {
  display: none;
}

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 0;
}

.site-header .site-actions {
  align-self: flex-start;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 87, 191, 0.16));
}

.brand span {
  overflow-wrap: anywhere;
}

.policy-hero {
  padding: 56px 24px 42px;
}

.policy-hero__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1.6;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(780px, 100%);
  margin: 28px auto 0;
}

.meta-row > .wp-block-group__inner-container {
  display: contents;
}

.meta-row > span,
.meta-row p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  max-width: 100%;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  color: #24405f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(191, 219, 254, 0.76);
  border-radius: 8px;
}

.policy-meta::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: var(--primary-bright);
  opacity: 0.88;
  -webkit-mask-image: var(--policy-meta-icon);
  mask-image: var(--policy-meta-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.policy-meta--updated {
  --policy-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.983 12.548a9 9 0 1 0 -8.45 8.436'/%3E%3Cpath d='M19 22v-6'/%3E%3Cpath d='M22 19l-3 -3l-3 3'/%3E%3Cpath d='M12 7v5l2.5 2.5'/%3E%3C/svg%3E");
}

.policy-meta--version {
  --policy-meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z'/%3E%3C/svg%3E");
}

.policy-meta__label {
  flex: 0 0 auto;
  color: #66778d;
  font-weight: 750;
  white-space: nowrap;
}

.policy-meta__value {
  flex: 0 0 auto;
  color: #24405f;
  font-weight: 800;
  white-space: nowrap;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 38px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.summary-band > .wp-block-group__inner-container {
  display: contents;
}

.summary-band article,
.summary-band .summary-card {
  min-height: 132px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.summary-band strong,
.summary-band .summary-card__title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.summary-band span,
.summary-band .summary-card__text {
  display: block;
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
}

.policy-content {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 80px;
  padding: 38px 42px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.policy-content section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

p + p,
ul + p {
  margin-top: 14px;
}

ul {
  display: block;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
}

.policy-content li {
  width: auto;
  max-width: none;
  margin: 0;
  text-align: left;
}

.policy-content li + li {
  margin-top: 9px;
}

li::marker {
  color: var(--primary-bright);
}

html[data-theme="dark"] .meta-row > span,
html[data-theme="dark"] .meta-row p,
html[data-theme="dark"] .summary-band article,
html[data-theme="dark"] .summary-band .summary-card,
html[data-theme="dark"] .policy-content {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="dark"] .meta-row > span,
html[data-theme="dark"] .meta-row p,
html[data-theme="dark"] .policy-meta__value {
  color: #a8d3ff;
}

html[data-theme="dark"] .policy-meta__label {
  color: #8ea0b8;
}

html[data-theme="dark"] .summary-band {
  background: rgba(148, 163, 184, 0.22);
  border-color: rgba(148, 163, 184, 0.24);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: row;
  }

  .site-actions {
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .site-header,
  .summary-band,
  .policy-content {
    width: calc(100% - 32px);
  }

  .summary-band,
  .policy-content {
    width: calc(100% - 64px);
  }

  .site-header {
    min-height: 72px;
  }

  .policy-hero {
    padding: 36px 16px 30px;
    overflow: hidden;
  }

  .policy-hero__inner,
  h1,
  .lead {
    width: calc(100vw - 96px);
    max-width: calc(100vw - 96px);
    min-width: 0;
  }

  .meta-row {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .lead {
    width: calc(100vw - 128px);
    max-width: calc(100vw - 128px);
    font-size: 16px;
    line-height: 1.58;
  }

  h1 {
    font-size: 24px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .meta-row {
    align-items: center;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  .meta-row > span,
  .meta-row p {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .policy-meta::before {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
  }

  .summary-band {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .summary-band article,
  .summary-band .summary-card {
    min-height: 0;
    padding: 18px;
  }

  .policy-content {
    margin-bottom: 52px;
    padding: 24px 18px;
  }

  .policy-content section + section {
    margin-top: 28px;
    padding-top: 24px;
  }

  h2 {
    font-size: 22px;
  }

  p,
  ul {
    font-size: 15px;
  }

}

/* Keep WordPress admin bar isolated from the privacy page typography/list rules. */
#wpadminbar,
#wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#wpadminbar ul,
#wpadminbar ol {
  display: block;
  gap: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 13px;
  line-height: 32px;
}

#wpadminbar li {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

#wpadminbar li::marker {
  color: transparent;
}

#wpadminbar a,
#wpadminbar a:hover,
#wpadminbar a:focus {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
}

#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
  color: #f0f0f1;
}

#wpadminbar .ab-sub-wrapper,
#wpadminbar .menupop .ab-sub-wrapper {
  z-index: 99999;
}
