Private agreements shall have no effect to contravene any law which concerns public order or good morals. But individuals may, in all cases in which it is not expressly or impliedly prohibited, renounce what the law has established in their favor, when such renunciation does not affect the rights of others, and is not contrary to the public good.