The judge kept Maduro’s wife in jail, citing flight risk, danger, and a proposed private-security plan the court said the law did not allow.