PROVO, Utah — Before she could move into a dormitory at Brigham Young University or sign up for freshman classes, Brooke had to sign the college’s Honor Code.

Part moral compass and part contract, the Honor Code is a cornerstone of life for the nearly 30,000 students at Brigham Young, a Mormon-run university. It points students, faculty and staff members toward “moral virtues encompassed in the gospel of Jesus Christ,” prizing chastity, honesty and virtue. It requires modest dress on campus, discourages consensual sex outside marriage and, among other things, prohibits drinking, drug use, same-sex intimacy and indecency, as well as sexual misconduct.

Read more in The New York Times.