A trust may be created only to the extent its purposes are lawful and not contrary to public policy.