/* Sindal Technology International Limited — sindaltech.com
   Single stylesheet. Same-origin only: no webfonts, no CDN, no external assets.
   Brand palette taken from the Sindal identity artwork.

   Cloudflare edge-caches /assets/* for 4 hours and the deploy token is read-only,
   so this file is linked as /assets/site.css?v=YYYYMMDD. Bump that query in all
   three pages whenever this file changes, otherwise visitors keep the old stylesheet
   until the edge TTL expires. */

:root {
  color-scheme: light dark;

  --brand:        #1c83bd;
  --brand-mid:    #2d619d;
  --brand-deep:   #2d498a;
  --brand-light:  #7dbfe1;

  --bg:           #ffffff;
  --bg-band:      #f4f7fa;
  --surface:      #ffffff;
  --ink:          #0f1a26;
  --body:         #33465b;
  --muted:        #647688;
  --rule:         #e2e8ef;
  --rule-firm:    #cbd6e2;
  --link:         #1a5f9e;
  --link-hover:   #2d498a;
  --tint:         #eef5fb;

  --shadow: 0 1px 2px rgba(16, 34, 54, .05), 0 8px 24px -12px rgba(16, 34, 54, .18);

  --measure: 38rem;
  --page: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0d131b;
    --bg-band:    #111925;
    --surface:    #141d29;
    --ink:        #e9f0f8;
    --body:       #bccbdb;
    --muted:      #8ea0b4;
    --rule:       #22303f;
    --rule-firm:  #33475c;
    --link:       #7dbfe1;
    --link-hover: #a7d5ee;
    --tint:       #14202e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 1.0625rem/1.7 ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", "PingFang HK", "PingFang TC",
        "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK HK", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

[lang="zh-Hant-HK"] { line-height: 1.85; }
[lang="zh-Hant-HK"] p, [lang="zh-Hant-HK"] li { letter-spacing: .01em; }

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose { max-width: var(--measure); }

.band { background: var(--bg-band); border-block: 1px solid var(--rule); }

section.lang { padding: 0 0 1rem; }

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

/* Section label in a left rail, everything else in a reading column beside it. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.split-body { max-width: var(--measure); }
.split-body > h2:first-child { margin-top: 0; }

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
    column-gap: 3.5rem;
    row-gap: 2.25rem;
  }
  .split-head {
    grid-column: 1;
    position: sticky;
    top: 5.25rem;
    align-self: start;
    margin: .4rem 0 0;
  }
  .split-body { grid-column: 2; }
  .split > .full { grid-column: 1 / -1; }
  .split > .prose.full { grid-column: 2 / -1; }
}

/* ---------- type ---------- */

h1, h2, h3, h4 { color: var(--ink); font-weight: 650; letter-spacing: -.012em; }

h1 {
  font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem);
  line-height: 1.14;
  margin: 0 0 .5rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + .85vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 1.75rem 0 .35rem;
  font-weight: 650;
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.05rem; padding-left: 1.2rem; }
li { margin: 0 0 .45rem; }
li::marker { color: var(--brand); }

strong { color: var(--ink); font-weight: 650; }
em { font-style: italic; }
address { font-style: normal; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}

.eyebrow.plain { color: var(--muted); }

.lede {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.alt-name {
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.note { font-size: .9rem; color: var(--muted); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.masthead .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
  padding-block: .5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.015em;
}

.brand img { display: block; width: auto; height: 1.75rem; }
.brand .name { font-size: 1.15rem; line-height: 1; }
.brand .sub {
  display: block;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .875rem;
  font-weight: 550;
}

.topnav a { color: var(--body); text-decoration: none; }
.topnav a:hover { color: var(--link); text-decoration: underline; }
.topnav .lang-jump {
  color: var(--link);
  border: 1px solid var(--rule-firm);
  border-radius: 999px;
  padding: .2rem .7rem;
}
.topnav .lang-jump:hover { border-color: var(--brand); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(72rem 26rem at 88% -18%, var(--tint), transparent 62%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
}

.hero-mark { display: none; }

@media (min-width: 56rem) {
  .hero-mark {
    display: block;
    width: auto;
    height: 12.5rem;
    opacity: .95;
    justify-self: end;
  }
}

.hero h1 { margin-bottom: .35rem; }

.hero .lede { max-width: var(--measure); }

.factline {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .875rem;
  color: var(--muted);
}

.factline li { margin: 0; display: flex; align-items: center; gap: .5rem; }
.factline li + li::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rule-firm);
}

@media (max-width: 40rem) {
  .factline { flex-direction: column; gap: .3rem 0; }
  .factline li + li::before { display: none; }
}

/* ---------- in-page section nav ---------- */

.sectionnav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  margin: 0;
  padding: 1rem 0;
  list-style: none;
  font-size: .8125rem;
}

