Legal and institutional foundation of the Foreign Policy