>If you want to pretend that those politicians and officials are accountable to the people, then the people are a legitimate target for espionage, just like the king would be in a monarchy.
First, if officials are accountable to the people, then the officials are legitimate target of espionage (or transparency). The people is the master, not the officials.
Also, following your logic, are people also a legitimate target to terrorist attacks? It is after all a democracy, and in that sense they are responsible for the actions of their government, right?
Or we could take the logical conclusion that what we have is far for a democracy...