/* Main styles for legal pages (Terms & Conditions, Privacy Policy) */
.legal-section {
    padding: 80px 20px;
    position: relative;
    background-color: #050507;
    color: #a8b6c7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(30, 150, 252, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(2, 2, 2, 0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(30, 150, 252, 0.2);
    overflow: hidden;
}

.legal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e96fc, #1efcf1, #1e96fc);
    background-size: 200% 100%;
    animation: gradientMove 5s infinite linear;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.legal-container h1 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
}

.last-updated {
    text-align: center;
    color: #1e96fc;
    font-size: 0.9rem;
    margin-bottom: 30px;
    font-style: italic;
}

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

.legal-section-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.legal-section-block:hover {
    background-color: rgba(10, 20, 40, 0.3);
    transform: translateY(-2px);
}

.legal-section-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 150, 252, 0.08), transparent);
    transition: left 0.7s ease-in-out;
    z-index: -1;
}

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

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

.legal-section-block h2 {
    color: #1efcf1;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
    transition: transform 0.3s ease, padding-left 0.3s ease;
    padding-left: 0;
}

.legal-section-block:hover h2 {
    transform: scale(1.02);
    padding-left: 10px;
}

.legal-section-block p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #a8b6c7;
}

.legal-list {
    padding-left: 30px;
    margin-bottom: 20px;
}

.legal-list li {
    margin-bottom: 10px;
    position: relative;
}

.legal-list li::before {
    content: '•';
    color: #41e879;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.legal-list li strong {
    color: #ffffff;
    font-weight: 500;
}

/* iOS-specific adjustments */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 767px) {
        .sticky-header .logo-img {
            height: 50px !important;
            width: auto !important;
            margin-left: 0 !important;
            margin-right: 15px !important;
            position: relative;
            z-index: 1001;
            order: 3 !important;
        }
        
        .sticky-header .logo-link {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            padding: 5px 0;
            position: absolute;
            top: 5px;
            right: -10px;
            order: 3;
          }
        
        .navbar {
            padding: 5px 10px;
            justify-content: space-between !important;
        }
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .legal-container {
        padding: 30px;
    }

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

@media (max-width: 768px) {
    .legal-section {
        padding: 100px 15px 60px;
    }
    
    .legal-container {
        padding: 25px;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .legal-section {
        padding: 90px 10px 50px;
    }
    
    .legal-container {
        padding: 20px;
        border-radius: 10px;
    }
    
    .legal-container h1 {
        font-size: 1.8rem;
    }
    
    .legal-section-block h2 {
        font-size: 1.2rem;
    }
    
    .legal-list {
        padding-left: 20px;
    }
} 

