MADRID (AP) — Spain closes window for immigrants to apply for legal status under landmark measure that drew about 1 million applicants.