Mercury from mine waste travels up the food chain through bacteria , which converts it to methylmercury -- a potent toxin that can permanently damage the brain and nervous system , especially in fetuses and children .