Nevertheless, the Fujiwara were not demoted by Daigo but actually became stronger during his reign. when did religious establishments obtain legal status