Legal framework for bankruptcy