Gold lifted by haven demand; palladium logs 16-year high