:root {
  --privacy-max: min(1220px, 92vw);
  --privacy-topbar-h: 68px;
  --privacy-blue: #60a5fa;
  --privacy-blue-strong: #38bdf8;
  --privacy-surface: linear-gradient(165deg, rgba(8, 14, 26, 0.94), rgba(4, 9, 19, 0.9));
  --privacy-border: rgba(125, 211, 252, 0.24);
  --privacy-border-strong: rgba(96, 165, 250, 0.52);
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: calc(var(--privacy-topbar-h) + 1rem);
  font-family: 'Outfit', sans-serif !important;
  background:
    radial-gradient(70% 50% at 10% 0%, rgba(37, 99, 235, 0.18), transparent 72%),
    radial-gradient(60% 40% at 90% 12%, rgba(14, 165, 233, 0.12), transparent 70%),
    linear-gradient(135deg, #020617 0%, #000 42%, #020617 100%);
}

#privacyScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 70;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.98), rgba(59, 130, 246, 0.98));
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.42);
}

.privacy-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--privacy-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(0.55rem, 1.4vw, 1.4rem);
  border-bottom: 1px solid rgba(125, 211, 252, 0.24);
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.96), rgba(4, 8, 18, 0.9)),
    radial-gradient(90% 130% at 0% 0%, rgba(37, 99, 235, 0.2), transparent 58%);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.38);
}

.privacy-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.privacy-topbar-left p {
  margin: 0;
  color: rgba(125, 211, 252, 0.92) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.privacy-topbar-left h1 {
  margin: 0.14rem 0 0;
  color: #f8fafc;
  font-size: clamp(0.96rem, 1.1vw, 1.18rem);
  font-weight: 700;
  line-height: 1.1;
}

.privacy-topbar-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.privacy-topbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(29, 107, 255, 0.22));
  transition: filter 220ms ease, transform 220ms ease;
}

.privacy-topbar-logo:hover img,
.privacy-topbar-logo:focus-visible img {
  transform: translateY(-1px) scale(1.02);
  filter:
    drop-shadow(0 0 10px rgba(125, 211, 252, 0.58))
    drop-shadow(0 0 18px rgba(29, 107, 255, 0.34));
}

.privacy-topbar-firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(191, 219, 254, 0.95), rgba(125, 211, 252, 0.2) 62%, transparent 78%);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.75);
}

.privacy-topbar-firefly.firefly-a {
  top: 6px;
  left: -4px;
}

.privacy-topbar-firefly.firefly-b {
  top: -2px;
  right: 2px;
}

.privacy-topbar-firefly.firefly-c {
  bottom: 4px;
  right: -6px;
}

.privacy-topbar-logo:hover .privacy-topbar-firefly,
.privacy-topbar-logo:focus-visible .privacy-topbar-firefly {
  animation: privacyFirefly 2.3s ease-in-out infinite;
}

.privacy-topbar-logo:hover .privacy-topbar-firefly.firefly-b,
.privacy-topbar-logo:focus-visible .privacy-topbar-firefly.firefly-b {
  animation-delay: 0.5s;
}

.privacy-topbar-logo:hover .privacy-topbar-firefly.firefly-c,
.privacy-topbar-logo:focus-visible .privacy-topbar-firefly.firefly-c {
  animation-delay: 1s;
}

.privacy-topbar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.privacy-topbar-nav a,
.privacy-topbar-back {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.62);
  color: rgba(226, 232, 240, 0.94);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 220ms ease;
}

.privacy-topbar-nav a {
  padding: 0.27rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 650;
}

.privacy-topbar-back {
  padding: 0.38rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-topbar-nav a:hover,
.privacy-topbar-nav a.is-active,
.privacy-topbar-back:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.64);
  background: rgba(37, 99, 235, 0.24);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.32);
}

.privacy-main {
  width: var(--privacy-max);
  margin-inline: auto;
  padding-bottom: 4rem;
  display: grid;
  gap: 1rem;
}

.privacy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(58vh, 640px);
  padding: clamp(1rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(1rem, 2.2vw, 2rem);
  align-items: end;
}

.privacy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), transparent 44%),
    radial-gradient(60% 80% at 90% 18%, rgba(14, 165, 233, 0.16), transparent 64%);
  z-index: -1;
}

.privacy-hero-glow {
  position: absolute;
  inset: -16%;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}

.privacy-hero-glow.glow-a {
  background: radial-gradient(42% 40% at 12% 14%, rgba(59, 130, 246, 0.24), transparent 72%);
}

