/* Duckling Sort — the legal pages (privacy policy, EN /privacy/ and TH /th/privacy/).
   Load AFTER /assets/site.css. It reuses the site's tokens and generic pieces (.top, .brand,
   .sign, .perch, .perks/.perk/.art/.tint-*, .deco, .water, .pad, .cta-card, footer.site,
   .parade, .skip) and positions all of its own art, so a later change to the landing's .hero
   or .cta cannot move anything here. Nothing on these pages loads from another host. */
:root {
  --card-shadow: 0 6px 0 rgba(15,92,99,.1), 0 18px 30px -18px rgba(15,92,99,.35);
  --measure: 68ch;
  --mint: #dcf5e3; --mint-edge: #b5e4c3;
  --sun: #fff3d1; --sun-edge: #f3d98a;
  --zebra: #f6fbfa;
  --nav-room: 5.5rem;
}
/* Focus ring: ink reaches 3:1 on every light surface here (the site's orange does not); duck on the dark footer */
:focus-visible { outline-color: var(--ink); }
footer.site :focus-visible { outline-color: var(--duck); }
/* Anchors and keyboard focus land below the sticky glass bar (scroll-padding on html; no scroll-margin, or the two would add up) */
html { scroll-padding-top: var(--nav-room); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero: a short sky over the game's lake, the sign in the middle, two ducks on a pier */
.legal-hero { position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 6.75rem 0 12.5rem; background: linear-gradient(#3ea9f3, #7fd2fb 55%, #51c5fa); }
.lh-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lh-scene img { position: absolute; image-rendering: pixelated; height: auto; }
.lh-scene .lh-lake { left: 0; right: 0; bottom: 0; width: 100%; height: 52%; object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 34%); mask-image: linear-gradient(transparent, #000 34%); }
.lh-cloud { opacity: .95; }
.lh-cloud.near { width: 44rem; top: 3.5rem; left: -9rem; animation: legal-drift 38s ease-in-out infinite alternate; }
.lh-cloud.far { width: 36rem; top: 1.25rem; right: -7rem; opacity: .8; animation: legal-drift 46s ease-in-out infinite alternate-reverse; }
@keyframes legal-drift { to { transform: translateX(3.5rem); } }
.lh-scrim { position: absolute; inset: 0;
  background: radial-gradient(ellipse 46rem 19rem at 50% 12.5rem, rgba(240,251,255,.78), rgba(240,251,255,.5) 55%, rgba(240,251,255,0) 100%); }
.lh-scene .lh-pier { width: 22rem; right: 4%; bottom: -1.4rem; filter: drop-shadow(0 8px 0 rgba(9,56,80,.2)); }
.lh-scene .lh-duck { filter: drop-shadow(0 6px 0 rgba(9,56,80,.18)); transform-origin: 50% 100%; }
.lh-scene .lh-duck.sailor { width: 7.5rem; right: calc(4% + 11.5rem); bottom: 3.85rem; animation: legal-bob 2.8s ease-in-out infinite; }
.lh-scene .lh-duck.pink { width: 6.8rem; right: calc(4% + 3.2rem); bottom: 3.85rem; animation: legal-bob 3.2s ease-in-out .7s infinite; }
.lh-scene .lh-bloom { width: 6.5rem; left: 1.5%; bottom: -1.2rem; }
.lh-scene .lh-bloom.tulips { width: 5.2rem; left: calc(1.5% + 5.6rem); bottom: -1.5rem; }
.lh-scene .lh-bush { width: 6rem; left: 24%; bottom: -1.9rem; }
@keyframes legal-bob { 50% { transform: translateY(-7px) scaleY(1.02); } }

.legal-hero .wrap { position: relative; z-index: 1; }
.legal-hero .sign { max-width: calc(100% - 2.5rem); margin-top: 1.4rem; padding: .6rem 2.6rem .8rem; }
.legal-hero .sign h1 { margin: 0; font: 600 clamp(2.1rem, 5vw, 3.5rem)/1.15 var(--display); color: #fff3cf; letter-spacing: .01em; overflow-wrap: anywhere;
  text-shadow: 0 3px 0 #4a2710, 3px 0 0 #4a2710, -3px 0 0 #4a2710, 0 -3px 0 #4a2710, 2px 2px 0 #4a2710, -2px 2px 0 #4a2710, 2px -2px 0 #4a2710, -2px -2px 0 #4a2710, 0 7px 0 rgba(40,20,5,.3); }
:lang(th) .legal-hero .sign h1 { line-height: 1.4; letter-spacing: 0; overflow-wrap: normal; }
.lh-kicker { margin: 1.7rem auto 1rem; max-width: 36rem; font: 500 clamp(1.15rem, 2.1vw, 1.4rem)/1.4 var(--display); color: var(--pond-deep);
  text-shadow: 0 2px 0 rgba(255,255,255,.75); }
.lh-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 0; max-width: 100%; margin: 0;
  padding: .55rem .5rem; background: rgba(255,255,255,.9); border-radius: 1.1rem; box-shadow: 0 4px 0 rgba(15,92,99,.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 .98rem/1.35 var(--display); color: var(--ink); }
.lh-meta > span { display: inline-flex; align-items: center; gap: .5rem; padding: .15rem .9rem; text-align: left; }
.lh-meta > span + span { border-left: 2px solid var(--line); }
.lh-meta img { flex: none; image-rendering: pixelated; }
.lh-meta time { font-weight: 600; white-space: nowrap; }

/* The page body: one calm shallows gradient under the summary and the policy. Art stays at the
   edges and along the water at the bottom, never behind text. overflow: clip (not hidden) keeps
   the contents list sticky and lets #anchors scroll the page instead of this box. */
.legal-body { position: relative; overflow: hidden; overflow: clip; isolation: isolate; padding: 3.25rem 0 13rem;
  background: linear-gradient(#bfe9ef, #dcf3f6 14rem, #eaf8fa 30rem, #effaf8 70%, #d8f3f5 94%, #bfe9ef); }
.legal-body > .wrap { position: relative; z-index: 2; }
.legal-body .deco .water { height: 10rem; }
.legal-body .deco .lg-tree { width: 12rem; bottom: 6.5rem; height: auto; }
.legal-body .deco .lg-tree.l { left: -2.5rem; }
.legal-body .deco .lg-tree.r { right: -2.5rem; width: 11rem; }
.legal-body .deco .lg-lamp { width: 2.8rem; left: 9rem; bottom: 7.4rem; }
.legal-body .deco .pad.p1 { left: 18%; bottom: 1.6rem; }
.legal-body .deco .pad.p2 { left: 52%; bottom: 3.6rem; width: 4.5rem; }
.legal-body .deco .pad.p3 { right: 20%; bottom: 1rem; }
.legal-body .deco .lg-cloud { width: 30rem; top: 1.5rem; right: -8rem; opacity: .55; }

/* At a glance: six cards in the landing's perk style */
.glance-head { text-align: center; margin: 1.5rem 0 2.4rem; }
.glance-head .sign { max-width: calc(100% - 2.5rem); padding: .45rem 2rem .6rem; }
.glance-head .sign h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
.glance-head .sign .perch { height: 2.8rem; top: -2.3rem; }
.perks.glance { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.glance .perk { grid-template-columns: 6rem minmax(0, 1fr); gap: .85rem; padding: 1rem 1.15rem; }
.glance .art { width: 6rem; height: 5.4rem; }
.glance .perk h3 { font-size: 1.12rem; line-height: 1.3; }
@media (min-width: 40.001rem) { .glance .perk { align-items: start; } }
.glance .perk p { font-size: .96rem; }
.glance .art .illo { width: 88%; }
.glance .art .who { width: 3rem; left: .7rem; bottom: .25rem; }
.glance .art .what { width: 2.5rem; height: 2.5rem; right: .45rem; top: .45rem; }
.glance .art .what.x3 { width: 3rem; height: 3rem; right: .25rem; top: .2rem; }
.glance .art .badge { width: 1.9rem; height: 1.9rem; right: .05rem; top: .1rem; padding: .3rem; box-sizing: content-box;
  background: #fff; border-radius: 50%; box-shadow: 0 2px 0 rgba(15,92,99,.15); z-index: 1; }
.glance-note { max-width: 46rem; margin: 1.6rem auto 0; padding: .75rem 1.2rem; text-align: center; font-size: .98rem; color: var(--ink-soft);
  background: rgba(255,255,255,.85); border-radius: 1.1rem; box-shadow: 0 4px 0 rgba(15,92,99,.08); }

/* The policy: contents on the left, one white card per numbered section on the right */
.policy { margin-top: 3.5rem; display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.toc { position: sticky; top: var(--nav-room); max-height: calc(100vh - var(--nav-room) - 1rem); overflow: auto; overscroll-behavior: contain;
  background: rgba(255,255,255,.96); border-radius: 1.4rem; box-shadow: var(--card-shadow); padding: 1rem .7rem 1rem .8rem; scrollbar-width: thin; }
.toc summary { list-style: none; display: flex; align-items: center; gap: .55rem; padding: .15rem .45rem .7rem; font: 600 1.15rem/1.3 var(--display); color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary img { image-rendering: pixelated; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.toc a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .6rem; align-items: start; padding: .34rem .5rem; border-radius: .8rem;
  color: var(--ink); text-decoration: none; font: 500 .93rem/1.35 var(--display); transition: background-color .15s; }
.toc a:hover { background: var(--foam); color: var(--ink); }
.toc a[aria-current] { background: #fff4d6; box-shadow: inset 0 0 0 2px #ffe08a; }
.toc-num { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: -.05rem; border-radius: 50%; background: var(--duck);
  font: 600 .78rem/1 var(--display); color: var(--ink); box-shadow: 0 2px 0 #d69a00; }
:lang(th) .toc a { line-height: 1.45; }
/* Beside the text the list is compact, so all 20 entries fit a laptop window, and its heading stays
   pinned while the list scrolls (only here is .toc a scroll container) */
@media (min-width: 60.001rem) {
  .toc summary { pointer-events: none; position: sticky; top: -1rem; z-index: 1; background: #fff; padding-bottom: .45rem; }
  .toc ol { gap: 0; }
  .toc a { padding: .22rem .5rem; }
}

/* Section cards */
.doc { min-width: 0; }
.clause { container: clause / inline-size; position: relative; background: var(--paper); border-radius: 1.4rem;
  padding: 1.9rem 2.3rem 2.1rem; box-shadow: var(--card-shadow); }
.clause + .clause { margin-top: 1.5rem; }
.clause > h2 { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem; margin: 0 0 1.2rem;
  font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.25; letter-spacing: -.005em; }
:lang(th) .clause > h2 { line-height: 1.4; letter-spacing: 0; }
.clause-mark { position: relative; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 1.05rem;
  background: var(--foam); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); }
.clause-mark img { display: block; image-rendering: pixelated; }
.clause-num { position: absolute; left: -.6rem; top: -.6rem; min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: 99px;
  background: var(--duck); color: var(--ink); font: 600 .8rem/1.6rem var(--display); text-align: center; letter-spacing: 0;
  box-shadow: 0 2px 0 #d69a00, 0 0 0 3px var(--paper); }

/* Reading text: a comfortable measure, calm spacing, Thai at 1.8 */
.doc p, .doc ul, .doc ol, .doc .factbox, .doc .note { max-width: var(--measure); }
.doc p { margin: 0 0 1rem; }
.doc h3 { margin: 1.8rem 0 .6rem; font-size: 1.2rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.doc h3::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .55rem; vertical-align: .08em;
  border-radius: .2rem; background: var(--pond); box-shadow: 0 2px 0 #3fb3aa; }
.clause > h2 + h3, .clause > h2 + * + h3 { margin-top: 1.2rem; }
.doc h4 { margin: 1.5rem 0 .5rem; font: 500 1.05rem/1.4 var(--display); color: var(--ink); }
:lang(th) .doc h4 { line-height: 1.5; }
.doc strong { font-family: var(--display); font-weight: 500; color: var(--ink); }
.doc ul, .doc ol { margin: 0 0 1.1rem; padding: 0 0 0 1.45rem; }
.doc ul { list-style: none; }
.doc li { margin: .35rem 0; }
.doc ul > li { position: relative; }
.doc ul > li::before { content: ""; position: absolute; left: -1.15rem; top: .6em; top: calc(.5lh - .27rem); width: .54rem; height: .54rem;
  border-radius: 50%; background: var(--duck); box-shadow: 0 1.5px 0 #d69a00; }
.doc ol > li::marker { font: 600 .95em var(--display); color: var(--pond-deep); }
.doc li > ul, .doc li > ol { margin: .3rem 0 .2rem; }
.doc ul ul > li::before { background: var(--paper); box-shadow: inset 0 0 0 2px #d69a00; }
.doc a { overflow-wrap: anywhere; }
.cite { white-space: nowrap; }
.clause > :last-child, .note-body > :last-child, .factbox dd > :last-child { margin-bottom: 0; }

/* Settings paths as little keys: `Settings › [your name] › iCloud` */
.path { padding: .06rem .45rem; border-radius: .5rem; background: #f3f8f8; color: var(--ink); white-space: normal;
  box-shadow: inset 0 0 0 1.5px var(--line), 0 2px 0 var(--line); font: 500 .9em/1.5 var(--display);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }

/* The facts box that ends sections 3–11: a small definition list */
.factbox { margin: 1.7rem 0 0; padding: .35rem 1.25rem; background: var(--foam); border-radius: 1.1rem; box-shadow: inset 0 0 0 2px var(--line); }
.factbox > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .15rem 1.1rem; padding: .7rem 0; }
.factbox > div + div { border-top: 2px dashed var(--line); }
.factbox dt { font: 500 .97rem/1.55 var(--display); color: var(--pond-deep); }
.factbox dd { margin: 0; font-size: 1rem; }
.factbox dd > :last-child { margin-bottom: 0; }

/* Callouts: mint = you're in control, sun = good to know */
.note { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .85rem; align-items: start; margin: 1.3rem 0;
  padding: .95rem 1.2rem; border-radius: 1.1rem; background: var(--mint); box-shadow: inset 0 0 0 2px var(--mint-edge); }
.note.sun { background: var(--sun); box-shadow: inset 0 0 0 2px var(--sun-edge); }
.note > img { display: block; margin-top: .1rem; image-rendering: pixelated; }
.note-body > :last-child { margin-bottom: 0; }
.note-body p { margin: 0 0 .6rem; }

/* Data tables (the overview in section 2, retention in section 15) */
.table-wrap { margin: 1.3rem 0 1.5rem; border: 2px solid var(--line); border-radius: 1.1rem; overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; line-height: 1.5; }
.data th, .data td { padding: .7rem .8rem; text-align: left; vertical-align: top; }
.data thead th { background: var(--foam); border-bottom: 2px solid var(--line); font: 500 .86rem/1.35 var(--display); color: var(--pond-deep); }
.data thead th:first-child { border-top-left-radius: .95rem; }
.data thead th:last-child { border-top-right-radius: .95rem; }
.data tbody th { font: 500 .95rem/1.4 var(--display); color: var(--ink); min-width: 7.5rem; }
.data.slim thead th:first-child { width: 31%; }
.data tbody tr + tr > * { border-top: 1px solid var(--line); }
.data tbody tr:nth-child(even) > * { background: var(--zebra); }
.data tbody tr:last-child > :first-child { border-bottom-left-radius: .95rem; }
.data tbody tr:last-child > :last-child { border-bottom-right-radius: .95rem; }
.data td > :last-child, .data th > :last-child { margin-bottom: 0; }
.data .path { font-size: .88em; }
:lang(th) table.data { line-height: 1.65; }

/* The overview (a table of 4+ columns) always reads as feature cards: one card per table row,
   each column header as a small label above its text, two cards side by side when the section
   card is wide enough. It stays a real <table> (th scope, caption) for screen readers, and print
   keeps it a plain table. A .slim table (2–3 columns) stays a table down to a 26rem card. */
@media screen {
  .table-wrap:has(> .data:not(.slim)) { overflow: visible; border: 0; border-radius: 0; margin: 1.4rem 0 1.6rem; }
  .data:not(.slim) { display: block; font-size: .95rem; }
  .data:not(.slim) > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data:not(.slim) > tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .data:not(.slim) > tbody > tr { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 1.15rem;
    overflow: hidden; background: var(--paper); box-shadow: 0 3px 0 var(--line); }
  .data:not(.slim) > tbody > tr > * { display: block; background: none !important; border: 0 !important; border-radius: 0 !important; }
  .data:not(.slim) > tbody > tr > th { min-width: 0; padding: .75rem 1.05rem .7rem; background: var(--foam) !important;
    box-shadow: inset 0 -2px 0 var(--line); font: 500 1.08rem/1.35 var(--display); color: var(--ink); }
  .data:not(.slim) > tbody > tr > td { padding: .6rem 1.05rem .65rem; }
  .data:not(.slim) > tbody > tr > td + td { border-top: 1px dashed var(--line) !important; }
  .data:not(.slim) > tbody > tr > td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: .1rem;
    font: 500 .82rem/1.5 var(--display); color: var(--pond-deep); }
  /* one card per line, wide: the label sits beside its text */
  @container clause (min-width: 30rem) and (max-width: 41.999rem) {
    .data:not(.slim) > tbody > tr > td { padding-left: 10.75rem; }
    .data:not(.slim) > tbody > tr > td::before { float: left; width: 8.75rem; margin: 0 0 0 -9.7rem; line-height: 1.8; }
    .data:not(.slim) > tbody > tr > td::after { content: ""; display: block; clear: both; }
  }
  /* two cards per line; an odd last card spans the line and splits its fields into two columns */
  @container clause (min-width: 42rem) {
    .data:not(.slim) > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data:not(.slim) > tbody > tr:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
    .data:not(.slim) > tbody > tr:last-child:nth-child(odd) > th { grid-column: 1 / -1; }
    .data:not(.slim) > tbody > tr:last-child:nth-child(odd) > td:nth-of-type(2) { border-top: 0 !important; }
    .data:not(.slim) > tbody > tr:last-child:nth-child(odd) > td:nth-of-type(even) { box-shadow: -1px 0 0 var(--line); }
    .data:not(.slim) > tbody > tr:last-child:nth-child(odd) > td:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
  }
  .data:not(.slim) .path { font-size: .9em; }
}

@media screen {
  @container clause (max-width: 26rem) {
    .clause .table-wrap { overflow: visible !important; border: 0 !important; border-radius: 0 !important; }
    .clause .data, .clause .data > tbody, .clause .data > tbody > tr, .clause .data > tbody > tr > * { display: block; }
    .clause .data > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .clause .data > tbody > tr { margin: 0 0 .9rem; border: 2px solid var(--line); border-radius: 1.1rem; overflow: hidden; background: var(--paper); }
    .clause .data > tbody > tr > * { background: none !important; border: 0 !important; border-radius: 0 !important; }
    .clause .data > tbody > tr > th { padding: .75rem 1rem; background: var(--foam) !important; box-shadow: inset 0 -2px 0 var(--line); font-size: 1.02rem; }
    .clause .data > tbody > tr > td { padding: .55rem 1rem; }
    .clause .data > tbody > tr > td + td { border-top: 1px dashed var(--line) !important; }
    .clause .data > tbody > tr > td::before { content: attr(data-label); content: attr(data-label) / ""; display: block; float: none; width: auto; margin: 0; font: 500 .84rem/1.6 var(--display); color: var(--pond-deep); }
  }
  @container clause (max-width: 34rem) {
    .factbox > div { grid-template-columns: 1fr; gap: .1rem; }
  }
}

/* Contact band: the landing's closing scene with its own positions */
.legal-contact { position: relative; overflow: hidden; isolation: isolate; padding: 4.5rem 0 15rem; text-align: center;
  background: linear-gradient(#94d8d0, #c9ecfb 6rem, #c9ecfb); }
.legal-contact .deco .bg-scene { -webkit-mask-image: linear-gradient(transparent, #000 6rem); mask-image: linear-gradient(transparent, #000 6rem); }
.legal-contact .deco .wash { background: linear-gradient(rgba(240,251,255,.62), rgba(240,251,255,.22)); }
.legal-contact .deco .lc-pier { width: 28rem; left: 50%; margin-left: -14rem; bottom: -1.6rem; height: auto; filter: drop-shadow(0 8px 0 rgba(9,56,80,.18)); }
.legal-contact .deco .lc-duck { height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 0 rgba(9,56,80,.16)); animation: legal-bob 3s ease-in-out infinite; }
.legal-contact .deco .lc-duck.sailor { width: 8rem; left: calc(50% - 9.6rem); bottom: 5rem; }
.legal-contact .deco .lc-duck.pink { width: 7.2rem; left: calc(50% + 1.6rem); bottom: 5rem; animation-delay: .6s; }
.legal-contact .cta-card { max-width: min(38rem, 100%); padding: 2rem 2.4rem 1.9rem; }
.legal-contact .cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.legal-contact .cta-card p { max-width: 30rem; }
.mail-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; max-width: 100%; padding: .75rem 1.4rem .8rem;
  border-radius: 99px; background: var(--play); color: #3b1703; text-decoration: none; font: 600 1.1rem/1.2 var(--display);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 #c5520a; overflow-wrap: anywhere; transition: transform .12s, box-shadow .12s, background-color .15s; }
.mail-btn:hover { color: #3b1703; background: #ff8a33; }
.mail-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 1px 0 #c5520a; }
.mail-btn img { flex: none; image-rendering: pixelated; }
.legal-contact .lc-small { margin: 1.1rem auto 0; font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
footer.site a[aria-current="page"] { text-decoration-color: var(--duck); }
/* The parade walks out past the right edge; clip it sideways only, so the ducks above the footer
   still show and the page never scrolls sideways (site.css leaves the landing page as it is). */
footer.site { overflow-x: clip; }

/* Wide to narrow */
@media (max-width: 72rem) {
  .lh-scene .lh-pier { width: 17rem; right: 2%; bottom: -1.1rem; }
  .lh-scene .lh-duck.sailor { width: 5.8rem; right: calc(2% + 8.8rem); bottom: 2.9rem; }
  .lh-scene .lh-duck.pink { width: 5.2rem; right: calc(2% + 2.4rem); bottom: 2.9rem; }
  .lh-scene .lh-bush { display: none; }
  .legal-hero { padding-bottom: 11rem; }
}
@media (max-width: 64rem) {
  .perks.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-body .deco .lg-lamp { display: none; }
}
@media (max-width: 60rem) {
  .policy { display: block; margin-top: 3rem; }
  .toc { position: static; max-height: none; overflow: visible; margin: 0 0 1.5rem; padding: .35rem .7rem; }
  .toc summary { cursor: pointer; padding: .7rem .45rem; }
  .toc summary::after { content: "+"; content: "+" / ""; margin-left: auto; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%;
    background: var(--duck); font: 600 1.2rem/1 var(--display); color: var(--ink); box-shadow: 0 2px 0 #d69a00; }
  .toc details[open] summary::after { content: "–"; content: "–" / ""; }
  .toc details[open] ol { padding: 0 0 .7rem; }
  .legal-body .deco .lg-cloud { display: none; }
}
@media (min-width: 40rem) and (max-width: 60rem) { .toc ol { display: block; columns: 2; column-gap: 1rem; } .toc li { break-inside: avoid; } }
@media (max-width: 48rem) {
  .legal-hero { padding: 5.75rem 0 9.5rem; }
  .lh-scene .lh-lake { height: 44%; }
  .lh-scrim { background: linear-gradient(rgba(240,251,255,.72), rgba(240,251,255,.55) 55%, rgba(240,251,255,0) 80%); }
  .lh-cloud.near { width: 30rem; left: -10rem; top: 4rem; }
  .lh-cloud.far { width: 26rem; right: -9rem; }
  .lh-scene .lh-pier { width: 13.5rem; right: -1rem; bottom: -.9rem; }
  .lh-scene .lh-duck.sailor { width: 4.6rem; right: 6.6rem; bottom: 2.25rem; }
  .lh-scene .lh-duck.pink { width: 4.1rem; right: 1.6rem; bottom: 2.25rem; }
  .lh-scene .lh-bloom { width: 4.4rem; bottom: -.9rem; }
  .lh-scene .lh-bloom.tulips { display: none; }
  .clause { padding: 1.5rem 1.25rem 1.6rem; border-radius: 1.25rem; }
  .clause > h2 { gap: .85rem; }
  .clause-mark { width: 3rem; height: 3rem; border-radius: .95rem; }
  .legal-body { padding-bottom: 12rem; }
  .legal-body .deco .lg-tree { width: 6rem; bottom: 5.5rem; opacity: .8; }
  .legal-body .deco .pad.p1 { left: 8%; bottom: 1.2rem; }
  .legal-body .deco .pad.p2 { left: 42%; bottom: 3.4rem; }
  .legal-body .deco .pad.p3 { left: auto; right: 6%; bottom: .8rem; }
  .legal-body .deco .lg-tree.r { display: none; }
  .legal-contact { padding-bottom: 12rem; }
  .legal-contact .deco .lc-pier { width: 20rem; margin-left: -10rem; }
  .legal-contact .deco .lc-duck.sailor { width: 6rem; left: calc(50% - 7rem); bottom: 3.3rem; }
  .legal-contact .deco .lc-duck.pink { width: 5.4rem; left: calc(50% + 1rem); bottom: 3.3rem; }
  .legal-contact .cta-card { padding: 1.6rem 1.3rem 1.6rem; }
}
@media (max-width: 68rem) {
  .lh-meta { flex-direction: column; padding: .55rem .4rem; }
  .lh-meta > span + span { border-left: 0; border-top: 2px solid var(--line); padding-top: .45rem; }
  .lh-meta > span { justify-content: center; text-align: center; }
}
@media (max-width: 40rem) {
  .perks.glance { grid-template-columns: 1fr; }
  .lh-meta > span { padding: .15rem .45rem; }
  .lh-meta { font-size: .92rem; }
  .legal-hero .sign { padding: .5rem 1.4rem .7rem; }
}
@media (max-width: 30rem) {
  .glance .perk { grid-template-columns: 4.9rem minmax(0, 1fr); gap: .75rem; padding: .95rem 1rem; }
  .glance .perk .art { transform: none; width: 4.9rem; height: 4.5rem; }
  .glance .art .who { width: 2.5rem; left: .4rem; }
  .glance .art .what, .glance .art .what.x3 { width: 2rem; height: 2rem; right: .3rem; top: .35rem; }
  .clause { padding: 1.35rem 1.05rem 1.45rem; }
  .clause > h2 { font-size: 1.3rem; }
  .doc ul, .doc ol { padding-left: 1.3rem; }
}

/* Line breaks, both languages: short display lines are balanced; the other headings, the contents
   entries and the text use "pretty", so a short word is not left alone on the last line. */
.lh-kicker, .glance .perk h3, .legal-contact .cta-card h2, .lh-meta > span > span { text-wrap: balance; }
.clause > h2, .doc h3, .doc h4, .toc a, .doc :is(p, li, dd), .glance .perk p, .glance-note, .legal-contact .cta-card p { text-wrap: pretty; }

/* Thai (/th/privacy/). Thai has no spaces between words, so the browser picks line breaks from a
   dictionary. Names, in-app labels, Settings segments and a few compounds the dictionary splits
   (ความ|เป็นส่วนตัว) are kept whole in the HTML (span.nw, written by md2html.py). Taller line
   boxes leave room for Thai vowels and tone marks. */
:lang(th) .glance-head .sign h2 { letter-spacing: 0; }
:lang(th) .glance .perk h3 { line-height: 1.4; }
:lang(th) .glance .perk p { line-height: 1.65; }
:lang(th) .doc h3 { line-height: 1.45; }
@media (max-width: 26rem) { :lang(th) .mail-btn { padding-inline: 1rem; font-size: 1.02rem; } } /* keeps "อีเมลถึง …" on one line */
/* The Thai title breaks as นโยบาย / ความเป็นส่วนตัว; on phones the kept word must fit the sign */
@media (max-width: 30rem) { :lang(th) .legal-hero .sign h1 { font-size: min(2.1rem, 8.9vw); } }
@media (max-width: 22.5rem) { :lang(th) .legal-hero .sign { padding-inline: .9rem; } }

@media (prefers-reduced-motion: reduce) {
  .lh-cloud, .lh-scene .lh-duck, .legal-contact .deco .lc-duck, .mail-btn, .toc a { animation: none !important; transition: none !important; }
}

/* Print: black on white, no art, no contents list; the date and the email stay; tables stay tables */
@media print {
  @page { margin: 16mm 15mm 18mm; }
  body { background: #fff !important; color: #000; font-size: 10.5pt; line-height: 1.5; }
  .skip, .top, .lh-scene, .deco, .toc, .parade, .sign .perch, .glance .art, .glance-head .sign::before, .glance-head .sign::after,
  .legal-hero .sign::before, .legal-hero .sign::after, .mail-btn img { display: none !important; }
  .legal-hero, .legal-body, .legal-contact { background: none !important; padding: 0 !important; overflow: visible; text-align: left; }
  .legal-hero .wrap, .legal-body > .wrap, .legal-contact .wrap, footer.site .wrap { max-width: none; padding: 0; }
  .sign, .legal-hero .sign, .glance-head .sign { display: block; max-width: none !important; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  h1, h2, h3, .factbox dt, .data th, .lh-meta, .clause-num { color: #000 !important; }
  .legal-hero .sign h1, .glance-head .sign h2 { color: #000; text-shadow: none; font-size: 20pt; }
  .glance-head .sign h2 { font-size: 14pt; }
  .lh-kicker { margin: .4rem 0 .6rem; max-width: none; color: #000; text-shadow: none; font-size: 12pt; }
  .lh-meta { display: block; padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 10pt; }
  .lh-meta > span { display: block; padding: 0; border: 0 !important; text-align: left !important; }
  .lh-meta img { display: none; }
  .glance-head { text-align: left; margin: 1.2rem 0 .5rem; }
  .perks.glance { display: block; }
  .glance .perk { display: block; padding: .3rem 0; background: none; box-shadow: none; break-inside: avoid; }
  .glance .perk h3 { display: inline; font-size: 10.5pt; }
  .glance .perk h3::after { content: " — "; }
  .glance .perk p { display: inline; color: #000; font-size: 10.5pt; }
  .glance-note { margin: .4rem 0 0; padding: 0; text-align: left; background: none; box-shadow: none; color: #000; font-style: italic; }
  .js .reveal { opacity: 1 !important; translate: none !important; }
  .policy { display: block; margin-top: 1.2rem; }
  .clause { padding: 0; margin: 0 0 1.1rem; background: none; box-shadow: none; border-radius: 0; }
  .clause + .clause { margin-top: 0; padding-top: .9rem; border-top: 1px solid #999; }
  .clause > h2 { display: block; font-size: 13.5pt; margin-bottom: .5rem; break-after: avoid; }
  .clause-mark { display: inline; width: auto; height: auto; background: none; box-shadow: none; }
  .clause-mark img { display: none; }
  .clause-num { position: static; display: inline; padding: 0; background: none; box-shadow: none; font: inherit; }
  .clause-num::after { content: ". "; }
  .doc h3 { break-after: avoid; font-size: 11.5pt; }
  .doc h4 { break-after: avoid; font-size: 11pt; }
  .doc h3::before, .doc ul > li::before { background: #000; box-shadow: none; }
  .doc h3::before { display: none; }
  .doc p, .doc ul, .doc ol, .doc .factbox, .doc .note { max-width: none; }
  .doc p, .doc li { orphans: 3; widows: 3; }
  .doc a, .legal-contact a { color: #000; }
  .doc a[href^="http"]::after { content: " <" attr(href) ">"; font-size: 9pt; overflow-wrap: anywhere; }
  .path { box-shadow: none; background: none; padding: 0; font: inherit; font-weight: 600; }
  .factbox dt, .factbox dd { font-size: 10pt !important; line-height: 1.45; }
  .factbox, .note { background: none !important; box-shadow: none !important; border: 1px solid #999; break-inside: avoid; }
  .note > img { display: none; }
  .note { display: block; }
  .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  table.data { font-size: 9pt; border-collapse: collapse; }
  .data th, .data td { border: 1px solid #999 !important; background: none !important; border-radius: 0 !important; padding: .3rem .4rem; }
  .data thead { display: table-header-group; }
  .data tr { break-inside: avoid; }
  .clause:has(.data:not(.slim)) { break-before: page; } /* the overview's header prints with its rows */
  .legal-contact { margin-top: 1rem; }
  .legal-contact .cta-card { display: block; max-width: none; padding: .8rem 0 0; background: none; box-shadow: none; border-top: 1px solid #999; border-radius: 0; text-align: left; }
  .legal-contact .cta-card h2 { font-size: 13.5pt; }
  .legal-contact .cta-card p { max-width: none; margin: .3rem 0; color: #000; }
  .mail-btn { display: inline; padding: 0; background: none; box-shadow: none; color: #000; font: inherit; font-weight: 600; }
  footer.site { background: none; color: #000; padding: .8rem 0 0; margin-top: 1rem; border-top: 1px solid #999; }
  footer.site nav { display: none; }
}
