Ruling by statute : how uncertainty and vote buying shape lawmaking