Directive (EU) 2016/800 of the European Parliament and of the Council of 11 May 2016 on procedural safeguards children for who are suspects or accused persons in criminal proceedings

Article 6 - Assistance by a lawyer
‘1. Children who are suspects or accused persons in criminal proceedings have the right of access to a lawyer in accordance with Directive 2013/48/EU. Nothing in this Directive, in particular in this Article, shall affect that right.
2. Member States shall ensure that children are assisted by a lawyer in accordance with this Article in order to allow them to exercise the rights of the defence effectively.
3. Member States shall ensure that children are assisted by a lawyer without undue delay once they are made aware that they are suspects or accused persons. In any event, children shall be assisted by a lawyer from whichever of the following points in time is the earliest:
(a) before they are questioned by the police or by another law enforcement or judicial authority;
(b) upon the carrying out by investigating or other competent authorities of an investigative or other evidence-gathering act in accordance with point (c) of paragraph 4;
(c) without undue delay after deprivation of liberty;
(d) where they have been summoned to appear before a court having jurisdiction in criminal matters, in due time before they appear before that court. [...]
Article 16 - Right of children to appear in person at, and participate in, their trial
1. Member States shall ensure that children have the right to be present at their trial and shall take all necessary measures to enable them to participate effectively in the trial, including by giving them the opportunity to be heard and to express their views.
2. Member States shall ensure that children who were not present at their trial have the right to a new trial or to another legal remedy, in accordance with, and under the conditions set out in, Directive (EU) 2016/343.‘
Article 18 - Right to legal aid
‘Member States shall ensure that national law in relation to legal aid guarantees the effective exercise of the right to be assisted by a lawyer pursuant to Article 6.‘