:root {
  color-scheme: dark;
  --color-navy: #071522;
  --color-navy-soft: #0c2031;
  --color-panel: #102a3e;
  --color-blue: #65a9ff;
  --color-teal: #59e0cf;
  --color-paper: #f6f3e9;
  --color-muted: #aabac5;
  --color-border: rgba(166, 211, 239, 0.2);
  --color-focus: #ffe173;
  --reading-width: 70ch;
  --page-width: 1180px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-synthesis: none;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-navy);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-paper);
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 120, 164, 0.22), transparent 32rem),
    linear-gradient(145deg, #06131f 0%, var(--color-navy) 52%, #081b29 100%);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--color-teal);
}

a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--color-navy);
  background: var(--color-focus);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient-path {
  position: fixed;
  z-index: -1;
  width: min(42vw, 36rem);
  height: min(42vw, 36rem);
  right: -13rem;
  top: 14rem;
  border: 1px solid rgba(89, 224, 207, 0.16);
  border-radius: 42% 58% 66% 34%;
  transform: rotate(22deg);
  pointer-events: none;
}

.ambient-path::before,
.ambient-path::after {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--color-teal);
  box-shadow: 0 0 0 0.45rem rgba(89, 224, 207, 0.08);
}

.ambient-path::before {
  left: 16%;
  top: 6%;
}

.ambient-path::after {
  right: 5%;
  bottom: 24%;
}

.site-header,
.site-footer,
.home-main,
.legal-main {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.brand-mark span {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-blue);
}

.brand-mark span:nth-child(2) {
  background: var(--color-teal);
  transform: translateY(-0.35rem);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.75rem);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--color-paper);
}

.home-main {
  padding-block: clamp(4rem, 10vw, 8.75rem) clamp(4rem, 8vw, 7rem);
}

.hero {
  max-width: 54rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.destination-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
  min-height: 11rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--color-border);
  border-radius: 1.35rem;
  color: var(--color-paper);
  background: linear-gradient(145deg, rgba(16, 42, 62, 0.94), rgba(9, 29, 44, 0.94));
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.destination-card:hover {
  color: var(--color-paper);
  border-color: rgba(89, 224, 207, 0.6);
  transform: translateY(-3px);
}

.destination-card--support:hover {
  border-color: rgba(101, 169, 255, 0.7);
}

.card-number {
  align-self: start;
  color: var(--color-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.destination-card strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.destination-card small {
  display: block;
  margin-top: 0.6rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-arrow {
  color: var(--color-blue);
  font-size: 1.7rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, var(--reading-width));
  justify-content: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.legal-aside {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.legal-aside p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(2.8rem, 8vw, 5.7rem);
}

.legal-lead {
  margin: 1.75rem 0 3.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--color-border);
  color: #d8e1e6;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.legal-section {
  scroll-margin-top: 2rem;
  margin-top: 3.5rem;
}

.section-index {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
}

.legal-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.05rem;
}

.legal-section p,
.legal-section li {
  color: #c3d0d8;
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.6rem;
}

.callout,
.contact-card {
  padding: 1.35rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(16, 42, 62, 0.68);
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-teal);
  font-weight: 750;
}

.service-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.service-card {
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: rgba(16, 42, 62, 0.52);
}

.service-card dl {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr);
  gap: 0.55rem 1rem;
}

.service-card dt {
  font-weight: 750;
}

.service-card dd {
  min-width: 0;
  margin: 0;
  color: #c3d0d8;
  overflow-wrap: anywhere;
}

/* Simplified Chinese legal pages use a mobile-first document reading treatment. */
html:lang(zh-CN) {
  color-scheme: light;
  background: #fff;
}

