If relations between family members are not regulated by family legislation or agreement of the parties and in the absence of civil law norms directly regulating these relations, the norms of family and (or) civil law regulating similar relations (analogy of law) shall be applied to such relations, unless it does contradict their essence. In the absence of such norms, the rights and duties of family members shall be determined on the basis of general principles of family and civil law (analogy of law), as well as the principles of humanity, reasonableness, and justice.