Gibraltar encouraged by Spanish ‘pragmatism’ on post-Brexit ties