Legal? Likely not, as you're turning one copy into two copies.
Would anyone pursue you? Likely not. No one is going to get a warrant to search your devices to see if you've photocopied your books before giving them away; unless you're sharing the digital files publically.
Do not share the digital files publically, as that is definetly not legal.
Pop. I just need ubuntu without snap, distro's default look doesnt matter since I'll just use sway/i3wm.
Though the fact that they're building their own tiling DE could make me stick with it fully when it comes out.