It is a general question about who should lead the juridical power in a democratic country, but then I can complete the question by providing an example from USA.
We know that, in the democratic countries “independence of the judiciary” is well rooted.
So, it makes more sense for me if the head of "juridical power" is also independently elected by direct vote of people. However, I am not sure if it happens in any democratic country.
For example, in the United States, the president (head of executive power) is elected and then he/she will choose the judges!!!
I think, if judges are also elected, then there is a better guarantee for democracy. Is that true?
What can guarantee that, judges will not become loyal to president after election?