AI Approaches to the Complexity of Legal Systems