How a legal challenge would work