The list of Soviet Union's leaders shows that usually leaders remained in office until their death, I'd like to know:
What was the legal status of the Soviet Union's leader? How was he elected or removed?
Could he have been impeached according to the constitution? If so, had there ever been an attempt to impeach a leader?
If no, was there any mechanism to restrict the power of the leader?