/* ========================================
   CHANDNI SOFTWARE GROUP – LEGAL PAGES STYLES
   (Privacy Policy & Terms and Conditions)
   ======================================== */

.legal-container {
    padding: 40px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.legal-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
}

.legal-content {
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 16px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-content h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.legal-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.legal-content strong {
    color: var(--text-dark);
    font-weight: 700;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 5px;
}

.legal-content ul li::marker {
    color: var(--red);
}

.legal-content a {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 1px dashed var(--red-light);
}

.legal-content a:hover {
    color: var(--red-dark);
    border-bottom-style: solid;
}

/* Specific styling for sections */
.legal-section {
    background: var(--pink-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--red);
}

.legal-section h3 {
    margin-top: 0;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.last-updated {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 40px;
    display: inline-block;
    padding: 6px 15px;
    background: var(--pink-soft);
    border-radius: 50px;
    font-weight: 500;
}

.contact-info-box {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2a2a4a 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 50px;
}

.contact-info-box h2 {
    color: var(--white) !important;
    margin-top: 0;
}

.contact-info-box h2::after {
    background: rgba(255, 255, 255, 0.1) !important;
}

.contact-info-box p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-box strong {
    color: var(--white);
}

/* Animations */
.legal-card {
    animation: fadeInUp 0.8s ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .legal-card {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .legal-content h2 {
        font-size: 22px;
    }

    .legal-container {
        padding: 10px 0;
    }
}