.privacy-hero-glow.glow-b {
  background: radial-gradient(36% 42% at 86% 84%, rgba(14, 165, 233, 0.18), transparent 74%);
}

.privacy-kicker {
  margin: 0;
  color: rgba(125, 211, 252, 0.95) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-hero h2 {
  max-width: 900px;
  margin: 0.38rem 0 0;
  color: #f8fafc;
  font-size: clamp(2.1rem, 5vw, 5.3rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.privacy-updated {
  display: inline-flex;
  width: fit-content;
  margin: 1rem 0 0;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  background: rgba(37, 99, 235, 0.14);
  color: rgba(191, 219, 254, 0.98) !important;
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-hero p:not(.privacy-kicker):not(.privacy-updated) {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: rgba(203, 213, 225, 0.92) !important;
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.62;
}

.privacy-hero-card {
  display: grid;
  gap: 0.62rem;
  align-self: center;
}

.privacy-hero-card span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.76rem 0.9rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 0.95rem;
  background: rgba(2, 6, 23, 0.42);
  color: rgba(226, 232, 240, 0.96);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.privacy-hero-card span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--privacy-blue-strong);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: calc(var(--privacy-topbar-h) + 1rem);
  max-height: calc(100vh - var(--privacy-topbar-h) - 2rem);
  overflow: auto;
  padding: 1rem;
}

.privacy-toc p {
  margin: 0 0 0.64rem;
  color: rgba(125, 211, 252, 0.96) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.privacy-toc a {
  display: block;
  margin-top: 0.28rem;
  padding: 0.42rem 0.52rem;
  border-radius: 0.62rem;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.82rem;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.privacy-toc a:hover,
.privacy-toc a.is-active {
  color: #eff6ff;
  background: rgba(37, 99, 235, 0.18);
  transform: translateX(2px);
}

.privacy-policy {
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
}

.privacy-section {
  position: relative;
  padding: clamp(1rem, 2vw, 1.55rem);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(8, 14, 26, 0.7), rgba(2, 6, 23, 0.48)),
    radial-gradient(70% 90% at 100% 0%, rgba(59, 130, 246, 0.06), transparent 64%);
}

.privacy-section + .privacy-section {
  margin-top: 0.82rem;
}

.privacy-section h2 {
  margin: 0 0 0.72rem;
  color: var(--privacy-blue) !important;
  font-size: clamp(1.24rem, 2vw, 1.78rem);
  font-weight: 800;
  letter-spacing: 0;
}

.privacy-section h3 {
  margin: 1rem 0 0.48rem;
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 750;
}

.privacy-section p {
  margin: 0.7rem 0 0;
  color: rgba(203, 213, 225, 0.94) !important;
  font-size: 0.98rem;
  line-height: 1.72;
}

.privacy-section ul {
  margin: 0.58rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.38rem;
}

.privacy-section li {
  position: relative;
  list-style: none;
  padding-left: 1.16rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.58;
}

.privacy-section li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.88);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.privacy-info-box {
  margin-top: 0.9rem;
  padding: 0.86rem 0.95rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 0.9rem;
  background: rgba(37, 99, 235, 0.1);
}

.privacy-info-box p {
  margin-top: 0.34rem;
}

.privacy-info-box strong {
  color: rgba(191, 219, 254, 0.98);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes privacyFirefly {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  36% {
    opacity: 0.96;
    transform: scale(1.12);
  }
  68% {
    opacity: 0.3;
    transform: scale(0.84);
  }
}

@media (max-width: 980px) {
  .privacy-topbar {
    height: auto;
    min-height: var(--privacy-topbar-h);
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 0.54rem;
  }

  body {
    padding-top: 8rem;
  }

  .privacy-topbar-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .privacy-hero,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .privacy-toc {
    position: relative;
    top: auto;
    max-height: 18rem;
  }
}

@media (max-width: 640px) {
  :root {
    --privacy-topbar-h: 60px;
  }

  body {
    padding-top: 9.4rem;
  }

  .privacy-main {
    width: min(100% - 1rem, 1220px);
  }

  .privacy-topbar-left {
    width: calc(100% - 5.5rem);
  }

  .privacy-topbar-back {
    padding-inline: 0.62rem;
  }

  .privacy-topbar-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.18rem;
  }

  .privacy-topbar-nav a {
    flex: 0 0 auto;
  }

  .privacy-hero {
    min-height: auto;
  }

  .privacy-hero h2 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .privacy-policy,
  .privacy-section {
    padding: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
