I don't do this exact topic, but I'm pretty sure a 'legacy' is just how they are remembered/perceived by future generations (you can split this up into ancient and modern). you can determine what their legacy is like mainly from written sources that mention them after they've died