The correct answer is:
B. It was legal because it did not violate the Fourteenth Amendment.
The Supreme Court's decision in Plessy v. Ferguson upheld the constitutionality of racial segregation laws for public facilities under the "separate but equal" doctrine, stating that as long as the segregated facilities were equal, segregation did not violate the Fourteenth Amendment's guarantee of equal protection under the laws.