The inevitability of cycles in legal regimes