.legal-cn-page {
  color-scheme: light;
  color: #37373c;
  background: #fff;
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.legal-cn-page .ambient-path,
.legal-cn-page .brand-mark {
  display: none;
}

.legal-cn-page a,
.legal-cn-page a:hover,
.legal-cn-page .contact-card a {
  color: #d9530f;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: none;
}

.legal-cn-page a:hover {
  color: #b8450a;
}

.legal-cn-page a:focus-visible {
  outline-color: #d9530f;
}

.legal-cn-page .skip-link {
  color: #1c1c21;
  background: #fff;
  border: 1px solid #1c1c21;
}

.legal-cn-page::before {
  content: "";
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b9b2e4 0%, #d4cfef 45%, #ff6b1a 100%);
}

.legal-cn-page .site-header {
  width: 100%;
  max-width: none;
  min-height: 60px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 max(20px, calc((100% - 46rem) / 2));
  background: #f7f6fc;
  border-bottom: 1px solid #eceaf6;
}

.legal-cn-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #17171b;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.legal-cn-page .brand svg {
  display: block;
}

.legal-cn-page .site-header nav {
  width: auto;
  justify-content: flex-end;
  gap: 1.25rem;
}

.legal-cn-page .site-header nav a,
.legal-cn-page .site-header nav a:hover {
  min-height: 44px;
  color: #8a8a92;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.legal-cn-page .site-header nav a[aria-current="page"] {
  color: #17171b;
  font-weight: 600;
}

/* Document cover */
.legal-cn-page .doc-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 280px at 86% -20%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(165deg, #f2f0fb 0%, #e5e1f6 100%);
  border-bottom: 1px solid #e6e2f2;
}

.legal-cn-page .doc-hero-inner {
  position: relative;
  width: min(46rem, calc(100% - 40px));
  margin-inline: auto;
  padding: 40px 0 42px;
}

.legal-cn-page .doc-mark {
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px rgba(29, 38, 80, 0.18));
}

.legal-cn-page .doc-watermark {
  position: absolute;
  right: -30px;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translateY(-50%) rotate(10deg);
  opacity: 0.4;
  pointer-events: none;
}

.legal-cn-page .doc-hero h1 {
  margin: 0;
  color: #17171b;
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-cn-page .legal-meta {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.legal-cn-page .meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border: 1px solid #ddd8f0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #76767e;
  font-size: 12.5px;
}

.legal-cn-page .legal-lead {
  margin: 20px 0 0;
  color: #5d5a72;
  font-size: 15.5px;
  line-height: 1.9;
  max-width: 34em;
}

.legal-cn-page .legal-main {
  display: block;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 12px 20px 48px;
}

.legal-cn-page .legal-section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid #f0f0f2;
}

.legal-cn-page .legal-section:first-of-type {
  margin-top: 26px;
  padding-top: 0;
  border-top: none;
}

.legal-cn-page .legal-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #17171b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  scroll-margin-top: 24px;
}

.legal-cn-page .legal-section h2:target .section-index {
  background: #ff6b1a;
  color: #fff;
}

.legal-cn-page .section-index {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 9px;
  background: rgba(255, 107, 26, 0.1);
  color: #d9530f;
  font-size: 13.5px;
  font-weight: 700;
}

/* Table of contents */
.legal-cn-page .legal-toc {
  display: none;
}

.legal-cn-page .legal-toc-mobile {
  margin: 20px 0 4px;
  padding: 12px 16px;
  border: 1px solid #eceaf6;
  border-radius: 14px;
  background: #faf9fe;
}

.legal-cn-page .legal-toc-mobile summary {
  font-size: 14px;
  font-weight: 600;
  color: #37373c;
  cursor: pointer;
  list-style-position: inside;
}

.legal-cn-page .legal-toc-mobile a {
  display: block;
  padding: 7px 0 0;
  font-size: 14px;
  color: #565273;
  text-decoration: none;
}

.legal-cn-page .legal-toc-mobile a:last-child {
  padding-bottom: 4px;
}

