Legal consideration hold significant importance in the cloud migration process, encompassing contractual arrangements, data sovereignty concerns, and liability matters. Organizations need to make sure that their contracts with cloud service providers (CSPS) cover important aspects such as data ownership, usage rights, and indemnification clauses. In the ever-changing world of smart cities, the importance of ensuring secure, compliant, and efficient data migration across international borders has become more crucial than ever. This paper introduces a new framework that combines natural language processing (NLP), and blockchain smart contracts to tackle the intricate legal issues involved in moving data across borders in cloud settings. The framework starts by utilizing an NLP model to ensure compliance with data protection regulations, such as GDPR, CCPA, and DPDPA, which are specific to the destination jurisdiction of the data. After confirming the verification, the smart contract initiates the data transfer process, securely recording metadata such as file hash, timestamp, and transfer details on the blockchain, guaranteeing transparency and immutability. After the transfer, an international vendor at the destination verifies the data against the relevant legal requirements, guaranteeing compliance before storing it in the destination cloud. By adopting this approach, we can ensure the legal validity of cross-border data transfers, while also promoting trust and accountability among all parties involved in smart city ecosystems. The findings indicate that this framework has the potential to greatly reduce the risks associated with data sovereignty, liability, and contractual obligations when moving data to the cloud.