answer some questions people may have about civil versus criminal contempt:
"Because compliance is the point, civil contempt confinement can theoretically last indefinitely. The Federal Judicial Center describes civil contempt incarceration as potentially of indefinite duration because it continues for as long as the person refuses to act."
"The defining feature of civil contempt is the purge condition. Every civil contempt order must include a specific action you can take to end your confinement. Legal scholars describe this by saying the key to the cell is in the contemnors own pocket, meaning youll be released the moment you do what the court requires. If youre jailed for withholding financial records, handing over those records opens the door. If youre behind on support payments, paying the arrears ends the confinement. The jail time isnt a set number of days; it lasts until you comply or until the court decides continued confinement has lost its coercive effect."
And for criminal contempt:
"Criminal contempt looks and feels more like a traditional criminal prosecution. Instead of trying to make you comply with a future obligation, the court punishes you for something you already did. A judge might impose criminal contempt for repeatedly disrupting proceedings, threatening a witness, or willfully defying an injunction after being warned. The sentence is a fixed number of days or months, and you serve it regardless of whether you later apologize or comply."
https://legalclarity.org/do-you-go-to-jail-for-contempt-of-court-civil-vs-criminal/