@media (min-width: 1100px) {
  .legal-cn-page .legal-toc-mobile {
    display: none;
  }

  .legal-cn-page .legal-main {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 212px;
    gap: 4.5rem;
    justify-content: center;
    max-width: none;
  }

  .legal-cn-page .legal-toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .legal-cn-page .legal-toc-title {
    margin: 4px 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #a6a6ad;
  }

  .legal-cn-page .legal-toc a {
    display: block;
    padding: 5px 0 5px 12px;
    border-left: 2px solid #eceaf6;
    font-size: 13px;
    line-height: 1.55;
    color: #76767e;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
  }

  .legal-cn-page .legal-toc a:hover {
    color: #17171b;
  }

  .legal-cn-page .legal-toc a.active {
    color: #d9530f;
    border-left-color: #ff6b1a;
    font-weight: 600;
  }
}

.legal-cn-page .legal-section h3 {
  margin: 20px 0 6px;
  color: #26262b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.legal-cn-page .legal-section p,
.legal-cn-page .legal-section li {
  color: #37373c;
  font-size: 16px;
  line-height: 1.85;
}

.legal-cn-page .legal-section p {
  margin: 10px 0;
  text-align: justify;
}

.legal-cn-page .legal-section ul {
  margin: 10px 0;
  padding-left: 1.3em;
}

.legal-cn-page .legal-section li {
  text-align: justify;
}

.legal-cn-page .legal-section li + li {
  margin-top: 6px;
}

.legal-cn-page .legal-section strong {
  color: #17171b;
  font-weight: 600;
}

.legal-cn-page .callout,
.legal-cn-page .contact-card,
.legal-cn-page .service-card {
  padding: 18px;
  border: none;
  border-radius: 14px;
  background: #f7f7f9;
  box-shadow: none;
}

.legal-cn-page .service-list {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding-left: 0;
}

.legal-cn-page .service-card h3 {
  margin-top: 0;
}

.legal-cn-page .service-card dl {
  display: block;
  margin: 0;
}

.legal-cn-page .service-card dt {
  margin-top: 12px;
  color: #a6a6ad;
  font-size: 13px;
  font-weight: 400;
}

.legal-cn-page .service-card dd {
  margin: 2px 0 0;
  color: #37373c;
  font-size: 15px;
  line-height: 1.8;
}

.legal-cn-page .site-footer {
  display: block;
  width: 100%;
  max-width: none;
  padding: 26px 20px 36px;
  border-top: none;
  background: #151b3d;
  color: rgba(236, 234, 255, 0.5);
  font-size: 12.5px;
  line-height: 1.9;
  text-align: center;
}

.legal-cn-page .site-footer a {
  color: #eceaff;
  font-weight: 600;
  text-decoration: none;
}

.legal-cn-page .site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 721px) {
  .legal-cn-page .legal-main {
    padding: 52px 24px 80px;
  }

  .legal-cn-page .legal-content h1 {
    font-size: 30px;
  }

  .legal-cn-page .legal-section {
    margin-top: 40px;
  }

  .legal-cn-page .legal-section h2 {
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .service-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .home-main {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .destination-grid {
    grid-template-columns: 1fr;
  }

  .destination-card {
    min-height: 9.5rem;
  }

  .site-footer {
    flex-direction: column;
  }

  .legal-main {
    display: block;
  }

  .legal-aside {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .site-header nav,
  .ambient-path,
  .skip-link,
  .legal-aside,
  .legal-cn-page .doc-hero svg,
  .legal-cn-page .legal-toc,
  .legal-cn-page .legal-toc-mobile {
    display: none;
  }

  .legal-cn-page .doc-hero {
    background: #fff;
    border-bottom: 1px solid #aaa;
  }

  .site-header,
  .site-footer {
    color: #333;
    border-color: #aaa;
  }

  .legal-main {
    display: block;
    width: 100%;
    padding-block: 1rem;
  }

  .legal-section p,
  .legal-section li,
  .legal-lead {
    color: #222;
  }

  a {
    color: #111;
  }

  a[href^="http"]::after,
  a[href^="mailto"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
