Yep, not a lawyer either so I've no idea how you square that circle. If it was physical goods it would "simply" be a case of not shipping to those territories.
In any case it's a secondary issue compared to actually charging and collecting the correct tax.