An uncertain legal framework , corruption , and a lack of transparency in government policy are long-term problems for the mining sector and for the economy as a whole .