Legal system transformation