Legal knowledge and compliance