Anti-terror pact aims to make Europe safer without compromising civil liberties