Comparative legal analysis of residence conditions of foreigners in Ukraine and abroad | Synapse