/* ЕХАЙ — privacy policy · static editorial page */

.privacy-page {
  min-height: 100vh;
  background:
    radial-gradient(85% 36% at 76% 0%, rgba(0, 113, 186, .22), transparent 72%),
    radial-gradient(56% 28% at 8% 8%, rgba(0, 175, 236, .10), transparent 78%),
    var(--bg);
}

.privacy-page main { overflow: clip; }

.privacy-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 24, 29, .82);
  backdrop-filter: saturate(1.2) blur(18px);
  -webkit-backdrop-filter: saturate(1.2) blur(18px);
}

.privacy-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-home-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ink-2);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out);
}

.privacy-home-link:hover { color: #fff; transform: translateX(-2px); }

.privacy-hero {
  position: relative;
  isolation: isolate;
  min-height: 540px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.privacy-hero .brand-pattern { opacity: .72; z-index: -2; }

.privacy-hero-glow {
  position: absolute;
  z-index: -1;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  right: -12%;
  top: -58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 175, 236, .25), rgba(0, 113, 186, .06) 46%, transparent 70%);
  filter: blur(6px);
}

.privacy-hero-inner { padding-block: clamp(5.5rem, 8vw, 8.5rem); }

.privacy-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.5rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(0, 175, 236, .3);
  border-radius: var(--r-pill);
  background: rgba(0, 175, 236, .08);
  color: var(--ink-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.privacy-hero h1 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.2rem, 1.25rem + 4.2vw, 5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.privacy-hero h1 span {
  color: var(--blue);
  text-shadow: 0 0 36px rgba(0, 175, 236, .28);
}

.privacy-lead {
  max-width: 640px;
  margin-top: 1.55rem;
  color: var(--ink-2);
  font-size: clamp(1.05rem, .98rem + .48vw, 1.32rem);
  line-height: 1.55;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.2rem;
  margin-top: 1.8rem;
  color: var(--ink-3);
  font-size: .78rem;
}

.privacy-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.privacy-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

.privacy-principles {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 36, 43, .48);
}

.privacy-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-inline: var(--gutter);
  background: var(--line);
}

.privacy-principle {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--bg);
}

.privacy-principle-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 175, 236, .28);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(0, 175, 236, .08);
}

