ตามกฎหมาย

according to the law

→ ตาม
phrase Rare #10,291
according to the law Used to describe something that complies with the law or is based on legal requirements. Often translated as “legally” depending on context.
TH: การแต่งงานครั้งนี้ถูกต้องตามกฎหมาย
EN: This marriage is legally valid.

แต่ไม่อาจเอาตัวเขากลับมาตามกฎหมายได้

But we can't legally bring him back.

— โหด เลว ดี (1986)

ตามกฎหมายรัฐบาลยึดมันคืนไปแล้ว

Legally, the government has already reclaimed it.

— ฆาตกรรมรัก หลังเขา (2022)

ตามกฎหมายแล้วเธอไม่มีสิทธิ์ที่จะปฏิเสธ

By law, you have no right to refuse.

— วิ่งสู้ฟัด (1985)

พวกเขามีทนายถูกต้องตามกฎหมาย

They have a licensed lawyer.

— จูโน่...โจ๋ป่องใจเกินร้อย (2007)

ตามกฎหมายแล้วคุณฆ่าผมไม่ได้

Legally, you can't kill me.

— หวงเฟยหง หมัดบินทะลุเหล็ก (1991)

ผมแค่พูดตามกฎหมายของประเทศนะ

I’m just stating what the law of the country says.

— ดวงดาวเล็กๆ บนผืนโลก (2007)