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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #121212 0%, #1a0b3d 50%, #121212 100%);
}

.starfield::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #08f7fe, transparent),
        radial-gradient(1px 1px at 40px 70px, #ff007c, transparent),
        radial-gradient(1px 1px at 90px 40px, #f5d300, transparent),
        radial-gradient(1px 1px at 130px 80px, #08f7fe, transparent),
        radial-gradient(1px 1px at 160px 30px, #ff007c, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { opacity: 0.2; }
    100% { opacity: 0.6; }
}

/* Header */
.legal-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff007c;
    padding: 16px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.logo {
    font-size: 16px;
    color: #ff007c;
    text-decoration: none;
    text-shadow: 0 0 10px #ff007c, 0 0 20px #ff007c, 0 0 30px #ff007c;
}

.back-button {
    color: #08f7fe;
    text-decoration: none;
    font-size: 10px;
    padding: 8px 16px;
    border: 2px solid #08f7fe;
    background: rgba(8, 247, 254, 0.1);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #08f7fe;
}

.back-button:hover {
    background: rgba(8, 247, 254, 0.2);
    box-shadow: 0 0 15px rgba(8, 247, 254, 0.4);
    transform: translateY(-2px);
}

.neon-text {
    color: #ff007c;
    text-shadow: 0 0 10px #ff007c, 0 0 20px #ff007c, 0 0 30px #ff007c;
}

/* Main Content */
.legal-main {
    padding-top: 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 16px;
}

.legal-title {
    font-size: clamp(16px, 4vw, 24px);
    text-align: center;
    margin-bottom: 48px;
    color: #08f7fe;
    text-shadow: 0 0 15px #08f7fe;
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { text-shadow: 0 0 15px #08f7fe; }
    100% { text-shadow: 0 0 25px #08f7fe, 0 0 35px #08f7fe; }
}

/* Legal Content */
.legal-content {
    background: linear-gradient(135deg, rgba(26, 11, 61, 0.2), rgba(36, 0, 70, 0.1));
    border: 2px solid #f5d300;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(245, 211, 0, 0.1);
}

.legal-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(8, 247, 254, 0.2);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-heading {
    font-size: 12px;
    color: #f5d300;
    margin-bottom: 16px;
    text-shadow: 0 0 5px #f5d300;
}

.legal-text {
    font-size: 8px;
    line-height: 2;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.legal-list {
    list-style: none;
    padding-left: 16px;
    margin: 16px 0;
}

.legal-list li {
    font-size: 8px;
    line-height: 2;
    color: #cccccc;
    position: relative;
    margin-bottom: 8px;
}

.legal-list li::before {
    content: '▶';
    color: #08f7fe;
    position: absolute;
    left: -16px;
    text-shadow: 0 0 5px #08f7fe;
}

/* Footer */
.legal-footer {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9), rgba(26, 11, 61, 0.3));
    border: 1px solid #ff007c;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 124, 0.2);
}

.footer-text {
    font-size: 8px;
    color: #888888;
    margin-bottom: 16px;
}

.return-link {
    color: #08f7fe;
    text-decoration: none;
    font-size: 10px;
    padding: 8px 16px;
    border: 2px solid #08f7fe;
    background: rgba(8, 247, 254, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #08f7fe;
}

.return-link:hover {
    background: rgba(8, 247, 254, 0.2);
    box-shadow: 0 0 15px rgba(8, 247, 254, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .back-button {
        font-size: 8px;
        padding: 6px 12px;
    }
    
    .legal-container {
        padding: 24px 12px;
    }
    
    .legal-content {
        padding: 24px 16px;
    }
    
    .legal-title {
        font-size: 14px;
        margin-bottom: 32px;
    }
    
    .section-heading {
        font-size: 10px;
    }
    
    .legal-text,
    .legal-list li {
        font-size: 7px;
    }
    
    .return-link {
        font-size: 8px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 16px 8px;
    }
    
    .legal-content {
        padding: 16px 12px;
    }
    
    .legal-title {
        font-size: 12px;
        margin-bottom: 24px;
    }
    
    .section-heading {
        font-size: 8px;
        margin-bottom: 12px;
    }
    
    .legal-text,
    .legal-list li {
        font-size: 6px;
        line-height: 1.8;
    }
    
    .legal-section {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .legal-list {
        padding-left: 12px;
        margin: 12px 0;
    }
    
    .legal-list li::before {
        left: -12px;
    }
    
    .footer-text {
        font-size: 6px;
    }
    
    .return-link {
        font-size: 7px;
        padding: 4px 8px;
    }
}

/* Enhanced visual effects */
.legal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f5d300, #08f7fe, #ff007c, #f5d300);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 8px;
    animation: borderGlow 4s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.legal-content {
    position: relative;
}