As long as you can vote and the vote is recognized you are a democracy, there is a reason why liberal democracy and democracy aren’t just synonyms.
Foundational freedoms sounds like a fixed definition of freedoms but history showed it’s highly subjective and selective by culture and country.
Not all cultures value individual freedoms like western culture does, and few cultures grant all their freedoms to people outside their culture or country.
Societies always have to balance between what’s good for all, most, some and one.
Illiberal democracies are also democracies if we treat 1950s era US, Australia, UK, and Canada as democracies.
Much of the Western world only saw a shift to Liberal Democracy (as in the enshrinement of civil liberties and limits to majoritarianism) in the 1960s to 1990s.
Liberal Democracy can be protected only if it's norms are enshrined in jurisprudence, and a lot of Liberal Democracies like the UK didn't do so.