:root {
  --ink: #101310;
  --muted: #657068;
  --paper: #f4f5f1;
  --paper-bright: #fbfcf9;
  --line: rgba(17, 24, 18, .13);
  --green: #087642;
  --green-deep: #0d2d1e;
  --max: 880px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(16,166,94,.09), transparent 24rem),
    linear-gradient(180deg, var(--paper-bright), var(--paper));
  font-family: "Noto Sans Thai", Tahoma, Arial, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .7rem 1rem; border-radius: .6rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.legal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1rem, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250,251,248,.9);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: max-content; text-decoration: none; line-height: 1; }
.brand-mark { width: 2.8rem; height: 2.8rem; overflow: hidden; border: 1px solid rgba(8,118,66,.13); border-radius: .9rem; background: #f4f6f2; box-shadow: 0 8px 20px rgba(8,118,66,.14); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.28); }
.brand b { display: block; font-size: 1.05rem; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .34rem; color: #556059; font: 700 .55rem/1 Arial, sans-serif; letter-spacing: .2em; }
.home-link { padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--green); font-size: .82rem; font-weight: 800; text-decoration: none; }
.home-link:hover, .home-link:focus-visible { color: white; background: var(--green); outline: none; }
main { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 4.5rem 0 5rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--green); font: 800 .72rem/1.2 Arial, sans-serif; letter-spacing: .18em; }
h1 { max-width: 16ch; margin: 0; font-size: clamp(2.5rem, 8vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 65ch; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; }
.updated { display: inline-flex; margin-top: 1.25rem; padding: .35rem .7rem; border-radius: 999px; background: #e2eee6; color: #075d35; font-size: .78rem; font-weight: 800; }
.legal-content { display: grid; gap: 1rem; margin-top: 3rem; }
.legal-content section { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.35rem; background: rgba(255,255,255,.72); box-shadow: 0 18px 44px rgba(12,24,16,.06); }
h2 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 4vw, 1.65rem); line-height: 1.25; letter-spacing: -.025em; }
p { margin: .65rem 0 0; }
ul { margin: .7rem 0 0; padding-inline-start: 1.25rem; }
li + li { margin-top: .35rem; }
.contact-card { color: white; background: linear-gradient(145deg, var(--green-deep), #0b110d) !important; }
.contact-card a { color: #8ee0ae; font-weight: 800; }
.legal-footer { padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .78rem; }
.legal-footer a { color: var(--green); font-weight: 800; }

@media (max-width: 560px) {
  .legal-header { padding: calc(.75rem + env(safe-area-inset-top)) .8rem .75rem; }
  .brand-mark { width: 2.45rem; height: 2.45rem; }
  .brand b { font-size: .94rem; }
  .brand small { font-size: .48rem; }
  .home-link { padding: .52rem .7rem; font-size: .75rem; }
  main { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
