@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --vf-navy: #202e56;
  --vf-navy-soft: #30416b;
  --vf-blue: #7f9fce;
  --vf-blue-light: #dbeaf3;
  --vf-cream: #fbf8e9;
  --vf-paper: #fbfaf7;
  --vf-white: #fff;
  --vf-line: rgba(32, 46, 86, 0.22);
  --vf-muted: rgba(32, 46, 86, 0.72);
  --vf-display: "Cormorant Garamond", Georgia, serif;
  --vf-body: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--vf-navy);
  background: var(--vf-paper);
  font-family: var(--vf-body);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--vf-navy);
  background: var(--vf-blue-light);
}

a {
  color: inherit;
  text-decoration-color: rgba(32, 46, 86, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-shell {
  width: min(1020px, calc(100% - 64px));
  margin: 0 auto;
}

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--vf-line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.legal-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--vf-navy);
  text-decoration: none;
  text-transform: uppercase;
}

.legal-brand__mark {
  display: block;
  width: 54px;
  height: 52px;
  flex: 0 0 auto;
  color: var(--vf-blue);
}

.legal-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.legal-brand__name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--vf-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.88;
  white-space: normal;
}

.legal-brand__name > span {
  display: block;
}

.legal-brand__copy small {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
}

.legal-return {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--vf-navy);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-return__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--vf-navy);
  transition: color 180ms ease, background 180ms ease;
}

.legal-return__icon::before,
.legal-return__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: currentColor;
  content: "";
}

.legal-return__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.legal-return__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.legal-return:hover .legal-return__icon,
.legal-return:focus-visible .legal-return__icon {
  color: var(--vf-white);
  background: var(--vf-navy);
}

.legal-return:focus-visible,
.legal-brand:focus-visible,
.legal-tabs a:focus-visible,
.legal-footer a:focus-visible {
  outline: 2px solid var(--vf-blue);
  outline-offset: 4px;
}

.legal-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--vf-line);
  background: var(--vf-blue-light);
}

.legal-hero__inner {
  position: relative;
  padding-top: clamp(52px, 7vw, 78px);
}

