obligated

1a. You are legally obligated to repay the loan.
1b. You are obligated legally to repay the loan.
2a. You are obligated by law to repay the loan.
2b. You are by law obligated to repay the loan.
Please correct the above.
Thanks

1s and 2s mean different things to me but they are all OK to say!