That one's easy; "age" is not a protected class. The protected class is "people over 40". Discriminating against young and youngish adults is fine.
You might try making an argument that theaters have to give you senior pricing as soon as you turn 40; I don't know what's going on there.