Legal implications of the Brexit