A legal system fit for the 21st century