Church must carry on pope's legacy of mercy, cardinal says