is it legal for my 2 year old daughter to sleep in her crib in the living room?
Normally, yes. But the fact you even asked in a legal forum suggests that there is some unusual reason in your case why you shouldn't, and posting here but leaving those facts out will not get you a useful answer.