tofu

Options
I am on a quasi - Keto diet and was pleasantly surprised to find out that tofu has so few carbs. How can that be? Isn't the soy bean a legume and all the other legumes/beans I know of are really high in carbs.
Another quick question. Is there still a link between soy foods and breast cancer? I am high risk.