.privacy-principle h2 {
  margin-bottom: .4rem;
  font-family: var(--sans);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.privacy-principle p { color: var(--ink-2); font-size: .86rem; line-height: 1.55; }

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 760px);
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.privacy-toc {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(31, 36, 43, .58);
  box-shadow: var(--sh-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.privacy-toc-title {
  margin: 0 0 .8rem;
  padding: 0 .55rem .85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.privacy-toc nav { display: grid; }

.privacy-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .35rem;
  padding: .48rem .55rem;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}

.privacy-toc a span { color: var(--blue); font-family: var(--mono); font-size: .68rem; }
.privacy-toc a:hover { color: #fff; background: rgba(0, 175, 236, .08); }

.privacy-document { min-width: 0; }

.policy-section {
  scroll-margin-top: 98px;
  padding-bottom: clamp(3.2rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.policy-section + .policy-section { padding-top: clamp(3.2rem, 5vw, 5rem); }
.policy-section:last-child { border-bottom: 0; }

.policy-section-num {
  margin-bottom: .75rem;
  color: var(--blue);
  font-size: .72rem;
  letter-spacing: .08em;
}

.policy-section h2 {
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.policy-section h3 { color: var(--ink); font-size: 1rem; }

.policy-section p,
.policy-section li {
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.75;
}

.policy-section p + p { margin-top: 1rem; }
.policy-section strong { color: var(--ink); font-weight: 750; }

.policy-section a {
  color: var(--blue);
  text-decoration-color: rgba(0, 175, 236, .38);
  text-underline-offset: .22em;
  transition: color var(--d-fast) var(--e-out), text-decoration-color var(--d-fast) var(--e-out);
}

.policy-section a:hover { color: #6ed8ff; text-decoration-color: currentColor; }

.policy-section code {
  padding: .16em .42em;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .82em;
  overflow-wrap: anywhere;
}

.policy-section ul {
  display: grid;
  gap: .65rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.policy-section li { position: relative; padding-left: 1.45rem; }
.policy-section li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(0, 179, 89, .45); }

.policy-note {
  margin-top: 1.4rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.65;
}

.policy-note-blue { border-color: rgba(0, 175, 236, .28); background: rgba(0, 175, 236, .07); }

.policy-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.35rem;
}

.policy-data-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, rgba(42, 48, 56, .7), rgba(31, 36, 43, .38));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.policy-data-card h3 { margin-bottom: .55rem; }
.policy-data-card p { font-size: .84rem; line-height: 1.62; }

.policy-provider-list {
  display: grid;
  gap: 0;
  margin: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.policy-provider-list article {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 1.25rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.policy-provider-list article p { font-size: .88rem; line-height: 1.65; }

.policy-request-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid rgba(0, 175, 236, .3);
  border-radius: var(--r-md);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(0, 113, 186, .18), transparent 62%),
    var(--surface);
  box-shadow: var(--sh-card);
}

.policy-request-label { margin-bottom: .35rem; color: var(--blue) !important; font-size: .67rem !important; letter-spacing: .08em; text-transform: uppercase; }
.policy-request-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.policy-request-card p { font-size: .84rem; line-height: 1.6; }
.policy-request-card .btn { flex: none; color: var(--bg); text-decoration: none; }
.policy-request-card .btn:hover { color: var(--bg); }

.policy-contact {
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(0, 175, 236, .24) !important;
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(0, 175, 236, .15), transparent 70%),
    rgba(31, 36, 43, .72);
}

.privacy-contact-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.privacy-contact-link svg { transition: transform var(--d-fast) var(--e-out); }
.privacy-contact-link:hover svg { transform: translate(2px, -2px); }

.privacy-footer { content-visibility: visible; contain-intrinsic-size: none; }

@media (max-width: 960px) {
  .privacy-principles-grid { grid-template-columns: 1fr; }
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-toc { position: static; }
  .privacy-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .privacy-header-inner { min-height: 60px; }
  .privacy-home-link { font-size: .84rem; }
  .privacy-hero { min-height: auto; }
  .privacy-hero-inner { padding-block: 4.5rem; }
  .privacy-hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); overflow-wrap: normal; hyphens: none; }
  .privacy-meta { display: grid; gap: .35rem; }
  .privacy-meta span + span::before { display: none; }
  .privacy-principle { grid-template-columns: 40px 1fr; padding-inline: .4rem; }
  .privacy-principle-icon { width: 40px; height: 40px; }
  .privacy-layout { padding-block: 3.4rem; }
  .privacy-toc nav { grid-template-columns: 1fr; }
  .policy-data-grid { grid-template-columns: 1fr; }
  .policy-provider-list article { grid-template-columns: 1fr; gap: .45rem; }
  .policy-request-card { grid-template-columns: 1fr; }
  .policy-request-card .btn { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-home-link,
  .privacy-contact-link svg,
  .policy-section a { transition: none; }
}

@media print {
  :root { color-scheme: light; }
  .privacy-page { color: #17191c; background: #fff; }
  .privacy-header,
  .privacy-principles,
  .privacy-toc,
  .privacy-footer,
  .brand-pattern,
  .privacy-hero-glow,
  .policy-request-card .btn { display: none !important; }
  .privacy-hero { min-height: auto; border: 0; }
  .privacy-hero-inner { padding: 0 0 2rem; }
  .privacy-hero h1,
  .privacy-hero h1 span,
  .policy-section h2,
  .policy-section h3,
  .policy-section strong { color: #17191c; text-shadow: none; }
  .privacy-lead,
  .privacy-meta,
  .policy-section p,
  .policy-section li,
  .policy-data-card p,
  .policy-provider-list article p { color: #3e4349; }
  .privacy-layout { display: block; padding: 0; }
  .policy-section { break-inside: avoid; padding-block: 1.5rem; border-color: #d8dde2; }
  .policy-data-grid { grid-template-columns: 1fr 1fr; }
  .policy-data-card,
  .policy-request-card,
  .policy-contact { border-color: #d8dde2 !important; background: #f6f7f8; box-shadow: none; }
  .policy-section a { color: #006ca8; }
}
