/* privacy.css — spin loader by Elly 4.6 COSMOS INSTANT */

body {
  font-family: 'Sirin Stencil', Arial, sans-serif;
  background: #101014;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

body.light {
  background: #f5f5f5;
  color: #232336;
}

.privacy-projects {
  box-sizing: border-box;
  max-width: 828px;
  margin: 90px auto 0;
  padding: 24px max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
}
.privacy-brand { color: inherit; font-weight: 700; text-decoration: none; }
.privacy-projects h1 { font-size: clamp(28px, 6vw, 42px); margin: 22px 0; }
#privacy-project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.privacy-project-link { display: flex; align-items: center; min-height: 44px; padding: 12px 16px; border: 1px solid currentColor; border-radius: 10px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.privacy-project-link:hover { background: rgba(127,127,127,.18); }
.privacy-project-link:active { background: rgba(127,127,127,.28); }
.project-stores { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.project-store-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #85858c; border-radius: 8px; color: inherit; text-decoration: none; font: 14px/1.3 Arial, sans-serif; }
.project-store-link:hover { background: rgba(127,127,127,.2); }
.project-store-link:active { background: rgba(127,127,127,.3); }
.project-store-link:focus-visible { outline: 3px solid #82bcff; outline-offset: 3px; }
.privacy-project-link:focus-visible, .burger:focus-visible, .lang-item:focus-visible { outline: 3px solid #82bcff; outline-offset: 3px; }
.burger:hover, .burger:active { background: #33334d; }
.burger:disabled, .lang-item:disabled { opacity: .45; cursor: default; }
.lang-item:active { background: #44445d; }
.privacy-projects + .privacy-content { margin-top: 32px; }
.privacy-content { overflow-wrap: anywhere; }

@media (prefers-color-scheme: light) {
  body.privacy-index:not(.dark) { background: #f5f5f5; color: #232336; }
  body.privacy-index:not(.dark) .privacy-content { background: #ededf3; color: #232336; }
  body.privacy-index:not(.dark) .privacy-content a { color: #1256a0; background: none; }
}

.burger {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  background: #232336;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  z-index: 20;
  cursor: pointer;
}
.burger::before, .burger::after, .burger span {
  content: '';
  display: block;
  position: absolute;
  left: 13px;
  width: 18px;
  height: 3px;
  background: #f5f5f5;
  border-radius: 2px;
  transition: .2s;
}
.burger::before { top: 17px; }
.burger span { top: 21px; }
.burger::after { top: 25px; }
.burger.open::before { transform: rotate(45deg) translateY(6px); }
.burger.open::after { transform: rotate(-45deg) translateY(-6px); }
.burger.open span { opacity: 0; }

.lang-dropdown {
  display: none;
  position: fixed;
  top: 68px;
  left: 18px;
  min-width: 210px;
  max-height: 60vh;
  overflow-y: auto;
  background: #232336;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 12px 0;
  z-index: 19;
}
.lang-dropdown.active { display: block; }
.lang-item {
  padding: 9px 26px;
  color: #f5f5f5;
  font-size: 17px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background .12s;
}
.lang-item.selected, .lang-item:hover { background: #33334d; }
body.light .lang-dropdown { background: #fff; color: #232336; }
body.light .lang-item { color: #232336; }
body.light .lang-item.selected, body.light .lang-item:hover { background: #ececff; }

.theme-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: #232336;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.theme-switcher::after {
  content: '🌓';
  font-size: 20px;
}

.privacy-content {
  max-width: 800px;
  margin: 90px auto 0 auto;
  padding: 32px 14px 40px 14px;
  border-radius: 18px;
  background: rgba(35,35,54,0.93);
  box-shadow: 0 8px 44px rgba(0,0,0,.15);
  font-size: 18px;
  line-height: 1.7;
}
body.light .privacy-content {
  background: rgba(245,245,255,0.93);
  color: #232336;
}

.privacy-content a {
  text-decoration: none;
  position: relative;
  background-image: linear-gradient(120deg, #5ab4ff, #9f6fff, #f65cff, #ff52a0, #5ab4ff);
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine-link 12s ease-in-out infinite;
  font-weight: 500;
}
.privacy-content a:hover {
  text-shadow: 0 0 6px #fff, 0 0 10px #5ab4ff;
}
body.light .privacy-content a {
  background-image: linear-gradient(120deg, #0077ff, #ff66cc, #ffaa00, #0077ff);
}

@keyframes shine-link {
  0% { background-position: 300% center; }
  100% { background-position: -300% center; }
}

/* === LOADER COSMOS GLOW === */
@keyframes spin {
  0%   { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
@keyframes glow-pulse {
  0%, 100% {
    filter:
      blur(0.1px)
      drop-shadow(0 0 8px #24e0ff)
      drop-shadow(0 0 30px #24e0ff);
    box-shadow:
      0 0 32px 4px #24e0ff,
      0 0 56px 14px #24e0ff99,
      0 0 12px 2px #fff7,
      0 0 7px 2px #24e0ff;
  }
  60% {
    filter:
      blur(1.0px)
      drop-shadow(0 0 24px #fff)
      drop-shadow(0 0 60px #00fff7);
    box-shadow:
      0 0 72px 24px #0ffb,
      0 0 160px 52px #fff9,
      0 0 92px 17px #0ffb;
  }
}

#privacy-loader {
  opacity: 1;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #101014;
  z-index: 9999;
}
#privacy-loader img {
  width: 96px;
  height: 96px;
  margin: 0 8px;
  will-change: transform;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 52%, #48e8ff55 30%, #00fff720 70%, transparent 100%);
  box-shadow:
    0 0 32px 4px #24e0ff,
    0 0 56px 14px #24e0ff99,
    0 0 12px 2px #fff7,
    0 0 7px 2px #24e0ff;
  filter: blur(0.1px) drop-shadow(0 0 8px #24e0ff) drop-shadow(0 0 30px #24e0ff);
  animation: spin 1.2s linear infinite, glow-pulse 2.8s ease-in-out infinite;
}
