last-child
targets, well, the last child of the parent. In this case, the last child is a section
which doesn't have the class example
, and consequently nothing matches the selector.
What you're looking for is last-of-type
, which matches elements and not classes. Take a look.