"Following your logic, a person could sell their kids into slavery and the kids would be bound by such 'contract.' "
This is exactly what is stated in Lev 24:55.
(Shrug) Do you agree with that logic?
If you do, then you support slavery. If you don't, then there is no point in you mentioning this Bible passage.