Legal systems: costs and funding