Law and Reputation: How the Legal System Shapes Behavior by Producing Information