The underlying principle are actually simple:
Good person or companies do not take profit from misfortune of others.
Good person or companies take their share of profit when others are also profiting / benefiting from the arrangement.
Good person or companies will try to help others when they fell into misfortune.
During ancient and medieval times, people fell into poverty or even slavery and serfdom when they cannot repay their debt to their creditor.
This are the things which modern law in (most of) modern countries try to avoid, thus bankruptcy law was invented. To protect the basic rights of people and companies when they cannot repay their debt.
Within the law, the borrower(s) has rights to gain ownership and sold the assets under the bankrupted company but not more than that. The owner(s) / shareholder(s) of the company still have ownership of their own private assets (home etc) and putting them into slavery and serfdom is impossible.
There are however still mafia kind of arrangement operating informally under the hood, leveraging the ignorance and fear of the common people. Thus this 'mafia way of making money' is the best representation of 'what riba is' on today's society.
https://www.youtube.com/watch?v=8MjDEuTuRD0