You do not want to gather water from the ocean.
Shorelines are natures protein skimmer. All kinds of nasty junk gathers there, to include man made chemicals and toxins that will be havoc in our closed systems.
The only way I’d suggest collecting would be if you could go far out into the ocean. Even then I’d want to run it through some sort of filter...
uv at the least. That’s how the big box stores do it when they sell it to you.