“The principle of legality is fundamental to modern democracies precisely because of the need to prevent someone being able to claim they are representative of a so-called ‘democratic majority’ in order to control power outside the scope of established &lbrack;...&rbrack;