Theorizing or conceptualizing a phenomenon can be biased or determined by the point of view of each individual or community. So I will try to do the best I can since it is not my field or comfort zone.
Regarding Civil Rebellion, I found these two statements interesting:
"Public and violent uprising against the powers of the State, in order to overthrow them or force them to act in a certain way."
"In Civil Disobedience, Thoreau's basic premise is that a law superior to civil law demands the obedience of the individual. Human law and government are subordinate. In cases where both are in conflict with each other, the individual must follow his conscience and, if necessary, ignore human law."
In the case of Legal Rebellion I have not found a definition directly regarding this term, but I have found something that LEGALLY justifies A REBELLION
"In political philosophy, the right of rebellion, right of revolution or right of resistance to oppression is a right recognized to peoples against rulers of illegitimate origin, or that having legitimate origin have become illegitimate during their exercise, which authorizes civil or family disobedience and the use of force in order to overthrow them and replace them with governments that possess legitimacy. In another sense, it can be considered that it is the duty of the people of a nation to depose a government that acts against the common interest and/or that threatens the security of the people without any reason."
I have marked between (*) two terms that legalize a rebellion, RIGHT OF THE PEOPLE, DUTY OF THE PEOPLE