legally qualified