:root {
    --primary: #00f0ff;
    --primary-light: #7df9ff;
    --primary-dark: #00a6c7;
    --accent: #ff2d75;
    --background: #0a0e17;
    --card-bg: rgba(16, 22, 36, 0.9);
    --text: #e0f2fe;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --error: #ff4d4d;
    --neon-glow: 0 0 10px rgba(0, 240, 255, 0.8),
                 0 0 20px rgba(0, 240, 255, 0.6),
                 0 0 30px rgba(0, 240, 255, 0.4);
}

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap');
body {
      background-color: var(--background);
      color: var(--text);
      max-height: 100vh;
      overflow-x: hidden;
      position: relative;
      line-height: 1.6;
}
/* Tech background elements */
.tech-bg {
      position: fixed;
      width: 100%;
      height: 100%;
      z-index: -1;
      overflow: hidden;
}
.grid-line {
      position: absolute;
      background: rgba(0, 240, 255, 0.05);
}
.horizontal {
      width: 100%;
      height: 1px;
}
.vertical {
      width: 1px;
      height: 100%;
}
.circuit-node {
      position: absolute;
      width: 6px;
      height: 6px;
      background: var(--primary);
      border-radius: 50%;
      box-shadow: 0 0 5px var(--primary);
}
/* Main container */
.legal-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 2rem;
      animation: fadeIn 1s ease-out;
}

/* Header section */
.legal-header {
      text-align: center;
      margin-bottom: 3rem;
      position: relative;
}
.legal-header h1 {
      font-size: 3rem;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 3px;
      margin-bottom: 1rem;
      text-shadow: var(--neon-glow);
}
.legal-header p {
      font-size: 1.2rem;
      color: var(--text-muted);
      max-width: 700px;
      margin: 0 auto;
}
.legal-header::after {
      content: '';
      position: absolute;
      bottom: -1.5rem;
      left: 50%;
      transform: translateX(-50%);
      width: 150px;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--primary), transparent);
      border-radius: 3px;
}

/* Legal content grid */
.legal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 2rem;
      margin-bottom: 4rem;
}

/* Legal card */
.legal-card {
      background: var(--card-bg);
      border: 1px solid rgba(0, 240, 255, 0.2);
      backdrop-filter: blur(12px);
      box-shadow: 0 0 30px rgba(0, 0, 0, 0.6),
          inset 0 0 10px rgba(0, 240, 255, 0.1);
      padding: 2rem;
      border-radius: 12px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      overflow: hidden;
}

.legal-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
          inset 0 0 15px rgba(0, 240, 255, 0.2);
}

.legal-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
}

.legal-card h2 {
      color: var(--primary-light);
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
      position: relative;
      display: inline-block;
}

.legal-card h2::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 50px;
      height: 2px;
      background: var(--accent);
}

.legal-card p {
      margin-bottom: 1.5rem;
      color: var(--text-muted);
}

.legal-card ul {
      padding-left: 1.5rem;
      margin-bottom: 1.5rem;
}
.legal-card li {
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-muted);
}
.legal-card li::before {
    content: '▹';
    color: var(--primary);
    position: absolute;
    left: -1.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    margin-top: 3rem;
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

/* Binary code animation */
.binary-code {
    position: absolute;
    color: rgba(0, 240, 255, 0.1);
    font-family: monospace;
    font-size: 0.8rem;
    user-select: none;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
      transform: translateY(100%);
    }
    100% {
      transform: translateY(-100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .legal-header h1 {
      font-size: 2.2rem;
    }
    
    .legal-grid {
      grid-template-columns: 1fr;
    }
    
    .legal-container {
      padding: 3rem 1.5rem;
    }
}
.cyber-button-container {
    position: relative;
    margin: 2rem 0;
    z-index: 10;
}

.cyber-glitch-btn {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00f0ff;
    color: #00f0ff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    z-index: 1;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5),
                0 0 30px rgba(0, 240, 255, 0.2);
}

.cyber-glitch-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #ff2d75;
    border-color: #ff2d75;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8),
                0 0 40px rgba(255, 45, 117, 0.6),
                0 0 80px rgba(255, 45, 117, 0.4);
    text-shadow: 0 0 5px #ff2d75;
}

.cyber-text {
    position: relative;
    z-index: 2;
}

.cyber-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -5px;
    width: 100%;
    height: 100%;
    color: #ff2d75;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    animation: glitch-effect 2s infinite linear alternate-reverse;
}

.cyber-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 5px;
    width: 100%;
    height: 100%;
    color: #00f0ff;
    z-index: -2;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
    animation: glitch-effect 3s infinite linear alternate-reverse;
}

.cyber-overlay {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
      transparent 45%, 
      rgba(0, 240, 255, 0.3) 50%, 
      transparent 55%);
    background-size: 200% 200%;
    animation: scan-overlay 4s linear infinite;
    opacity: 0.5;
    z-index: 1;
}

.cyber-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 45, 117, 0.1);
    z-index: 0;
    animation: flicker 0.1s infinite alternate;
}

.cyber-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.8), transparent 70%);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.cyber-glitch-btn:hover .cyber-glow {
    opacity: 0.3;
}

.cyber-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 240, 255, 0.7);
    transform: scaleX(0);
    transform-origin: left;
    animation: scanline 3s infinite linear;
    z-index: 2;
}

/* ==== INSANE ANIMATIONS ==== */
@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes scan-overlay {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes flicker {
    0% { opacity: 0.1; }
    10% { opacity: 0.2; }
    20% { opacity: 0.1; }
    30% { opacity: 0.3; }
    40% { opacity: 0.1; }
    50% { opacity: 0.2; }
    60% { opacity: 0.1; }
    70% { opacity: 0.4; }
    80% { opacity: 0.1; }
    90% { opacity: 0.3; }
    100% { opacity: 0.2; }
}

@keyframes scanline {
    0% { transform: scaleX(0); }
    10% { transform: scaleX(1); }
    100% { transform: scaleX(1); }
}