ANKARA, Oct 5 (Reuters) - Turkey's government and opposition both vowed legal steps to enshrine women's right to wear Islamic headscarves on Wednesday, restoring to the heart of political debate ahead of next year's elections an issue which once caused deep divisions.Register now for FREE unlimited access to Reuters.comBut main opposition leader Kemal Kilicdaroglu unexpectedly revived the issue this week, announcing the planned legislation amid efforts by his secularist CHP party to reach out to devout Turks, among which the CHP has traditionally had little support.Erdogan frequently targets the CHP over its past opposition to broadening headscarf freedoms and spoke at length on the issue in a speech to AKP deputies in parliament on Wednesday.Kilicdaroglu gave a cautious welcome to Erdogan's proposal on Wednesday, saying: "If there is no cunning agenda behind it, of course, we are ready to give all kinds of support to your proposal on rights and freedoms."Turkey's parliament lifted a ban on female students wearing the headscarf at university in 2008 in a move championed by Erdogan and which CHP lawmakers including Kilicdaroglu had sought unsuccessfully to block in the constitutional court."