/* Legal Documents Styling */

.legal-document {
    background-image: url('../assets/feature_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Remove background-attachment: fixed for better mobile compatibility */
    min-height: 100vh;
    padding: 120px 20px 80px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    /* Ensure proper spacing for fixed header (62px) */
    padding-top: calc(62px + 58px);
}

.legal-document::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 32, 148, 0.05);
    pointer-events: none;
    z-index: 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.legal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #1c2094;
    margin-bottom: 15px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-updated {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.legal-content {
    font-family: 'Inter', sans-serif;
    color: #374151;
    line-height: 1.8;
    width: 100%;
    box-sizing: border-box;
}

.legal-intro {
    font-size: 18px;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #1c2094;
    border-radius: 8px;
}

.legal-intro p {
    margin-bottom: 15px;
}

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

.legal-section {
    margin-bottom: 45px;
    width: 100%;
    box-sizing: border-box;
}

.legal-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1c2094;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #374151;
    margin-top: 25px;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-section p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-section ul {
    list-style-position: outside;
    padding-left: 30px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.legal-section ul li {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.7;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-section ul li::marker {
    color: #1c2094;
    font-weight: 600;
}

.legal-section strong {
    font-weight: 600;
    color: #1f2937;
}

.legal-section a {
    color: #1c2094;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: #6c484a;
}

.legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legal-footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1c2094;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-footer-link:hover {
    color: #6c484a;
    text-decoration: underline;
}

.legal-separator {
    color: #9ca3af;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .legal-container {
        max-width: 95%;
        padding: 50px 40px;
    }
    
    .legal-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .legal-document {
        padding: calc(62px + 38px) 15px 50px;
    }
    
    .legal-container {
        padding: 40px 25px;
        border-radius: 8px;
        max-width: 100%;
        margin: 0 10px;
    }
    
    .legal-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }
    
    .legal-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .legal-updated {
        font-size: 14px;
    }
    
    .legal-intro {
        font-size: 16px;
        padding: 20px;
        margin-bottom: 35px;
    }
    
    .legal-section {
        margin-bottom: 35px;
    }
    
    .legal-section h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .legal-section h3 {
        font-size: 20px;
        line-height: 1.3;
        margin-top: 20px;
    }
    
    .legal-section p,
    .legal-section ul li {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .legal-section ul {
        padding-left: 20px;
    }
    
    .legal-footer {
        margin-top: 50px;
        padding-top: 25px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-separator {
        display: none;
    }
    
    .legal-footer-link {
        font-size: 15px;
        padding: 5px 0;
    }
}

@media (max-width: 480px) {
    .legal-document {
        padding: calc(62px + 28px) 10px 40px;
    }
    
    .legal-container {
        padding: 30px 20px;
        border-radius: 8px;
        margin: 0 5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    
    .legal-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .legal-updated {
        font-size: 13px;
    }
    
    .legal-intro {
        font-size: 15px;
        padding: 18px;
        margin-bottom: 30px;
    }
    
    .legal-section {
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .legal-section h3 {
        font-size: 18px;
        line-height: 1.3;
        margin-top: 18px;
        margin-bottom: 12px;
    }
    
    .legal-section p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }
    
    .legal-section ul {
        padding-left: 18px;
        margin-bottom: 15px;
    }
    
    .legal-section ul li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .legal-footer {
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .legal-footer-link {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .legal-document {
        padding: calc(62px + 23px) 8px 35px;
    }
    
    .legal-container {
        padding: 25px 15px;
        margin: 0 3px;
    }
    
    .legal-title {
        font-size: 24px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 17px;
    }
    
    .legal-section p,
    .legal-section ul li {
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .legal-document {
        background: white;
        padding: 20px;
    }
    
    .legal-container {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-footer {
        page-break-inside: avoid;
    }
}

