Cooperatives and social enterprises: comparative and legal profiles