The student leaders were jailed for staging demonstrations against King Gyanendra 's seizure of absolute power , and for demanding the restoration of democracy .