.policy-page {
  min-height: 100vh;
}

.policy-page .header {
  max-width: 1280px;
}

.policy-page .nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 14px rgba(41, 182, 255, 0.45);
}

.policy-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 32px;
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.policy-breadcrumb a {
  transition: color 0.2s ease;
}

.policy-breadcrumb a:hover {
  color: #fff;
}

.policy-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.28);
}

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 5%, rgba(41, 182, 255, 0.14), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(183, 124, 255, 0.15), transparent 38%),
    rgba(10, 14, 22, 0.58);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.policy-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 182, 255, 0.8), rgba(183, 124, 255, 0.8), transparent);
  opacity: 0.75;
}

.policy-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b8c6df;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-title {
  max-width: 820px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.policy-intro {
  max-width: 760px;
  color: #acbad3;
  font-size: clamp(0.93rem, 1.8vw, 1.06rem);
  line-height: 1.78;
}

.policy-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.policy-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(2, 5, 12, 0.28);
  color: #aab7cd;
  font-size: 0.72rem;
  font-weight: 750;
}

.policy-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon3);
  box-shadow: 0 0 10px rgba(51, 255, 204, 0.75);
}

.policy-switcher {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(4, 8, 16, 0.38);
}

.policy-switcher a {
  min-width: 108px;
  padding: 8px 14px;
  border-radius: 9px;
  color: #91a1be;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  transition: 0.2s ease;
}

.policy-switcher a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.policy-switcher a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 182, 255, 0.18), rgba(183, 124, 255, 0.17));
  box-shadow: inset 0 0 0 1px rgba(96, 200, 255, 0.2), 0 6px 18px rgba(0, 0, 0, 0.2);
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(190px, 244px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.policy-toc {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 136px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(9, 13, 23, 0.58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
  scrollbar-color: rgba(183, 124, 255, 0.45) transparent;
}

.policy-toc-title {
  margin: 0 0 12px;
  color: #eef5ff;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-toc nav {
  display: grid;
  gap: 3px;
}

.policy-toc a {
  position: relative;
  display: block;
  padding: 8px 9px 8px 12px;
  border-radius: 9px;
  color: #8797b4;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  transition: 0.2s ease;
}

.policy-toc a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: linear-gradient(var(--neon), var(--neon2));
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.policy-toc a:hover,
.policy-toc a.active {
  color: #f2f7ff;
  background: rgba(255, 255, 255, 0.045);
}

.policy-toc a.active::before {
  height: 18px;
}

.policy-article {
  min-width: 0;
  padding: clamp(24px, 4.5vw, 48px);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: rgba(10, 14, 22, 0.54);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
}

.policy-content > :first-child {
  margin-top: 0;
}

.policy-content h2 {
  scroll-margin-top: 120px;
  margin: 44px 0 14px;
  padding-top: 2px;
  color: #f3f7ff;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 850;
  letter-spacing: -0.01em;
}

.policy-content h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  opacity: 0.72;
}

.policy-content p,
.policy-content li {
  color: #a8b6ce;
  font-size: 0.91rem;
  line-height: 1.82;
}

.policy-content p + p {
  margin-top: 12px;
}

.policy-content ul {
  display: grid;
  gap: 9px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.policy-content li {
  position: relative;
  padding-left: 20px;
}

.policy-content li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  box-shadow: 0 0 9px rgba(41, 182, 255, 0.45);
}

.policy-content strong {
  color: #e7efff;
  font-weight: 780;
}

.policy-content a {
  color: #74d4ff;
  text-decoration: underline;
  text-decoration-color: rgba(116, 212, 255, 0.3);
  text-underline-offset: 3px;
}

.policy-content a:hover {
  color: #bda0ff;
}

.policy-note {
  margin-top: 42px;
  padding: 16px 18px;
  border: 1px solid rgba(51, 255, 204, 0.13);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(51, 255, 204, 0.055), rgba(41, 182, 255, 0.045));
  color: #93a6c3;
  font-size: 0.78rem;
  line-height: 1.65;
}

.policy-page .footer {
  width: min(1120px, calc(100% - 48px));
  margin: 36px auto 0;
}

.policy-page .footer-nav a[aria-current="page"] {
  color: #fff;
  text-shadow: 0 0 12px rgba(183, 124, 255, 0.42);
}

html[dir="rtl"] .policy-breadcrumb,
html[dir="rtl"] .policy-meta {
  justify-content: flex-start;
}

html[dir="rtl"] .policy-content li {
  padding-right: 20px;
  padding-left: 0;
}

html[dir="rtl"] .policy-content li::before {
  right: 2px;
  left: auto;
}

html[dir="rtl"] .policy-toc a {
  padding-right: 12px;
  padding-left: 9px;
}

html[dir="rtl"] .policy-toc a::before {
  right: 3px;
  left: auto;
}

@media (max-width: 900px) {
  .policy-shell {
    width: min(100% - 32px, 760px);
    padding-top: 126px;
  }

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

  .policy-toc {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .policy-toc nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: thin;
  }

  .policy-toc a {
    flex: 0 0 auto;
    max-width: 235px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
  }

  .policy-toc a::before {
    display: none;
  }

  .policy-content h2 {
    scroll-margin-top: 108px;
  }

  .policy-page .footer {
    width: min(100% - 32px, 760px);
  }
}

@media (max-width: 560px) {
  .policy-shell {
    width: calc(100% - 24px);
    padding-top: 112px;
  }

  .policy-hero {
    padding: 25px 20px;
    border-radius: 19px;
  }

  .policy-title {
    font-size: clamp(1.75rem, 11vw, 2.6rem);
  }

  .policy-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .policy-switcher a {
    min-width: 0;
  }

  .policy-article {
    padding: 25px 20px;
    border-radius: 18px;
  }

  .policy-content h2 {
    margin-top: 36px;
  }

  .policy-page .footer {
    width: calc(100% - 24px);
  }
}

@media print {
  .bg-animation,
  .scanlines,
  .header,
  .mobile-nav,
  .policy-breadcrumb,
  .policy-switcher,
  .policy-toc,
  .footer {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

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

  .policy-hero,
  .policy-article {
    border: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
  }

  .policy-layout {
    display: block;
  }

  .policy-title,
  .policy-content h2,
  .policy-content strong {
    color: #111;
  }

  .policy-intro,
  .policy-content p,
  .policy-content li,
  .policy-note {
    color: #333;
  }
}
