Climate Contracts: A Game of Emissions, Investments, Negotiations, and Renegotiations