:root {
  --off-white: #fcf7ee;
  --sand: #ead8c8;
  --mauve: #c49aa8;
  --burgundy: #752437;
  --charcoal: #4c322f;
  --muted-text: rgba(76, 50, 47, 0.72);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  font-family:
    Outfit,
    Geist,
    "Plus Jakarta Sans",
    Avenir Next,
    system-ui,
    sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(177, 92, 118, 0.14), transparent 32rem),
    radial-gradient(circle at 86% 10%, rgba(191, 166, 151, 0.2), transparent 34rem),
    linear-gradient(135deg, var(--off-white), #f4eadf 58%, #efe0d3);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(76, 50, 47, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 50, 47, 0.018) 1px, transparent 1px);
  background-size: 17px 19px;
  mix-blend-mode: multiply;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

code {
  padding: 0.15em 0.36em;
  border-radius: 0.42rem;
  color: var(--burgundy);
  background: rgba(117, 36, 55, 0.1);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.policy-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.policy-nav {
  position: sticky;
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(252, 247, 238, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 55px rgba(73, 42, 38, 0.11);
  backdrop-filter: blur(22px);
}

.wordmark,
.policy-nav nav,
.policy-footer {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 10px;
  color: var(--charcoal);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
}

.wordmark .kostyl-mark {
  width: 20px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.policy-nav nav {
  gap: 10px;
}

.policy-nav a:not(.wordmark):not(.language-option),
.language-option,
.policy-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 650ms var(--ease-out),
    background 650ms var(--ease-out),
    color 650ms var(--ease-out);
}

.policy-nav a:not(.wordmark):not(.language-option):hover,
.language-option:hover,
.policy-footer a:hover {
  transform: translateY(-2px);
  background: rgba(117, 36, 55, 0.1);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--charcoal);
}

.language-option {
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(252, 247, 238, 0.68);
}

.language-option.is-active {
  color: var(--charcoal);
  background: var(--off-white);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.78);
}

.language-option:not(.is-active):hover {
  color: var(--off-white);
  background: rgba(255, 255, 255, 0.12);
}

.eyebrow {
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.localized-copy.locale-en,
body[data-locale="en"] .localized-copy.locale-ru,
body.is-localized .policy-locale:not(.is-active) {
  display: none;
}

body[data-locale="en"] .localized-copy.locale-en {
  display: inline;
}

.policy-page-title {
  max-width: 960px;
  padding: clamp(76px, 10vw, 130px) 0 clamp(24px, 4vw, 42px);
  color: var(--charcoal);
  font-size: clamp(2.45rem, 5vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.policy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  padding: 0 0 clamp(76px, 10vw, 130px);
  scroll-margin-top: 110px;
}

.policy-layout + .policy-layout {
  border-top: 1px solid rgba(76, 50, 47, 0.14);
}

.policy-meta {
  min-width: 0;
}

.policy-meta dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 12px;
}

.policy-meta dl > div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.66);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
}

.policy-meta dt {
  color: rgba(76, 50, 47, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-meta dd {
  color: var(--charcoal);
  font-weight: 800;
  line-height: 1.42;
}

.policy-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.policy-stack article {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 30px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.policy-stack h3 {
  color: var(--charcoal);
  font-size: clamp(1.16rem, 2vw, 1.72rem);
  line-height: 1.06;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.policy-stack p {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.policy-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 52px 0 0;
  border-top: 1px solid rgba(76, 50, 47, 0.14);
  color: var(--muted-text);
}

.policy-footer p {
  display: grid;
  gap: 6px;
  line-height: 1.5;
}

.policy-footer small {
  font-size: 0.78rem;
}

.policy-footer a {
  flex: 0 0 auto;
  color: var(--off-white);
  background: var(--charcoal);
}

a:focus-visible {
  outline: 3px solid rgba(117, 36, 55, 0.42);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .policy-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .policy-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 12px;
  }

  .policy-nav {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .wordmark {
    gap: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .wordmark .kostyl-mark {
    width: 17px;
    height: 34px;
  }

  .policy-nav nav {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 8px;
  }

  .policy-nav a:not(.wordmark):not(.language-option),
  .language-option,
  .policy-footer a {
    min-height: 38px;
    font-size: 0.74rem;
    font-weight: 750;
  }

  .language-option {
    min-width: 38px;
    min-height: 30px;
  }

  .policy-page-title {
    padding: clamp(54px, 14vw, 78px) 0 22px;
  }

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

  .language-toggle {
    justify-content: center;
  }

  .policy-page-title {
    font-size: clamp(1.56rem, 6.4vw, 2rem);
    line-height: 1.08;
  }

  .policy-stack article,
  .policy-meta dl > div {
    border-radius: 24px;
  }

  .policy-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .policy-nav,
  .policy-footer {
    display: none;
  }

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

  .policy-layout {
    padding: 24px 0;
  }

  .policy-layout {
    display: block;
  }

  .policy-meta,
  .policy-stack article {
    break-inside: avoid;
  }

  .policy-stack article,
  .policy-meta dl > div {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
