/* srangtechmai SSO legal pages. No external requests: system fonts only. */
:root {
  --bg: #fbfaf8;
  --text: #1c1b19;
  --muted: #5d5a54;
  --rule: #e2ded6;
  --link: #0b5cad;
  --link-hover: #083f78;
  --chip: #efece6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #ece9e4;
    --muted: #aaa59c;
    --rule: #34312d;
    --link: #8ab8f0;
    --link-hover: #b6d3f6;
    --chip: #24221f;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Leelawadee UI", "Thonburi", "Noto Sans Thai", "Noto Sans", sans-serif;
  line-height: 1.65;
}

:lang(th) { line-height: 1.8; }

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

header.site .name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
}

/* The wordmark is black; turn it white on the dark background. */
header.site .logo { display: block; }
@media (prefers-color-scheme: dark) {
  header.site .logo { filter: invert(1); }
}

nav.lang a, nav.pages a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  line-height: calc(44px - 0.7rem);
}

nav.lang a:hover, nav.pages a:hover { text-decoration: underline; }

h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.5rem;
}

p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

.updated { color: var(--muted); margin-bottom: 1.5rem; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible, nav a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
  border-radius: 4px;
}

section.lang-block + section.lang-block {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.links li { margin: 0; }
.links a {
  display: inline-block;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  text-decoration: none;
  min-height: 44px;
}
.links a:hover { text-decoration: underline; }

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
