/* Шрифты размещены на своём хостинге — без обращений к сторонним доменам. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-300-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-300-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-300-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/inter-300-normal-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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/inter-400-normal-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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/inter-500-normal-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: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-italic-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: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-italic-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: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/playfair-display-400-normal-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: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-500-normal-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;
}

/* ============================================================
   Юридические страницы — Editorial / Minimalist Luxe
   ============================================================ */

:root {
  --paper: #F6F4EF;
  --paper-deep: #EDEAE3;
  --ink: #1D1D1B;
  --ink-75: rgba(29, 29, 27, 0.80);
  --ink-55: rgba(29, 29, 27, 0.68);
  --ink-40: rgba(29, 29, 27, 0.66);
  --accent: #696560;
  --accent-light: #CBC6BC;
  --line: rgba(29, 29, 27, 0.15);
  --line-soft: rgba(29, 29, 27, 0.08);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --gutter: clamp(1.35rem, 5vw, 3.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body, h1, h2, h3, h4, p, dl, dd { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-light); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Верхняя планка ---------- */
.legal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.legal-bar-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.15rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.legal-home,
.legal-brand {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  transition: color 0.4s var(--ease), gap 0.4s var(--ease);
}
.legal-home:hover { color: var(--ink); gap: 1.1em; }
.legal-brand { color: var(--ink); }

/* ---------- Шапка страницы ---------- */
.legal-shell {
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 6rem) var(--gutter) clamp(4rem, 10vh, 6rem);
}

.legal-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-shell h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  /* нижняя граница подобрана так, чтобы «конфиденциальности» помещалось
     в строку целиком на экранах от 320px */
  font-size: clamp(1.6rem, 7.4vw, 4.5rem);
  hyphens: manual;   /* без переносов по слогам: слово целиком уходит на новую строку */
  overflow-wrap: break-word;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.legal-shell h1 em { font-style: italic; }

.legal-sub {
  margin-top: 1.25rem;
  max-width: 48ch;
  font-size: 1.05rem;
  color: var(--ink-55);
}

.legal-intro {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-deep);
  border-left: 1px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-75);
}
.legal-intro p + p { margin-top: 1rem; }
.legal-approved,
.legal-revision {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.legal-revision + p { margin-top: 1.5rem; }

/* ---------- Оглавление ---------- */
.legal-toc {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.25rem 2rem;
}
.legal-toc a {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--ink-75);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.legal-toc a:hover { color: var(--ink); padding-left: 0.35rem; }
.legal-toc i {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

/* ---------- Разделы ---------- */
.legal-section {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}
.legal-section h2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.2;
  color: var(--ink);
}
.legal-section h2 i {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.legal-section-body { grid-column: 2 / -1; max-width: 76ch; }
.legal-section-body p { color: var(--ink-75); font-size: 0.98rem; }
.legal-section-body p + p { margin-top: 1rem; }
.legal-section-body em { font-style: normal; font-weight: 500; color: var(--ink); }
.legal-section-body a { border-bottom: 1px solid var(--line); }
.legal-section-body a:hover { border-bottom-color: var(--ink); }

/* перечисления внутри пункта: тире, как в исходном документе */
.legal-list { margin-top: 1rem; }
.legal-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--ink-75);
  font-size: 0.98rem;
}
.legal-list li + li { margin-top: 0.5rem; }
.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-40);
}
.legal-list + p,
.legal-list + .legal-note,
.legal-list + .legal-data { margin-top: 1.5rem; }

/* строка, вводящая перечисление */
.legal-sublead { color: var(--ink) !important; }
.legal-sublead + .legal-list { margin-top: 0.75rem; }

/* абзац, на который важно обратить внимание */
.legal-note {
  margin-top: 1.5rem;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid var(--accent);
  color: var(--ink) !important;
}

.legal-mail { margin-top: 0.75rem !important; font-size: 1.05rem !important; }

/* подзаголовок внутри пункта — например «Условия пропусков» */
.legal-section-body h3 {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  color: var(--ink);
}
.legal-section-body h3 + p { margin-top: 1rem; }

/* реквизиты внутри пункта и в блоке «Дополнительная информация» */
.legal-data { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.legal-data > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.legal-data dt {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.legal-data dd { color: var(--ink); font-size: 0.95rem; overflow-wrap: anywhere; }
.legal-data + p { margin-top: 1.5rem; }

/* ---------- Блок «Дополнительная информация» ---------- */
.legal-extra {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper-deep);
  border-left: 1px solid var(--accent);
  color: var(--ink);
}
.legal-extra h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.legal-extra p { color: var(--ink-75); font-size: 0.92rem; line-height: 1.85; overflow-wrap: anywhere; }
.legal-extra .legal-data { margin-top: 0; }
.legal-extra .legal-data > div { border-bottom-color: var(--line); }
.legal-extra .legal-note { margin-top: 1.75rem; border-left-color: var(--line); }
.legal-extra p + p { margin-top: 1rem; }
.pay-marks {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.pay-marks img { height: 1.95rem; width: auto; display: block; }

/* ---------- Футер ---------- */
.legal-foot {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.legal-foot-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.legal-foot-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.legal-foot-links a { transition: color 0.4s var(--ease); }
.legal-foot-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .legal-section,
  .legal-section h2 { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .legal-section-body { grid-column: 1 / -1; }
  .legal-data > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .legal-foot-inner { flex-direction: column; align-items: flex-start; }
}

/* Ссылка «Перейти к содержанию»: скрыта, показывается только при фокусе с клавиатуры */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8125rem;
  text-decoration: none;
}
main:focus { outline: none; }

/* Телефоны: удобные зоны нажатия */
@media (max-width: 960px) {
  .legal-foot-links a,
  .legal-bar a,
  .legal-section-body a {
    display: inline-block;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .legal-mail a { padding-top: 0.6rem; padding-bottom: 0.6rem; }

  /* Строка содержания остаётся сеткой «номер | название»: display:inline-block
     ломал её — номер прилипал к названию, а перенесённая строка уходила под номер.
     Зона нажатия набирается вертикальными отступами, не сменой display. */
  .legal-toc a { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}

/* Телефоны: заголовки юридических страниц по той же логике */
@media (max-width: 960px) {
  .legal-shell h1 { font-size: clamp(1.55rem, 7.9vw, 4.44rem); }
  .legal-section h2 { font-size: clamp(1.35rem, 6.6vw, 2.5rem); }
}
