Legal system dynamics