Do you know about gap insurance?

Someone I know was in an car accident and it was the other persons fault and the one at fault, their insurance only covered as much as my friends car was supposedly “worth” which was less than what he had left to pay on his car.. is that illegal?

Do you know about gap insurance?
Post Opinion