What would be the systematic changes to better protect democracy and a functioning civil society? I'm certainly no expert myself but I must imagine there are a lot of literature and experts.

It also helps reading about different countries, their histories and various forms of government and practices.

It's probably hard to go from dictatorship and totalitarianism to strong judicial systems and democracy. Instead you get a line of successive different dictators.