What was the purpose of the Black Codes enacted by southern states after the Civil War?
A. To encourage fair treatment of formerly enslaved people.
B. To promote educational opportunities for formerly enslaved people.
C. To restrict the freedom of formerly enslaved people.
D. To restrict the freedom of former Confederate supporters.