/* Legal Pages Styles */
.legal-document {
    min-height: 100vh;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.legal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.legal-background .gradient-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.legal-background .gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.05"/><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.05"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.05"/></svg>');
    animation: legalFloat 25s infinite linear;
}

@keyframes legalFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(0px); }
    75% { transform: translateY(-20px) translateX(-10px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s ease forwards;
}

.legal-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.legal-subtitle {
    font-size: 18px;
    color: #ccc;
    opacity: 0.8;
}

.legal-body {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-section {
    margin-bottom: 40px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.legal-section:hover::before {
    left: 100%;
}

.legal-section:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.1);
}

.legal-section[data-section="1"] {
    animation-delay: 0.2s;
}

.legal-section[data-section="2"] {
    animation-delay: 0.4s;
}

.legal-section[data-section="3"] {
    animation-delay: 0.6s;
}

.legal-section[data-section="4"] {
    animation-delay: 0.8s;
}

.legal-section[data-section="5"] {
    animation-delay: 1.0s;
}

.legal-section[data-section="6"] {
    animation-delay: 1.2s;
}

.legal-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% { 
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
    }
}

.section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 15px;
}

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

.section-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: #e0e0e0;
    line-height: 1.6;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateX(0);
}

.section-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #667eea;
    font-size: 12px;
    animation: listItemPulse 2s ease-in-out infinite;
}

@keyframes listItemPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

.section-list li:hover {
    color: #fff;
    transform: translateX(5px);
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
}

.contact-link:hover::after {
    width: 100%;
}

/* Scroll animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-title {
        font-size: 36px;
    }
    
    .legal-body {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 28px;
    }
    
    .legal-body {
        padding: 20px 15px;
    }
    
    .legal-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-content {
        font-size: 14px;
    }
}

/* Enhanced animations for legal sections */
.legal-section {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.legal-section:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-8px) scale(1.01);
}

/* Staggered animation for sections */
.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.2s; }
.legal-section:nth-child(3) { animation-delay: 0.3s; }
.legal-section:nth-child(4) { animation-delay: 0.4s; }
.legal-section:nth-child(5) { animation-delay: 0.5s; }
.legal-section:nth-child(6) { animation-delay: 0.6s; }

/* Parallax effect for background */
.legal-background .gradient-bg {
    transition: transform 0.1s ease;
}

/* Enhanced list item animations */
.section-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease forwards;
}

.section-list li:nth-child(1) { animation-delay: 0.1s; }
.section-list li:nth-child(2) { animation-delay: 0.2s; }
.section-list li:nth-child(3) { animation-delay: 0.3s; }
.section-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced hover effects */
.legal-section:hover .section-title {
    color: #667eea;
    transform: translateX(5px);
}

.legal-section:hover .section-content {
    color: #fff;
}

/* Loading animation */
.legal-content {
    opacity: 0;
    animation: contentFadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes contentFadeIn {
    to {
        opacity: 1;
    }
}
