Ask a Lawyer and Get Answers to Your Legal Questions
Thank you for your question.
The answer is No it is not legal for the lawyer you consulted in confidence to use information you gave the lawyer against you. The usual remedy is a motion to disqualify the attorney from representing the adverse party. Also, you can complain to the State Bar, see
I hope this information is helpful.