Legal framework for collateral management