The legal pitfalls of using AI at work