Is it legal to sign the EU’s pact with Ukraine?