; and (B) not more than 5 days. (b) Biweekly review required (1) In general With respect to a noncitizen detained under paragraph (2) of subsection (a), not less frequently than every 14 days, the Secretary shall conduct an individualized review to determine whether the detained noncitizen continues to be subject to detention under that paragraph. (2) Release In the case of a determination under paragraph (1) that a pregnant noncitizen is no longer subject to detention under subsection (a)(2), not later than 24 hours after the Secretary makes the determination, the Secretary shall release the noncitizen. 3. Humane treatment of pregnant detained noncitizens while in detention and custody (a) Prohibition on restraint of pregnant detained noncitizens (1) Prohibition Except as provided in paragraph (2), restraints shall not be used on a noncitizen in the physical custody of the Department of Homeland Security who is known to be— (A) pregnant, including during— (i) labor; (ii) transport to a medical facility or birthing center; or (iii) delivery; (B) lactating; or (C) postpartum. (2) Exceptions (A) In general Notwithstanding paragraph (1), subject to subparagraph (B), use of a restraint on a detained noncitizen described in paragraph (1) may be permitted only in an extraordinary circumstance, except in the case of a medical contraindication, in which the facility administrator has ordered the use of the restraint after making an individualized determination that— (i) credible, reasonable grounds exist to believe the detained noncitizen presents an immediate and serious threat of hurting themselves, staff, or others