Navigating Legal and Ethical Challenges of AI in Healthcare Informatics