Stav dette: Firms, contracts, and financial structure