The Levers of Legal Design: Institutional Determinants of the Quality of Law