Gambling legislation costing exchequer £30 million every year