By "legally work" do you mean "pay taxes"? Because AFAIK European people can legally work in UK and live or pay taxes in their origin countries (France, Germany, Spain, etc)
It's tricky. The hiring pool can technically include the whole EU, but people need to live in the UK while they work here (I believe). We can't hire someone in Germany and have them be employed in the UK.