; (B) the residence of the detainee prior to apprehension; (C) the location of family members of the detainee; (D) the stage of any legal proceeding involving the detainee, including Federal, State, or administrative proceedings; (E) the proximity of the transferee facility to the venue of any legal proceeding described in subparagraph (D); (F) the health and medical fitness of the detainee; and (G) whether the detainee has a pending application for relief with U.S. Citizenship and Immigration Services or the Executive Office for Immigration Review. (2) Notice Unless emergency circumstances, such as a natural disaster or comparable exigency, dictate an immediate transfer, the Secretary— (A) shall provide at least 72-hour notice to the detainee in the language requested by the detainee and to the representative of record before transferring a detainee to another facility; and (B) may not transfer the detainee until the detainee has received any custody hearing for which the detainee is eligible. (3) Additional requirements (A) In general Absent emergency circumstances, such as a natural disaster or comparable exigency, the Secretary or law enforcement agent may not transfer a detainee who has an existing attorney-client relationship to another facility if the transfer of the detainee would— (i) impair the existing attorney-client relationship; (ii) prejudice the rights of the detainee in any legal proceeding; or (iii) affect the ability of the detainee to present evidence or witnesses. (B) Legal rights of detainees In any custody, bond, or removal decision involving a detainee detained under section 236 of the Immigration and Nationality Act ( 8 U.S.C. 1226 )— (i) legal precedent in the location of apprehension shall control any custody, bond, or removal decision