for each leg, you look 5nm either side of it
No; its 5nm from the aircraft not the Leg!
This is a thread about route planning. Without the benefit of a time machine to allow you to see if you do fly your leg exactly along the line you drew, the fact remains that when you are planning your route, you generate an MSA number for your PLOG by looking 5nm either side of the line.