How can the legal system effectively address the root causes behind declining sex ratios in India?

Judicial authorities have expressed worry over worsening sex ratios. I wish to understand what role the courts can play in tackling the underlying reasons for this issue.