LONDON- Britain's government is deeply concerned about China's legislation on national security for Hong Kong, which risks undermining the principle of one nation, two systems, a spokesman for Prime Minister Boris Johnson said on Thursday.

"We are deeply concerned about China's legislation relating to national security ... We have been very clear that the security legislation risks undermining the principle of one nation, two systems," the spokesman said, adding that foreign minister Dominic Raab spoke to U.S. Secretary of State Mike Pompeo late on Wednesday.

"The steps taken by the Chinese government place the joint declaration under direct threat," he added, referring to the 1984 agreement between the UK and China that Hong Kong's high degree of autonomy would remain unchanged for 50 years.

(Reporting by Elizabeth Piper; editing by Stephen Addison) ((elizabeth.piper@thomsonreuters.com; 07979746994; Reuters Messaging: elizabeth.piper.thomsonreuters.com@reuters.net))