; or (B) a Federal, State, local, or private facility that has contracted (directly or indirectly) with U.S. Immigration and Customs Enforcement to detain noncitizens in Federal custody, including a facility of the United States Marshals Service that houses detained noncitizens, and regardless of any time limits that exist for the duration of the detention in such a facility. 3. Solitary confinement reforms (a) Use of solitary confinement and longer-term separation (1) Use of solitary confinement A detained noncitizen may not be placed in solitary confinement within a U.S. Immigration and Customs Enforcement or U.S. Customs and Border Protection facility unless such confinement— (A) is necessary to address immediate circumstances that pose a substantial and immediate threat; (B) is limited to the briefest term and the least restrictive conditions practicable, including— (i) not more than 8 hours immediately following an incident precipitating placement in solitary confinement; (ii) not more than 8 hours during any 24-hour period; and (iii) not more than 16 hours during any 7-day period; and (C) complies with the provisions of this section. (2) Use of longer-term separation A detained noncitizen may not be placed in longer-term separation within a U.S. Immigration and Customs Enforcement or U.S. Customs and Border Protection facility unless such separation— (A) is limited to the briefest term and the least restrictive conditions practicable, including not fewer than 10 hours of out-of-cell time every day; (B) is consistent with the rationale for placement and with the progress achieved by the detained noncitizen; (C) allows a detained noncitizen to have meaningful access to counsel and to participate in meaningful out-of-cell group programming opportunities in a classroom or equivalent setting, out-of-cell group recreation, and privileges that are similar to those available in the general population