body {
    background: #0a0e1a;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.legal-wrapper {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1729 100%);
    overflow: hidden;
}

/* Animated background */
.legal-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(129, 236, 72, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating particles effect */
.legal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: float 20s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.legal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B5CF6;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #8B5CF6, #3a86ff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

/* 
.sidebar-nav a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    padding-left: 20px;
} */

.sidebar-nav a:hover::before {
    transform: scaleY(1);
}

/* Main Content Area */
.legal-main {
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.legal-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8B5CF6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.5);
}

.last-updated {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-content {
    line-height: 1.9;
}

.legal-section {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    padding: 40px 45px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #8B5CF6, #48ec58b8, #60a5fa);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* 
.legal-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

.legal-section:hover::before {
    opacity: 0.2;
} */

.legal-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-section h2::before {
    content: '▸';
    color: #3a86ff;
    font-size: 1.5rem;
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3a86ff;
    margin-top: 30px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3::before {
    content: '•';
    color: #3a86ff;
    font-size: 1.2rem;
}

.legal-section p {
    margin-bottom: 18px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.9;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.legal-section li {
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
}

.legal-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8B5CF6;
    font-weight: 700;
}

.legal-section li strong {
    color: #a78bfa;
    font-weight: 600;
}

.legal-section a {
    color: #3a86ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.legal-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3a86ff, #f472b6);
    transition: width 0.3s ease;
}

.legal-section a:hover {
    color: #3a86ff;
    ;
}

.legal-section a:hover::after {
    width: 100%;
}

.legal-section code {
    background: rgba(139, 92, 246, 0.2);
    color: #e9d5ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Special sections */
.legal-section.acknowledgment {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid #3a86ff;
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
    animation: pulse 3s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 15px 50px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 15px 70px rgba(236, 72, 153, 0.5);
    }
}

.legal-section.acknowledgment h2 {
    color: #3a86ff;
    ;
}

.legal-section.acknowledgment p {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    text-align: center;
}

/* Privacy notes */
.privacy-note {
    background: rgba(59, 130, 246, 0.1);
    border-left: 5px solid #3b82f6;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.privacy-note strong {
    color: #60a5fa;
}

.privacy-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 5px solid #3a86ff;
    ;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.privacy-warning strong {
    color: #3a86ff;
}

/* Responsive */
@media (max-width: 1200px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 100px 30px 60px;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        display: none;
        /* Hide sidebar on smaller screens */
    }
}

@media (max-width: 768px) {
    .legal-container {
        padding: 90px 20px 50px;
    }

    .legal-header {
        padding: 35px 25px;
    }

    .legal-header h1 {
        font-size: 2.2rem;
    }

    .legal-section {
        padding: 30px 25px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 80px 15px 40px;
    }

    .legal-header h1 {
        font-size: 1.9rem;
    }

    .legal-section {
        padding: 25px 20px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.5);
    color: #fff;
}

::-moz-selection {
    background: rgba(139, 92, 246, 0.5);
    color: #fff;
}