“Many schools have a mandatory uniform or a dress code for students.”

Which of the following best replaces the word mandatory in this sentence?

required

approved

unnatural

legal

required