In the science of Maqasid al-Shari'ah (objectives of Islamic law): expand for me on the topic of how the legislation and its objectives align with divine attributes such as knowledge, mercy, wisdom, justice, etc., and also how they align with cosmic laws such as causality and others.