.legal-hero__inner::after {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(72px, 10vw, 126px);
  height: 7px;
  background: var(--vf-cream);
  content: "";
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--vf-muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-breadcrumbs a {
  text-decoration: none;
}

.legal-breadcrumbs a:hover,
.legal-breadcrumbs a:focus-visible {
  color: var(--vf-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-breadcrumbs span[aria-hidden="true"] {
  opacity: 0.5;
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(32, 46, 86, 0.28);
  color: var(--vf-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
}

.legal-eyebrow {
  margin: 0;
}

.legal-hero h1 {
  max-width: 880px;
  margin: 42px 0 0;
  font-family: var(--vf-display);
  font-size: clamp(48px, 6vw, 70px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--vf-muted);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.65;
}

.legal-tabs {
  display: flex;
  gap: 34px;
  margin-top: 44px;
}

.legal-tabs a {
  position: relative;
  padding: 0 0 17px;
  color: var(--vf-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.legal-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--vf-navy);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.legal-tabs a:hover,
.legal-tabs a:focus-visible,
.legal-tabs a[aria-current="page"] {
  color: var(--vf-navy);
}

.legal-tabs a:hover::after,
.legal-tabs a:focus-visible::after,
.legal-tabs a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.legal-layout {
  padding: 18px 0 88px;
}

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

.legal-section {
  padding: 46px 0 48px;
  border-bottom: 1px solid var(--vf-line);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  max-width: 760px;
  margin: 0 0 22px;
  font-family: var(--vf-display);
  font-size: clamp(31px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.legal-section h3 {
  margin: 31px 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.45;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  max-width: 820px;
}

.legal-section p {
  margin: 0 0 16px;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
  margin: 16px 0 22px;
  padding-left: 1.25em;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong {
  font-weight: 600;
}

.legal-note {
  max-width: 820px;
  margin: 26px 0 0;
  padding: 21px 24px 22px;
  border-left: 3px solid var(--vf-blue);
  background: var(--vf-cream);
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: 25px;
  border: 1px solid var(--vf-line);
  background: var(--vf-white);
}

.legal-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.58;
}

.legal-table th,
.legal-table td {
  padding: 17px 16px;
  border-right: 1px solid var(--vf-line);
  border-bottom: 1px solid var(--vf-line);
  vertical-align: top;
  text-align: left;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table th {
  color: var(--vf-navy);
  background: var(--vf-blue-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin-top: 26px;
  border: 1px solid var(--vf-line);
  background: var(--vf-line);
}

.legal-contact-card {
  min-width: 0;
  padding: 21px 22px 22px;
  background: var(--vf-blue-light);
}

.legal-contact-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--vf-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal-contact-card a {
  overflow-wrap: anywhere;
  font-family: var(--vf-display);
  font-size: 21px;
  line-height: 1.15;
}

.legal-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 3px 0 19px;
  padding: 0 20px;
  border: 1px solid var(--vf-navy);
  border-radius: 0;
  color: var(--vf-white);
  background: var(--vf-navy);
  cursor: pointer;
  font: 600 10px/1 var(--vf-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.legal-button:hover {
  color: var(--vf-navy);
  background: transparent;
}

.legal-button:focus-visible {
  outline: 2px solid var(--vf-blue);
  outline-offset: 3px;
}

.legal-footer {
  padding: 31px 0 34px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--vf-navy);
  font-size: 10px;
  letter-spacing: 0.035em;
}

.legal-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 30px;
}

.legal-footer a {
  color: var(--vf-white);
  text-decoration-color: rgba(255, 255, 255, 0.48);
}

.legal-page .vf-cookie-banner {
  border-color: var(--vf-line);
  border-radius: 0;
  color: var(--vf-navy);
  background: rgba(219, 234, 243, 0.97);
  box-shadow: 0 10px 30px rgba(32, 46, 86, 0.12);
  font-family: var(--vf-body);
}

.legal-page .vf-cookie-banner__button {
  border-color: var(--vf-navy);
  border-radius: 0;
  color: var(--vf-navy);
  background: transparent;
}

.legal-page .vf-cookie-banner__button--accept {
  color: var(--vf-white);
  background: var(--vf-navy);
}

.legal-page .vf-cookie-banner__button:focus-visible {
  outline-color: var(--vf-blue);
}

@media (max-width: 720px) {
  .legal-hero__inner::after {
    display: none;
  }

  .legal-shell {
    width: min(100% - 32px, 1020px);
  }

  .legal-header {
    position: relative;
    backdrop-filter: none;
  }

  .legal-header__inner {
    min-height: 76px;
    gap: 12px;
  }

  .legal-brand {
    gap: 8px;
  }

  .legal-brand__mark {
    width: 46px;
    height: 44px;
  }

  .legal-brand__name {
    font-size: 18px;
  }

  .legal-brand__copy small {
    margin-top: 5px;
    font-size: 7.5px;
    letter-spacing: 0.08em;
  }

  .legal-return {
    gap: 9px;
    font-size: 8px;
  }

  .legal-return__icon {
    width: 40px;
    height: 40px;
  }

  .legal-hero__inner {
    padding-top: 45px;
  }

  .legal-breadcrumbs {
    margin-bottom: 19px;
    font-size: 9px;
  }

  .legal-hero__meta {
    padding-bottom: 17px;
  }

  .legal-hero h1 {
    margin-top: 32px;
    font-size: clamp(40px, 12vw, 52px);
    line-height: 0.98;
  }

  .legal-hero__lead {
    margin-top: 21px;
    font-size: 14px;
  }

  .legal-tabs {
    gap: 24px;
    margin-top: 35px;
  }

  .legal-tabs a {
    padding-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .legal-layout {
    padding-top: 6px;
    padding-bottom: 54px;
  }

  .legal-section {
    padding: 35px 0 37px;
  }

  .legal-section h2 {
    margin-bottom: 18px;
    font-size: 31px;
  }

  .legal-section h3 {
    margin-top: 26px;
  }

  .legal-note {
    padding: 18px 19px 19px;
  }

  .legal-contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table {
    min-width: 0;
  }

  .legal-table thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .legal-table tbody {
    display: grid;
    gap: 12px;
  }

  .legal-table tr {
    padding: 11px 15px 13px;
    border: 1px solid var(--vf-line);
    background: var(--vf-white);
  }

  .legal-table td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 13px;
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--vf-line);
  }

  .legal-table tr:last-child td {
    border-bottom: 1px solid var(--vf-line);
  }

  .legal-table td:last-child {
    border-bottom: 0;
  }

  .legal-table td::before {
    color: var(--vf-muted);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .legal-table td:nth-child(1)::before { content: "Цель"; }
  .legal-table td:nth-child(2)::before { content: "Данные"; }
  .legal-table td:nth-child(3)::before { content: "Основание"; }
  .legal-table td:nth-child(4)::before { content: "Срок"; }

  .legal-footer {
    padding: 28px 0 30px;
  }

  .legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .legal-shell {
    width: min(100% - 24px, 1020px);
  }

  .legal-header__inner {
    min-height: 72px;
  }

  .legal-brand__mark {
    width: 42px;
    height: 40px;
  }

  .legal-brand__name {
    font-size: 17px;
  }

  .legal-brand__copy small {
    font-size: 7px;
  }

  .legal-return__label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .legal-hero h1 {
    font-size: 38px;
  }

  .legal-hero__meta span {
    display: none;
  }

  .legal-tabs {
    justify-content: space-between;
    gap: 13px 18px;
  }

  .legal-contact-card a {
    font-size: 19px;
  }

  .legal-table td {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 11px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
