The specific legal basis is as follows:
People's Republic of China (PRC) Lawyers Law
Article 33 From the day when the criminal suspect is interrogated for the first time by the investigation organ or compulsory measures are taken, the entrusted lawyer has the right to meet the criminal suspect and defendant with the lawyer's practice certificate, the certificate of law firm, the power of attorney or the official letter of legal aid to learn about the relevant situation. Lawyers are not monitored when they meet criminal suspects and defendants.
Criminal Procedure Law of the People's Republic of China
Article 32 A criminal suspect or defendant may, in addition to exercising the right of defense, entrust one or two persons as defenders.
Article 33 A criminal suspect has the right to entrust a defender in a case of public prosecution from the date when the case is transferred for examination and prosecution. The defendant in a case of private prosecution has the right to entrust a defender at any time.
Article 96 A criminal suspect may hire a lawyer to provide him with legal advice, represent him in complaints and accusations after the first interrogation by the investigation organ or from the date when compulsory measures are taken. If the suspect is arrested, the lawyer hired can apply for bail pending trial. In cases involving state secrets, the criminal suspect's employment of a lawyer shall be approved by the investigation organ.
The entrusted lawyer has the right to know the charges charged by the criminal suspect from the investigation organ, to meet the criminal suspect in custody and to know the relevant information from the criminal suspect.