Under which circumstance can healthcare personnel treat a child even when the legal guardian cannot be contacted? 1) When the child is in immediate danger and requires urgent medical attention 2) When the child is accompanied by a responsible adult who can provide consent 3) When the healthcare personnel believe that the treatment is necessary for the child's well-being 4) When the child's legal guardian has given prior consent for emergency situations