/* Lao'dly version B: the shell of the legal pages (their bodies are unchanged from main's 67a7218).
   Round 1: the same type and colour as the story (Lao Looped at display weight 300, gold for Lao, teal for links in
   the dark), so the legal pages read as the same site. Light mode follows look.md's Comfort paper (#f6f1e6, dark ink,
   gold deepened); dark is the story's night. */
@font-face { font-family: "Lao Looped"; src: url("fonts/noto-sans-lao-looped.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --bg: #f6f1e6; --ink: #1b1712; --ink-2: #4a4337; --muted: #5d564a; --accent: #0d5a49; --gold: #7a5200; --line: rgba(27,23,18,.12); --card: #fffdf8; --hdr: rgba(246,241,230,.86);
  --btn-bg: #1b1712; --btn-ink: #f6f1e6;
  --font: "Lao Looped", "Noto Sans Lao Looped", "Saysettha OT", "Lao MN", system-ui, sans-serif; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0c0907; --ink: #f6efe0; --ink-2: #cfc8b9; --muted: #a9a397; --accent: #8ff5d6; --gold: #f1d38a; --line: rgba(246,239,224,.12); --card: #110d0a; --hdr: rgba(13,10,8,.86); --btn-bg: #e8c565; --btn-ink: #1a1406; color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #0c0907; --ink: #f6efe0; --ink-2: #cfc8b9; --muted: #a9a397; --accent: #8ff5d6; --gold: #f1d38a; --line: rgba(246,239,224,.12); --card: #110d0a; --hdr: rgba(13,10,8,.86); --btn-bg: #e8c565; --btn-ink: #1a1406; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body.legal { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: .2em; }
.skip { position: absolute; left: 12px; top: -80px; padding: 10px 16px; background: var(--card); border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bar { max-width: 1040px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
header.lsite { position: sticky; top: 0; z-index: 5; background: var(--hdr); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
header.lsite .bar { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.125rem; letter-spacing: .05em; }
.brand img { display: block; width: 26px; height: 26px; }
nav.main { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: .9375rem; margin-left: auto; }
nav.main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
nav.main a:hover { color: var(--ink); background: var(--line); }
nav.main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
main.wrap { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 40px) 72px; }
main.wrap h1 { font-size: clamp(2.4rem, 1rem + 4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 300; }
main.wrap h2 { font-size: clamp(1.4rem, 1rem + 1vw, 1.75rem); line-height: 1.2; margin: 48px 0 12px; font-weight: 400; letter-spacing: -.01em; }
main.wrap h3 { font-size: 1.0625rem; margin: 24px 0 6px; font-weight: 600; }
main.wrap p, main.wrap li { color: var(--ink-2); }
main.wrap li { margin: 6px 0; }
main.wrap .lead { font-size: clamp(1.1875rem, 1rem + .5vw, 1.375rem); color: var(--ink); font-weight: 300; }
.muted { color: var(--muted); font-size: .9375rem; }
.pending { color: var(--gold); font-weight: 500; }
.draft { border: 1px solid var(--gold); border-radius: 16px; padding: 14px 18px; font-weight: 600; color: var(--ink); margin: 8px 0 14px; }
.draft span { display: block; font-weight: 400; color: var(--ink-2); font-size: .9375rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 22px 0; }   /* round 2: two cards a row, so '$7.99 a month' never wraps */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 4px 0; }
.card strong { font-size: 1.5rem; font-weight: 300; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .9375rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); text-decoration: none; font-weight: 600; }
.lao, [lang="lo"] { font-family: var(--font); color: var(--gold); font-size: 1.1em; }
footer.lsite { border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
footer.lsite .bar { padding-top: 28px; padding-bottom: 56px; }
footer.lsite ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
footer.lsite li a { display: inline-flex; min-height: 44px; align-items: center; }
footer.lsite a { color: var(--ink-2); }
@media (max-width: 640px) { nav.main { margin-left: 0; } nav.main a { padding: 0 10px; } }

/* ---------- round 3: the story's world carries into these pages (the judges: 'the shell breaks the spell'). The
   bodies are unchanged; only the shell around them changes. Dark: the story's night, a faint atmosphere over the top
   right, a still field of stars, the app's thread (teal, gold, teal) under the header, and the dok champa drawn very
   faintly behind the page. Light: the Comfort paper with a dawn of the same colours. No motion. ---------- */
body.legal { background: radial-gradient(110% 60% at 88% -12%, rgba(63,217,176,.11), transparent 62%), radial-gradient(80% 50% at -10% -6%, rgba(232,197,101,.07), transparent 58%), var(--bg); background-attachment: fixed; }
body.legal::after { content: ""; position: fixed; z-index: 0; right: -8vmin; bottom: -10vmin; width: 52vmin; height: 52vmin; pointer-events: none;
  background: url("mark/laodly-mark-dok-champa-black.svg") center / contain no-repeat; opacity: .05; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.legal::after { background-image: url("mark/laodly-mark-dok-champa-white.svg"); opacity: .045; }
  :root:not([data-theme="light"]) body.legal::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(1px 1px at 8% 14%, rgba(246,239,224,.7), transparent 70%), radial-gradient(1px 1px at 23% 61%, rgba(246,239,224,.45), transparent 70%), radial-gradient(1.4px 1.4px at 37% 28%, rgba(241,211,138,.6), transparent 70%),
      radial-gradient(1px 1px at 52% 83%, rgba(246,239,224,.4), transparent 70%), radial-gradient(1px 1px at 64% 19%, rgba(246,239,224,.55), transparent 70%), radial-gradient(1.2px 1.2px at 77% 47%, rgba(143,245,214,.5), transparent 70%),
      radial-gradient(1px 1px at 88% 72%, rgba(246,239,224,.45), transparent 70%), radial-gradient(1px 1px at 94% 9%, rgba(246,239,224,.6), transparent 70%), radial-gradient(1px 1px at 14% 92%, rgba(246,239,224,.35), transparent 70%),
      radial-gradient(1.3px 1.3px at 45% 6%, rgba(246,239,224,.5), transparent 70%), radial-gradient(1px 1px at 70% 96%, rgba(241,211,138,.4), transparent 70%), radial-gradient(1px 1px at 3% 44%, rgba(246,239,224,.4), transparent 70%); } }
:root[data-theme="dark"] body.legal::after { background-image: url("mark/laodly-mark-dok-champa-white.svg"); opacity: .045; }
header.lsite, main.wrap, footer.lsite { position: relative; z-index: 1; }
header.lsite::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(63,217,176,.7) 30%, rgba(232,197,101,.95) 50%, rgba(63,217,176,.7) 70%, transparent 96%); }
main.wrap h1::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 20px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, var(--card)), var(--card)); transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-1px); }
nav.main a { transition: color .2s, background .2s, box-shadow .2s; }
nav.main a:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn { transition: filter .2s, box-shadow .2s; } .btn:hover { filter: brightness(1.08); box-shadow: 0 8px 30px rgba(232,197,101,.25); }

