Learning Legal Rules