After announcing his international retirement, Portugal's longstanding captain leaves behind a complicated legacy.