/* ═════════════════════════════════════════════════════════════════════
   KickALL — Legal Pages Premium Stylesheet (Privacy, Refund, Terms)
   Performance: 120 FPS Hardware-Accelerated (Zero Jitter, No Fixed Repaint)
   Aesthetic: Cyberpunk Dark Obsidian with #53FC18 & #8B5CF6 Accents
   ═════════════════════════════════════════════ */

:root {
    --bg-dark: #06040A;
    --grad-card-dark: linear-gradient(180deg, rgba(18, 13, 34, 0.92) 0%, rgba(10, 7, 20, 0.96) 100%);
    --grad-card-hover: linear-gradient(180deg, rgba(26, 19, 48, 0.95) 0%, rgba(14, 10, 26, 0.98) 100%);
    
    --primary: #53FC18;
    --primary-hover: #6EFF35;
    --primary-glow: rgba(83, 252, 24, 0.25);
    
    --accent: #8B5CF6;
    --accent-light: #C084FC;
    --accent-glow: rgba(139, 92, 246, 0.25);
    
    --border-color: rgba(139, 92, 246, 0.18);
    --border-hover: rgba(83, 252, 24, 0.4);
    
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-sub: #64748B;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --ease-snappy: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    padding: 0 0 90px 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #06040A;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8B5CF6, #53FC18);
    border-radius: 9999px;
}

/* ═════════════════════════════════════════════════════════════════════
   ZERO-JANK AMBIENT AURORA BACKGROUND (HARDWARE-ACCELERATED)
   ═════════════════════════════════════════════ */
.glow-bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    contain: strict;
    transform: translate3d(0, 0, 0);
    overflow: hidden;
}

.glow-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(139, 92, 246, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.035) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, black 20%, transparent 80%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.55;
    transform: translate3d(0, 0, 0);
    animation: none !important;
}

.blob-violet {
    top: -5%;
    left: 15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, rgba(109, 40, 217, 0.06) 40%, transparent 70%);
}

.blob-green {
    top: 30%;
    right: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(83, 252, 24, 0.16) 0%, rgba(63, 186, 14, 0.04) 40%, transparent 70%);
}

.blob-cyan {
    bottom: 5%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.12) 0%, rgba(0, 245, 255, 0.03) 40%, transparent 70%);
}

/* Container */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--primary);
    color: #06040A;
    font-weight: 800;
    border-radius: 8px;
    clip: auto;
    width: auto;
    height: auto;
}

/* ═════════════════════════════════════════════════════════════════════
   TOP NAVIGATION BAR
   ═════════════════════════════════════════════ */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 4, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 24px;
    transition: border-color 0.25s ease;
}

.top-nav-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.brand-link .logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.brand-badge {
    font-family: var(--font-heading);
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(83, 252, 24, 0.12);
    color: var(--primary);
    border: 1px solid rgba(83, 252, 24, 0.35);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease-snappy);
}

.nav-link-btn:hover {
    color: #FFFFFF;
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
}

.lang-switcher {
    display: inline-flex;
    background: rgba(14, 10, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 2px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: #06040A;
    box-shadow: 0 0 10px rgba(83, 252, 24, 0.4);
}

/* ═════════════════════════════════════════════════════════════════════
   HERO HEADER
   ═════════════════════════════════════════════ */
.hero-header {
    text-align: center;
    padding: 56px 0 36px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: #FFFFFF;
    line-height: 1.15;
}

.hero-header h1 .highlight {
    background: linear-gradient(135deg, #53FC18 0%, #00F5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 16px auto;
    line-height: 1.65;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 500;
}

/* ═════════════════════════════════════════════════════════════════════
   TABLE OF CONTENTS (TOC)
   ═════════════════════════════════════════════ */
.toc-card {
    background: var(--grad-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 26px;
    margin-bottom: 34px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #FFFFFF;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(6, 4, 10, 0.6);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s var(--ease-snappy);
}

.toc-link:hover {
    background: rgba(83, 252, 24, 0.1);
    border-color: rgba(83, 252, 24, 0.35);
    color: #FFFFFF;
    transform: translateX(3px);
}

/* ═════════════════════════════════════════════════════════════════════
   LEGAL SECTION CARDS (120 FPS CONTENT-VISIBILITY)
   ═════════════════════════════════════════════ */
.legal-card {
    background: var(--grad-card-dark);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 34px 30px;
    margin-bottom: 28px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
    content-visibility: auto;
    contain-intrinsic-size: 1px 350px;
    transition: border-color 0.25s ease;
}

.legal-card:hover {
    border-color: rgba(139, 92, 246, 0.38);
}

.legal-card h2 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.25;
}

.legal-card h2 svg,
.legal-card h2 .section-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.legal-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #E2E8F0;
    margin: 22px 0 10px 0;
}

.legal-card p {
    color: #CBD5E1;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul, .legal-card ol {
    margin: 12px 0 18px 22px;
    color: #CBD5E1;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-card li {
    line-height: 1.65;
}

.legal-card strong {
    color: #FFFFFF;
}

.legal-card a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.legal-card a:hover {
    color: var(--primary-hover);
}

.legal-card code {
    background: rgba(83, 252, 24, 0.1);
    border: 1px solid rgba(83, 252, 24, 0.25);
    color: var(--primary);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: monospace;
}

/* ═════════════════════════════════════════════════════════════════════
   CALLOUT BOXES & HIGHLIGHTS
   ═════════════════════════════════════════════ */
.callout-box {
    border-radius: 14px;
    padding: 18px 20px;
    margin: 20px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.callout-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.callout-success {
    background: rgba(83, 252, 24, 0.08);
    border: 1px solid rgba(83, 252, 24, 0.35);
    color: #E2E8F0;
}
.callout-success .callout-icon {
    color: var(--primary);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #E2E8F0;
}
.callout-warning .callout-icon {
    color: #F59E0B;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #E2E8F0;
}
.callout-danger .callout-icon {
    color: #EF4444;
}

/* Highlight card for Refund */
.highlight-card {
    background: radial-gradient(circle at 50% 0%, rgba(83, 252, 24, 0.12) 0%, rgba(18, 13, 34, 0.94) 70%);
    border: 1px solid rgba(83, 252, 24, 0.35);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(83, 252, 24, 0.15);
    border: 1px solid rgba(83, 252, 24, 0.4);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.highlight-content p {
    color: #CBD5E1;
    font-size: 0.92rem;
    margin: 0;
}

/* Step Grid for Refund process */
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.step-box {
    background: rgba(6, 4, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═════════════════════════════════════════════════════════════════════
   LEGAL FOOTER NAVIGATION
   ═════════════════════════════════════════════ */
.legal-footer-nav {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright-text {
    font-size: 0.82rem;
    color: var(--text-sub);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header { padding: 40px 0 24px 0; }
    .legal-card { padding: 24px 18px; }
    .step-grid { grid-template-columns: 1fr; }
    .highlight-card { flex-direction: column; text-align: center; }
    .toc-grid { grid-template-columns: 1fr; }
    .top-nav { padding: 12px 16px; }
}

::selection {
    background-color: var(--primary);
    color: #06040A;
}
