Is legal the same as moral?

Freedom of the market doesn’t imply the absence of law. To the contrary: free market is impossible without good law. Then what function should the law fulfill? If [...]