I was riding on the sidewalk-not the road- going northbound. The sidewalk was alongside the southbound lane, so I was, I supppose, on the wrong side but that's unclear since I was not in the road in the first place.
Since the sidewalk is also considered part of the "highway" a light was required pursuant to VC 21201(d). As such, you were committing an infraction which justified the officer's detention for reasonable suspicion that you were committing a violation of the law.
This means the officer had to also travel northbound in the southbound lane, obviously on the actual road, thus breaking the law. He also parked illegally given he was faced north on the southbound side.
He can do that to catch violators. If all a suspect had to do was cross the street to avoid capture, that'd be silly, wouldn't it?
He gets out of the vehicle and orders my hands behind my back. He tells me I gave him a fake name.
If you had no identification on you and he was unable to verify your identity, he could not very well issue you a citation. Plus, if the name and DOB you provided does not match any ID or DL in CLETS he has reasonable suspicion to detain further while he investigates.
He continues probing, trying to get me to admit I had at least a few drinks. I said I had not.
Understand that if you had been drinking, he could smell it. You say you told the officer you did not, but if you had been your body would emit a very distinctive aroma.
He continues to be very hostile. We basically sit in the car for a good hour (me having to urinate badly the entire time) and go around in circles until we just stop.
I seriously doubt that it was an hour. I can't imagine what you would argue about for an hour, or why the officer would waste that might time. But, that should be easy enough to verify with CAD (dispatch) records.
The actual charges I face are minor and likely can be reduced down to very little when I show up in court.
Reduced to what? These infractions are about as low as these things go.
But, the entire incident was quite disturbing. What, if any, action should I consider taking?
If the officer was rude and unprofessional, you can complain to the agency. However, his detention appears to be perfectly lawful. The one for riding on the wrong side of the road may be a bust, however, unless he observed you on the road at some point. You are free to argue this point at court.
What code sections were you actually cited for violating?