Downlink and Uplink NOMA-ISAC with Signal Alignment