A: I would find a local lawyer, would can work on getting a reasonable bail set very soon upon your release. While this seems as a straight forward question and answer, I would think that realistically speaking special circumstances would be involved if you were to be picked up immediately upon release from a mental health facility.
Your best bet is to make contact with a defense attorney close to you, ideally before your release.
A: It’s against the law in California to possess, produce or distribute “obscene matter” depicting children younger than 18. This would be a violation of PC 311, the state’s child pornography law. In cases where both parties are under 18, state courts have been known to show some leniency.
However, it could also be considered to be potentially sexual harassment.