/* crew round 4 (Lao cultural designer): the dark shell takes the app's black lacquer (look.md: #14100d to #0d0a08,
   cards #110d0a) in place of round 3's blue-black (the three dark tokens above), and the header's lower edge is the
   woven hem in antique gold (a DRAFT motif for the owner: 01-product/look/website-b/DRAFT-culture.md). The bodies are
   unchanged. */
header.lsite { border-bottom-color: transparent; }
header.lsite::after { content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 17px; pointer-events: none; background: rgba(138, 93, 0, .5);
  -webkit-mask: url("look/sinh-hem.svg") repeat-x center / auto 17px; mask: url("look/sinh-hem.svg") repeat-x center / auto 17px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) header.lsite::after { background: rgba(201, 162, 74, .55); } }
:root[data-theme="dark"] header.lsite::after { background: rgba(201, 162, 74, .55); }

/* ---------- crew round 4 (craft and layout engineer): one grid and one left edge with the home page's band and footer
   (style.css, the craft block). The header's bar, the body and the footer share one container: 1400 px of columns
   inside the same gutter as the home page (clamp(16px, 4vw, 64px); 16 px on phones; 20 px on a phone held sideways),
   so the wordmark, the headline, the text and the footer start at one x. Round 3 centred a 1040 px header over a 760 px
   body: two edges, neither the home page's. The body keeps its reading measure (46rem) from that edge. Only the shell
   changes: the bodies are byte-identical to main's 67a7218 (check.py). ---------- */
:root { --gutter: clamp(16px, 4vw, 64px); --wrap: 1400px; }
@media (max-width: 760px) and (orientation: portrait), (max-width: 760px) and (min-height: 501px) { :root { --gutter: 16px; } }
@media (max-height: 500px) and (orientation: landscape) { :root { --gutter: max(20px, env(safe-area-inset-left)); } }
.bar, main.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main.wrap > * { max-width: 46rem; }
main.wrap > .cards, main.wrap > table { max-width: 60rem; }
@media (max-width: 640px) { nav.main { margin-left: -10px; } }   /* the first link's words, not its padding, on the edge */
@media (hover: hover) and (pointer: fine) {
  .brand { transition: color .2s; } .brand:hover { color: var(--gold); }
  footer.lsite li a, footer.lsite p a { transition: color .2s; } footer.lsite li a:hover, footer.lsite p a:hover { color: var(--ink); text-decoration-thickness: 2px; }
}

/* crew round 5 (craft and layout engineer): the four plans as two rows of two, never three and one left alone on a second
   row (judge 2 at 1440: the Plus card sat by itself). One column on a phone. The page's words are unchanged. */
main.wrap > .cards { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { main.wrap > .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
