If those actions had in fact 'squandered public legitimacy', the solution to that lost legitimacy was to engage in peaceful protests for new elections or wait for new elections.
Government decisions can also be challenged in the courts.
A proper democratic process takes time, patience and continuity to develop, and Pakistan, while a far more complex case given it's ethno-linguistic diversity and geo-political challenges, is an excellent example of that.
None of the actions detailed in the article you quoted justify a dictator overthrowing a government and murdering political opponents in prison.
Protesters across Egypt call for Mohamed Morsi to go
Millions of demonstrators line streets to demand president's removal on first anniversary of his inauguration
Egyptians protest against President Mohamed Morsi in Cairo. Photograph: EPA
Millions of Egyptians filled streets across Egypt on Sunday calling for the departure of Mohamed Morsi on Sunday, hours after the president
told the Guardian he would not resign.
A year to the day after Morsi's inauguration as Egypt's first democratically elected president, up to 500,000 protesters swelled Cairo's Tahrir Square calling for Morsi's removal. They then headed to Itahadiya, the presidential palace in the north-east of the city in the evening.
Security sources said that at least seven people were killed and more than 600 wounded in clashes between Morsi's supporters and opponents.
Five of the dead were shot in towns south of Cairo, one each in Beni Suef and Fayoum and three in Assiut.
Two more were killed by gunfire during an attack on the national headquarters of Mursi's Muslim Brotherhood in a suburb of the capital, medical sources said.
Hundreds of people throwing petrol bombs and rocks attacked the building, which caught fire as guards and Brotherhood members inside the building exchanged gunfire with attackers.
State news agency MENA reported that 11 were treated in hospital for birdshot wounds, and across the country, the health ministry said, 613 people were injured as a result of factional fighting in the streets.
In Alexandria, Egypt's second city, 100,000 rallied in the centre, with similar rallies reported in dozens of other Egyptian cities. The headquarters of the Muslim Brotherhood, Morsi's Islamist group, came under attack as night fell.
A spokesman for Morsi said that the president knew he had made mistakes and was working to fix them. Omar Amer added that Morsi was serious in his repeated calls for national dialogue.
"(Morsi) announced to all of Egypt's people that he made mistakes and that he is in the process of fixing these mistakes," Amer told a late-night news conference.
He said Morsi had "extended his hand" for dialogue and wanted to listen to everyone, repeating the president's previous calls for national dialogue, which the opposition has rebuffed as not serious.
"I want to confirm one truth, if there is a total lack of response to this initiative, no listening to it, no interest in it from any side, what do you think the presidency can do?" the president's spokesman said. "The presidency is now waiting for a reaction, no matter how small, so it can build on it." The scale of the protests – which took place on the first day of the Egyptian working week – surpassed predictions made by presidential aides, who had expected only 150,000 people to take part nationwide.
A military source told Reuters that
as many as 14 million people in the country of 84 million took part in the demonstrations. There was no independent way of verifying that estimate, though the armed forces used helicopters to monitor the crowds.
"The scenes of protests are unprecedented in size and scope, and seemingly surpass those during the 18-day uprising that toppled Mubarak," said Michael Hanna, a fellow at the Century Foundation and a longtime
Egypt analyst.
The scale of protests were even more remarkable, Hanna said, because they were "a bottom-up, grassroots effort and not directed by political opposition leaders. In a sense, they have latched on to this expanding current. While the organisers were diligent and creative, while lacking organisation and funding, this breadth of mass mobilisation could not have transpired unless the protest movement was tapping into deep and growing frustration and disenchantment with the current course of the country and its leadership."
Some senior members of the Muslim Brotherhood spent the day travelling, fearing for their safety. Morsi himself moved from Itahadiya to the Quba palace, a state building in a safer part of Cairo.
"Egyptians are doing it again," said Ahmed Said, a leader of the largest opposition coalition, the National Salvation Front (NSF).
"They insist on regaining their hijacked revolution. We have revolted to reclaim our dignity, and reclaim our dignity we will."
But Morsi was defiant in the face of such dissent. "If we changed someone in office who [was elected] according to constitutional legitimacy – well, there will be people opposing the new president too, and a week or a month later they will ask him to step down," Morsi told the Guardian in an exclusive interview.
While Morsi was elected in free elections, his opponents believe he has
failed to uphold the democratic values on which a well-rounded democracy depends. In particular, he has been criticised for using a presidential decree to force through an Islamist-slanted constitution, viewed by many as the act of a dictator.
Among many other complaints, Morsi has been accused of presiding over the oppression of activists and journalists, and a
marked drop in living standards.
Once a consensus candidate for Islamist and secular voters, critics say he has alienated secular politicians and failed to achieve the unity he was elected to build. Morsi blames the opposition for failing to meet him halfway.
"Morsi got elected in a democratic way," said one government critic, businessman Hassan Shanab. "But since he took over, everything's been polarised. All of a sudden, we see ourselves part of an Islamic regime like Iran. Morsi's answerable to the
Brotherhood, but they are not answerable to us." As Shanab spoke, a crowd of protesters nearby started pelting a giant poster of Morsi with stones.
The president still has a vocal support base, 20,000 of whom have been camped in east Cairo since Friday in a show of support for his regime and for its democratic legitimacy. Many of them saw the protests elsewhere as counter-revolutionary and some claimed they had been started by forces loyal to former dictator Hosni Mubarak.
"I'm here to defend my vote, and to defend a revolution I was part of," said Shaima Abdel-Hamid, a teacher and Morsi supporter.
"We chose a president and now they want to get rid of him when he's dealing with 30 years of corruption. And they want to get rid of him after only a year."
"Seculars will not rule Egypt again," chanted one crowd of Morsi backers, who come not just from the Muslim Brotherhood, but from other Islamist groups such as Gamaa Islamiya, a Salafi movement.
A senior Brotherhood politician, Essam El-Erian, denounced the protests as a "coup attempt". In a statement on the group's website, he challenged the opposition to test public opinion in parliamentary elections instead of "simply massing people in violent demonstrations, thuggery or shedding the precious blood of Egyptians".
Yet many in Tahrir Square emphasised their religiosity, while rejecting what they perceived as the Brotherhood's attempts to run the Egyptian state along religious lines and to arbitrate on the correct interpretation of Islam. "I voted for him," said Haga Zeinab, a niqab-wearing protester in Tahrir. "But it turns out he only thinks his own people can be Muslims."
Anti-regime protesters created a carnival atmosphere in the square, with many setting off fireworks. At Itahadiya, they bobbed to patriotic songs played from a soundsystem resting on a first-floor balcony.
But at the Islamist rally, the mood was tetchy, particularly after several Brotherhood offices were attacked this week, and one former Brotherhood MP was killed. Many donned cycle helmets and builders' hard hats, and held shields and sticks in case of attack, waiting in defensive mode behind six lines of security checks. Some carried homemade shields emblazoned with the slogan: "Legitimacy is a red line" – a reference to Morsi's democratic mandate.
But with senior Muslim clerics warning of the prospect of civil war this week, many of the Islamists promised to act if the presidential palace came under attack from anti-Morsi protesters, and the police or the army fail to defend it.
The police have historically been no friend of the Brotherhood; across Egypt there were isolated accounts of policemen expressing support for anti-Morsi protesters.
"Now we're seeing the revolution being threatened," said Mohamed Sherif Abdeen, an IT teacher and member of the Muslim Brotherhood. He was carrying a stick and wearing a hard hat – for self-defence, he said. "We won't do anything if the army and police do their job. But, if not, and they don't protect the presidential palace, we will protect it with our chests."
At Itahadiya, medics were taking precautions, anticipating night-time attacks from Islamist forces or state officials. Tahrir Doctors, who tend to the injured at most Cairo protests, set up three field hospitals, staffed by about 30 medics. "If we get any injured from any side, we will treat them equally," said Dr Amr Shebaita, the group's head.
Egypt has been rife with speculation about what will happen next. Two of Egypt's best-known opposition leaders – leftist Hamdeen Sabbahy and liberal Mohamed Baradei – were photographed marching arm in arm towards Itahadiya on Sunday. Should Morsi fall, both are considered potential key players in any transition scenario. Among Morsi's opponents, the most popular and startling choice of successor – at least in the interim – may be the head of the armed forces, General Abdel Fattah Sisi.
There is widespread support for an army coup, particularly after Sisi hinted at the possibility of military intervention last week. "Come on Sisi," chanted protesters outside the presidential palace on Sunday. "My president is not Morsi."
Demonstrators camped outside Cairo's defence ministry – in yet another protest – shouted: "The people and the army are one hand."
...
https://www.theguardian.com/world/2013/jun/30/mohamed-morsi-egypt-protests