Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
If someone regularly fasts the six days of Shawwal, are they obligated to fast them every year?
A person is not obligated to fast the six days of Shawwal every year, even if they have made it a habit. However, someone who regularly performs a good deed should not abandon it as long as they are able.
What is the ruling of Islamic Law on the prayer of zawal?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
It is recommended (sunnah) to pray four rakʿāt — either with a single tasleem or as two separate sets of two rakʿāt — immediately following the sun's decline from its zenith (zawāl). This prayer is distinct from the regular Sunnah prayer of Ẓuhr (sunnat al-ẓuhr al-rātibah), as explicitly stated by the Shāfiʿī jurists.
It is mentioned in Nihāyat al-Muḥtāj: "The prayer of zawāl is offered after the sun's decline — so were one to perform it before that, it would not count. It consists of two or four rakʿāt and is distinct from the Sunnah of Ẓuhr, as is evident from the fact that it is mentioned separately after the regular Sunnah prayers, and it becomes a make-up prayer (qaḍāʾ) if a long period of time passes by customary reckoning... Al-ʿAlqamī stated: 'Scholars refer to this as the Sunnah of Zawāl, and it is distinct from the four rakʿāt that constitute the Sunnah of Ẓuhr.' Our shaykh said: Al-Ḥāfiẓ al-ʿIrāqī stated that among those who explicitly affirmed its recommendation was al-Ghazālī in al-Iḥyāʾ, in the chapter on devotional litanies, noting that there is no tasleem between them — meaning there is no break between each pair of rakʿāt."
The time of the sun's decline (zawāl) marks the very beginning of the time for the Ẓuhr prayer.
And Allah the Almighty knows best.
What should someone do if they fasted for 30 days in their country, then traveled to a place where people are still fasting?
If a person completes 30 days of fasting in their country and then travels to another country where people are still fasting, they should continue fasting with them until they observe Eid. Even if they have already completed 30 days, he/she should abstain from eating and drinking and join the people of that country because he/she has now become part of that community.