Managing a nonprofit organization is governed by law called “Compagnies and associations code”. You can find the official text here.