.sectionnav li { margin: 0; }

.sectionnav a {
  display: inline-block;
  padding: .3rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--body);
  text-decoration: none;
  background: var(--surface);
}

.sectionnav a:hover { border-color: var(--brand); color: var(--link); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.4rem 1.4rem 1.5rem;
}

.card h3 { margin: 0 0 .45rem; }
.card p { font-size: .9375rem; margin-bottom: 0; }

.card .icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: .9rem;
  color: var(--brand);
}

/* ---------- numbered steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 34rem) { .steps { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.steps li {
  counter-increment: step;
  margin: 0;
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: .85rem;
}

.steps h3 { margin: 0 0 .35rem; }
.steps p { font-size: .9375rem; margin-bottom: 0; }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.6rem;
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
}

.panel.flat { box-shadow: none; background: var(--tint); }

.panel h3:first-child { margin-top: 0; }

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--tint);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}

.callout p { margin-bottom: 0; }

/* ---------- identity / key-value list ---------- */

.identity {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.identity > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: .95rem 1.4rem;
}

.identity > div + div { border-top: 1px solid var(--rule); }

.identity dt {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding-top: .18rem;
}

.identity dd { margin: 0; color: var(--ink); }

@media (max-width: 34rem) {
  .identity > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}

/* ---------- FAQ ---------- */

.faq { margin: 1.75rem 0 0; }

.faq > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.faq > div:last-child { border-bottom: 1px solid var(--rule); }

.faq h3 { margin: 0 0 .4rem; }
.faq p { margin-bottom: 0; }

/* ---------- legal document pages ---------- */

.doc-head { padding: 2.75rem 0 2rem; }
.doc-head h1 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem); }

.toc {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
}

.toc p {
  margin: 0 0 .65rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: .9375rem;
  counter-reset: toc;
}

.toc li { margin: 0 0 .3rem; break-inside: avoid; counter-increment: toc; }
.toc li::before {
  content: counter(toc) ".";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: .4rem;
}
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

@media (max-width: 40rem) { .toc ol { columns: 1; } }

.doc { padding-bottom: 1rem; }

/* Legal pages: sticky contents rail beside the text. */
.doc-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

@media (min-width: 62rem) {
  .doc-split { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: 3.5rem; row-gap: 0; }
  .doc-split > .full { grid-column: 1 / -1; }
  .doc-split > .doc { grid-column: 2; }
  .doc-split > .toc {
    grid-column: 1;
    position: sticky;
    top: 5.25rem;
    align-self: start;
    margin: 2.5rem 0 0;
    padding: .1rem 0 .1rem 1.15rem;
    border: 0;
    border-left: 1px solid var(--rule);
    border-radius: 0;
    background: none;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
  .doc-split > .toc ol { columns: 1; font-size: .875rem; }
  .doc-split > .doc h2:first-of-type { margin-top: 2.5rem; }
}

.doc h2 {
  font-size: 1.25rem;
  margin: 3rem 0 .9rem;
  padding-top: .5rem;
  border-top: 1px solid var(--rule);
}

.doc h2:first-of-type { margin-top: 2rem; }
.doc h3 { margin: 1.9rem 0 .4rem; color: var(--brand-mid); font-size: 1rem; }

@media (prefers-color-scheme: dark) {
  .doc h3 { color: var(--brand-light); }
}

.doc dl { margin: 0 0 1.05rem; }
.doc dt { font-weight: 650; color: var(--ink); margin: 1rem 0 .2rem; }
.doc dd { margin: 0 0 .5rem; }

.meta {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

/* ---------- language divider ---------- */

.langsplit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3.5rem 0 0;
  padding: 0 1.5rem;
  max-width: var(--page);
  margin-inline: auto;
  color: var(--muted);
  font-size: .8125rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

.langsplit::before,
.langsplit::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- footer ---------- */

.sitefoot {
  margin-top: 4rem;
  background: var(--bg-band);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  font-size: .9rem;
}

.foot-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 52rem) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand address { color: var(--muted); margin-bottom: .75rem; }
.foot-brand .legal-name { color: var(--ink); font-weight: 600; }

.foot-col h2 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
}

.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .45rem; }
.foot-col a { color: var(--body); text-decoration: none; }
.foot-col a:hover { color: var(--link); text-decoration: underline; }

.foot-base {
  max-width: var(--page);
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8125rem;
}

/* ---------- misc ---------- */

:target { scroll-margin-top: 6.5rem; }

hr.lang { display: none; }

@media print {
  .masthead, .sectionnav, .toc, .hero-mark, .skip { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .band, .hero, .sitefoot { background: #fff !important; }
  a { color: #000; }
  .doc h2 { break-after: avoid; }
}
