The California Court of Appeals held that parents can't agree to waive their obligations toward their children.
After the birth of their child, Mother and Father agreed that Father would pay Mother a lump sum of $6500 and that his parental rights would be terminated. In other words, he had no further child support obligations nor the right to seek visitation. The trial court found that the parents had made a careful consideration that the best interests of the child would not be furthered by the sporadic contact with Father that they envisioned for the future.
The court of appeals reversed, holding that "Parents have no right, in California, to waive or limit by agreement a child's right to support.... Public policy intervenes to protect the child's continued right to support. A judgment so terminating parental rights and the attendant obligation to support the child is void as a breach of public policy and as an act in excess of the court's jurisdiction." The court concluded that the trial court had no power to terminate rights. If you want, you can read Kristine M. v. David P., 2006 Cal. App. LEXIS 34 (January 13, 2006) here.