Sorry to tell you, but this kind of system does not exist in reality. Heads of states in all States are above some laws and there are plentiful of reasons for this.
And by the way, if you think is undemocratic to have an unelected head of state, just think about the reasons that supreme court members are not elected. Democracy has its limits :-)