Legal framework offshore and onshore