Segregation and inequality across neighborhoods, classrooms, and police jurisdictions