BRUSSELS (AP) — The European Union’s top court says key legislation allowing governments to collect data on citizens’ communications for law-enforcement purposes is invalid.