Lionel Messi has retired from international football, ending a 21-year career with Argentina marked by a World Cup win, personal loss, and a legacy as the nation's top scorer.