at each facility who had reached a total period of time during the preceding quarter, separately listed, in confinement under (a)(2)(B)(iii), in protective custody under subsection (a)(2)(E), and in any other alternative units under (a)(2)(E) of less than 7 days, between 8 days and 15 days, between 16 days and 30 days, between 31 days and 45 days, between 46 days and 60 days, and for longer than 60 days, with a listing of the length of time of each person who had reached a period of time during the preceding quarter that exceeded a total of 60 days in such confinement or housing. (c) Private cause of action (1) In general Any person who is injured by a violation of subsection (a) may bring a civil action in the appropriate United States district court against any person, entity, or any other relevant party who violated such subsection for declaratory and injunctive relief, including directing the closure of the facility, building, or unit where the violation took place if that facility, building, or unit is in repeated and systemic noncompliance with this Act, and for such money damages as the court determines appropriate, including for emotional pain and suffering. The court may, in addition, award reasonable attorney’s fees and costs of the action to a prevailing plaintiff. (2) No liability for certain lockdowns No Federal agency shall be liable for a Federal agency-wide, facility-wide, or partial facility-wide lockdown that exceeded the 4-hour limit in subsection (a)(2)(B)(v) if the agency can demonstrate that— (A) the lockdown, and the length of the time of the lockdown, was necessary to address unexpected, extraordinary circumstances involving the detonation of an explosive device, an acute mass contamination or contagion situation, a violent riot, revolt, or insurrection involving a large number of people that resulted in the taking of a hostage, major property damage, or serious physical harm to a person, or other similar emergency of the same magnitude involving a large group of people