/* Legal Links Mobile Responsiveness Fix */

/* Base Legal Links Styling */
.legal-links {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Override the .wiseleaf-footer .copyright a rule that makes links blue */
footer.wiseleaf-footer .footer-bottom .footer-bottom-content .copyright .legal-links a,
footer.wiseleaf-footer .copyright .legal-links a,
.wiseleaf-footer .copyright .legal-links a,
.copyright .legal-links a,
.legal-links a,
.legal-links a:link,
.legal-links a:visited,
.legal-links a:active {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    margin: 0 15px !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

footer.wiseleaf-footer .footer-bottom .footer-bottom-content .copyright .legal-links a:hover,
footer.wiseleaf-footer .copyright .legal-links a:hover,
.wiseleaf-footer .copyright .legal-links a:hover,
.copyright .legal-links a:hover,
.legal-links a:hover,
.legal-links a:focus {
    color: #3498db !important;
    text-decoration: underline !important;
    transform: translateY(-2px) !important;
    text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3) !important;
}

.legal-links a:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.4);
    margin-left: 15px;
    font-weight: 300;
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 767px) {
    .legal-links {
        text-align: center !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .legal-links a {
        display: block !important;
        margin: 12px auto !important;
        font-size: 1rem !important;
        padding: 8px 15px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        max-width: 200px !important;
        text-align: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .legal-links a:hover,
    .legal-links a:focus {
        background: rgba(255, 255, 255, 0.2) !important;
        transform: none !important;
    }
    
    .legal-links a:not(:last-child)::after {
        display: none !important;
    }
}

/* Extra Small Mobile Devices */
@media screen and (max-width: 480px) {
    .legal-links a {
        font-size: 0.95rem !important;
        padding: 10px 12px !important;
        margin: 10px auto !important;
        max-width: 180px !important;
    }
}

/* High specificity to override any conflicting styles */
@media screen and (max-width: 767px) {
    body .wiseleaf-footer .footer-bottom .copyright .legal-links,
    body footer .footer-bottom .copyright .legal-links,
    body .copyright .legal-links {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    body .wiseleaf-footer .footer-bottom .copyright .legal-links a,
    body footer .footer-bottom .copyright .legal-links a,
    body .copyright .legal-links a {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        line-height: normal !important;
    }
}