How were greek laws related to greek religion?