Yes, it is legal to communicate with foreign women online. The phrase to buy a bride doesn’t mean that you actually purchase a real human being. It just means that you spend money on communication with a woman.