/* =============== NEW COLOR PALETTE =============== */
:root {
    --deep-void: #020617;
    --midnight-purple: #0a0514;
    --electric-purple: #af68f1;
    --royal-grape: #4c1d95;
    --neon-fuchsia: #c026d3;

    /* Updated variables based on new palette */
    --bg-main: var(--deep-void);
    --bg-card: var(--midnight-purple);
    --bg-secondary: #141414;
    --primary: #c026d3;
    --primary-dark: var(--royal-grape);
    --primary-glow: var(--electric-purple);
    --primary-transparent: rgba(147, 51, 234, 0.2);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #d1d1d1;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, var(--electric-purple) 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--midnight-purple) 0%, var(--deep-void) 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, var(--midnight-purple) 100%);
    --shadow-primary: 0 5px 20px rgba(147, 51, 234, 0.15);
    --shadow-heavy: 0 15px 40px rgba(147, 51, 234, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #fff;
}



/* =============== MAIN BODY SCROLLBAR =============== */

/* Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}

/* Track */
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: var(--midnight-purple);
}

/* Thumb */
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            var(--royal-grape),
            var(--electric-purple));
    border-radius: 10px;
    border: 2px solid var(--midnight-purple);
}

/* === FORCE OVERRIDE SCROLLBAR HOVER COLOR === */
html::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:active {
    background: none !important;
}

/* ===== Scrollbar Buttons (Top & Bottom Arrows) ===== */
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
    height: 16px;
    background-color: var(--midnight-purple);
}

/* UP arrow */
html::-webkit-scrollbar-button:vertical:start:decrement,
body::-webkit-scrollbar-button:vertical:start:decrement {
    background:
        linear-gradient(135deg, transparent 50%, var(--royal-grape) 50%),
        linear-gradient(225deg, transparent 50%, var(--royal-grape) 50%);
    background-position: center;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* DOWN arrow */
html::-webkit-scrollbar-button:vertical:end:increment,
body::-webkit-scrollbar-button:vertical:end:increment {
    background:
        linear-gradient(315deg, transparent 50%, var(--royal-grape) 50%),
        linear-gradient(45deg, transparent 50%, var(--royal-grape) 50%);
    background-position: center;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

/* Button hover */
html::-webkit-scrollbar-button:hover,
body::-webkit-scrollbar-button:hover {
    background-color: #111;
}

/* ===== Firefox fallback ===== */
html,
body {
    scrollbar-width: thin;
    scrollbar-color: var(--royal-grape) var(--midnight-purple);
}

/* Container */
.privacy-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  animation: fadeIn .6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.policy-section {
  display: none;
}

.policy-section.active {
  display: block;
}

/* Header */
.privacy-header {
  text-align: center;
  margin-bottom: 40px;
}

.privacy-header h4 {
  font-size: clamp(2.5rem, 6vw, 2rem);
  margin-bottom: 0%;
  font-weight: 900;
  color: #ed57ff;
}

.updated {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #aaa;
  font-size: .8rem;
}

/* Card */
.privacy-card {
  position: relative;
  background: rgba(15, 15, 15, .85);
  backdrop-filter: blur(14px);
  border-radius: 32px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px -20px #000;
  overflow: hidden;
}

/* Accent */
.accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #c026d3, #c026d3fe, #c026d3ff);
}

.glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.glow-top {
  top: -120px;
  right: -120px;
  background: rgba(255, 138, 0, .08);
}

.glow-bottom {
  bottom: -120px;
  left: -120px;
  background: rgba(255, 94, 0, .05);
}

/* Intro */
.intro {
  font-size: 1.15rem;
  color: #ddd;
  margin-bottom: 60px;
  line-height: 1.7;
}

/* Sections */
.section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 14px;
}

.num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #bf26d32d;
  border: 1px solid #bf26d39c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px !important;
}

.content {
  position: relative;
  padding-left: 44px;
}

.line {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(#c026d3ff, transparent);
}

.content p {
  color: #aaa;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* Footer */
.policy-footer {
  border-top: 1px solid rgba(255, 255, 255, .05);
  margin-top: 60px;
  padding-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.policy-footer p{
  color: #777;
  font-size: .85rem;
  text-align: center;
}

.policy-footer a {
  margin-left: 20px;
  text-decoration: none;
}

.policy-footer a:hover {
  color: #ff8a00;
}

/* ===== TOGGLE BUTTONS ===== */

/* Wrapper stays inside container */
.policy-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    position: relative;
}

/* Back button on left */
.back-btn {
    position: absolute;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
}

/* Tabs stay centered */
.policy-toggle {
    display: flex;
    background: #111;
    padding: 6px;
    border-radius: 30px;
}


.tab {
  background: #1a1a1a;
  color: #aaa;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  font-weight: 600;
  transition: .3s;
}

.tab + .tab {
  margin-left: -20px;
}

.policy-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}


.tab.active {
  background: var(--gradient-primary);
  color: #fff;
}

/* ===== POLICY SWITCH ===== */
.policy-section {
  display: none;
}

.policy-section.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .privacy-card {
    padding: 30px 22px;
  }

  .tab {
    padding: 10px 20px;
    font-size: .85rem;
  }

  .num {
    width: 28px;
    height: 28px;
    font-size: .85rem;
  }
}