Dignified statesman whose legacy was defined by two tragedies in a tumultuous time