The legal grounds: The oil was shipped by a US company in violation of US law. American companies can’t do business with an organisation that the US government has designated as a terrorist organisation. Thus American authorities siezed the ship and its cargo.
When real life does not match up with the description given by social rejects on a site notorious for infidelity