legal ground
Article 577 of the Civil Code: If a party fails to perform its contractual obligations or fails to meet the contract obligations, it shall bear the liabilities for breach of contract such as continuing to perform, taking remedial measures or compensating for losses. Article 584 Where a party fails to perform its contractual obligations or fails to perform its contractual obligations in conformity with the contract, thus causing losses to the other party, the amount of damages shall be equivalent to the losses caused by the breach of the contract, including the benefits that can be obtained after the performance of the contract; However, it shall not exceed the losses that the breaching party foresaw or should have foreseen when concluding the contract.