AI in legal practice: how to navigate the risks and opportunities ethically