Ariz. Rev. Stat. § 25-409
A. Pursuant to section 25-402, subsection B, paragraph 2, a person other than a legal parent may petition the superior court for legal decision-making authority or placement of the child. The court shall summarily deny a petition unless it finds that the petitioner's initial pleading establishes that all of the following are true:
4. One of the following applies:
C. Pursuant to section 25-402, subsection B, paragraph 2, a person other than a legal parent may petition the superior court for visitation with a child. The superior court may grant visitation rights during the child's minority on a finding that the visitation is in the child's best interests and that any of the following is true:
D. A petition filed under subsection A or C of this section must be verified or supported by affidavit and must include detailed facts supporting the petitioner's claim. The petitioner must also provide notice of this proceeding, including a copy of the petition and any affidavits or other attachments, and serve the notice pursuant to the Arizona rules of family law procedure to all of the following:
E. In deciding whether to grant visitation to a third party, the court shall give special weight to the legal parents' opinion of what serves their child's best interests and consider all relevant factors including: