Spinor groups with good reduction