Structured Capital: Legal Frameworks for Complex Capital Transactions