For any Legal requirements consult EASA 1321/2014 which is Aviation Law.
Requirements for Form4 post holders are outlined within 145.A.30 - Personel requirements.
Form 4 holders can be anyone the company nominates however they must have an understanding of the regulations, products, organisation and the accountability assumed as a QM form 4 holder.