Legal compliance automation