According to the ruling in the Plessy v. Ferguson case, why was segregation acceptable?

Segregation was legal because African Americans were not citizens
Segregation was legal as long as facilities for blacks and whites were equal.
Segregation was acceptable in private facilities only
Segregation was acceptable on a state by state basis

Segregation was legal as long as facilities for blacks and whites were equal.