:root {
  color-scheme: light;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #fbfaf6;
}

body {
  min-width: 320px;
  margin: 0;
  color: #142f3e;
  background:
    radial-gradient(circle at 86% 5%, rgba(243, 200, 91, .16), transparent 22rem),
    #fbfaf6;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.75;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #f3c85b;
  outline-offset: 4px;
  border-radius: 4px;
}

.xq-skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  color: #fff;
  background: #102d3d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

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

.xq-legal-site {
  --navy: #102d3d;
  --teal: #197b76;
  --teal-soft: #cfe4de;
  --cream: #f5f1e8;
  --paper: #fbfaf6;
  --amber: #f3c85b;
  --coral: #d9674f;
  --coral-text: #ad4f3b;
  --ink: #142f3e;
  --muted: #66777b;
  --line: rgba(20, 47, 62, .14);
  min-height: 100vh;
  overflow-x: clip;
}

.xq-legal-container {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.xq-legal-header {
  padding: 24px 0;
}

.xq-legal-nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(16, 45, 61, .1);
  border-radius: 22px;
  background: rgba(251, 250, 246, .9);
  box-shadow: 0 18px 50px rgba(16, 45, 61, .07);
  backdrop-filter: blur(18px) saturate(130%);
}

.xq-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.xq-logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transform: rotate(-5deg);
}

.xq-brand-copy b,
.xq-brand-copy span {
  display: block;
}

.xq-brand-copy b {
  color: var(--navy);
  font-size: 16px;
  letter-spacing: .08em;
}

.xq-brand-copy span {
  margin-top: 2px;
  color: #718086;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
}

.xq-policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: #405763;
  font-size: 12px;
  font-weight: 700;
}

.xq-policy-nav a {
  padding: 9px 12px;
  border-radius: 11px;
  text-decoration: none;
}

.xq-policy-nav a:hover {
  background: var(--cream);
}

.xq-policy-nav a[aria-current="page"] {
  color: #fff;
  background: var(--navy);
}

.xq-legal-hero {
  position: relative;
  padding: 84px 0 70px;
}

.xq-legal-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22px;
  right: max(5vw, 28px);
  width: 250px;
  height: 250px;
  border: 1px solid rgba(25, 123, 118, .14);
  border-radius: 50%;
  box-shadow:
    0 0 0 38px rgba(25, 123, 118, .035),
    0 0 0 76px rgba(25, 123, 118, .025);
}

.xq-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--coral-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.xq-eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  background: currentColor;
}

.xq-legal-hero h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  color: var(--navy);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.xq-legal-lead {
  max-width: 760px;
  margin: 0;
  color: #435b65;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.xq-update-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 7px 12px;
  border: 1px solid rgba(25, 123, 118, .16);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(207, 228, 222, .42);
  font-size: 12px;
  font-weight: 700;
}

.xq-update-date::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.xq-legal-main {
  padding-bottom: 96px;
}

.xq-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 54px;
}

.xq-summary article {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .64);
}

.xq-summary small {
  color: var(--coral-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.xq-summary strong {
  display: block;
  margin: 10px 0 7px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.45;
}

.xq-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.xq-policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 72px;
  align-items: start;
  justify-content: center;
}

.xq-toc {
  position: sticky;
  top: 24px;
  padding: 20px;
  border-left: 2px solid var(--teal-soft);
}

.xq-toc b {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 13px;
}

.xq-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

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

.xq-policy-content section {
  scroll-margin-top: 28px;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.xq-policy-content section + section {
  padding-top: 42px;
}

.xq-policy-content section:last-child {
  border-bottom: 0;
}

.xq-section-number {
  display: block;
  margin-bottom: 10px;
  color: var(--coral-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.xq-policy-content h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.35;
}

.xq-policy-content p {
  margin: 12px 0 0;
  color: #3d535d;
  font-size: 16px;
}

.xq-policy-content ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.xq-policy-content li {
  position: relative;
  margin-top: 10px;
  padding-left: 22px;
  color: #3d535d;
}

.xq-policy-content li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(243, 200, 91, .18);
}

.xq-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  border-radius: 0 14px 14px 0;
  color: #294752;
  background: rgba(207, 228, 222, .35);
}

.xq-source-list a {
  color: var(--teal);
  font-weight: 700;
  text-underline-offset: 3px;
}

.xq-source-list a:hover {
  color: var(--coral);
}

.xq-legal-footer {
  color: #dfe9e6;
  background: var(--navy);
}

.xq-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 34px;
}

.xq-legal-footer .xq-brand-copy b {
  color: #fff;
}

.xq-legal-footer .xq-brand-copy span {
  color: #a8b9bb;
}

.xq-company {
  max-width: 360px;
  margin: 0;
  color: #b8c7c8;
  font-size: 13px;
  text-align: right;
}

.xq-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  color: #9fb1b4;
  font-size: 11px;
}

.xq-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.xq-footer-links a {
  color: #dfe9e6;
  text-decoration: none;
}

.xq-footer-links a:hover {
  color: var(--amber);
}

@media (max-width: 820px) {
  .xq-legal-container {
    width: min(100% - 36px, 680px);
  }

  .xq-legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .xq-policy-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .xq-legal-hero {
    padding: 60px 0 50px;
  }

  .xq-summary {
    grid-template-columns: 1fr;
  }

  .xq-policy-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .xq-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .6);
  }

  .xq-toc b {
    width: 100%;
    margin-bottom: 2px;
  }

  .xq-footer-top,
  .xq-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .xq-company {
    text-align: left;
  }

  .xq-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .xq-legal-container {
    width: calc(100% - 28px);
  }

  .xq-legal-header {
    padding-top: 14px;
  }

  .xq-policy-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .xq-policy-nav a {
    text-align: center;
  }

  .xq-legal-hero {
    padding-top: 46px;
  }

  .xq-summary article {
    padding: 20px;
  }
}

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

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