Most head of states of countries that are not military dictatorship are civilian, i.e. they are not military, but if they rule over the military (such as the American president who is commander in chief of the military) does that count as being treated as a civilian for the purposes of wartime policy?
A similar role was played by Khamenei who was commander in chief of the Iranian armed forces.
Netanyahu is also a civilian and nevertheless the ICC issued an arrest warrant for his responsibilities for the behaviour of the IDF in the war in Gaza.
The formal definition used by the ICC is "civilian superior".