By your own definition, pretty much no countries, including the US, are democracies, as almost everywhere has mechanisms through which the courts can prevent you from running.
Bingo! Well you can’t have a perfect “pure” democracy but you want to try to get as close as possible. The court isn’t just a king who decides to veto.