@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/DMSans-Variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/DMSans-Variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0d293d;
  --ink-soft: #284254;
  --paper: #f5f1e8;
  --white: #fffdf8;
  --mint: #bfe4d7;
  --mint-bright: #7fced2;
  --mint-deep: #2e776f;
  --coral: #e8785d;
  --line: rgba(13, 41, 61, 0.16);
  --display: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --rail: 248px;
  --header-offset: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(191, 228, 215, 0.55), transparent 30rem),
    radial-gradient(circle at 95% 18%, rgba(244, 198, 168, 0.38), transparent 28rem),
    var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 24px 0;
}

.legal-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.legal-brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
}

.legal-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.legal-back:hover {
  color: var(--mint-deep);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: min(calc(100% - 40px), var(--max));
  margin: 16px auto 0;
}

.legal-sidebar {
  position: static;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(13, 41, 61, 0.05);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}

.legal-sidebar::-webkit-scrollbar {
  display: none;
}

.legal-sidebar-title {
  margin: 0 0 10px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-doc-nav {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.legal-doc-link {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 999px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.legal-doc-link:hover {
  color: var(--ink);
  background: rgba(191, 228, 215, 0.4);
}

.legal-doc-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  background: var(--mint);
}

.legal-doc-index {
  color: var(--mint-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.legal-doc-arrow {
  color: rgba(13, 41, 61, 0.35);
  font-size: 13px;
}

.legal-doc-link[aria-current="page"] .legal-doc-arrow {
  color: var(--ink);
}

.legal-section-nav {
  display: none;
}

.legal-shell {
  min-width: 0;
  padding: 34px 42px 52px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(13, 41, 61, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(13, 41, 61, 0.06);
}

.legal-hero {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--mint-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-hero h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(35px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.05em;
}

.legal-date {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.legal-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.legal-body {
  padding: 30px 0 0;
}

.legal-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.legal-section p {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a:not(.legal-callout a) {
  color: var(--mint-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 26px;
  align-items: center;
}

.about-lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

.about-lead figure {
  padding: 10px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  transform: rotate(2deg);
  box-shadow: 0 16px 30px rgba(13, 41, 61, 0.08);
}

.about-lead img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.about-facts div {
  padding: 14px;
  background: rgba(191, 228, 215, 0.32);
  border-radius: 12px;
}

.about-facts strong,
.about-facts span {
  display: block;
}

.about-facts strong {
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 15px;
}

.about-facts span {
  color: var(--ink-soft);
  font-size: 10px;
}

.about-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.about-contact a,
.about-contact div {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.about-contact span,
.about-contact strong {
  display: block;
}

.about-contact span {
  margin-bottom: 4px;
  color: rgba(13, 41, 61, 0.5);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-contact strong,
.about-contact a {
  font-size: 13px;
}

.about-contact a:hover {
  color: var(--mint-deep);
}

.legal-footer {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 24px 0 34px;
  color: rgba(13, 41, 61, 0.52);
  font-size: 10px;
  border-top: 1px solid var(--line);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.legal-footer a:hover {
  color: var(--ink);
}

.legal-callout {
  padding: 16px 18px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 12px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-callout a {
  color: var(--mint-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 880px) {
  :root {
    --header-offset: 142px;
  }

  .legal-layout {
    display: block;
    margin-top: 8px;
  }

  .legal-sidebar {
    margin-bottom: 12px;
  }

  .legal-sidebar-title {
    display: none;
  }

  .legal-doc-index,
  .legal-doc-arrow {
    display: none;
  }

  .legal-shell {
    padding: 28px 28px 38px;
    border-radius: 18px;
  }

  .about-lead {
    grid-template-columns: 1fr;
  }

  .about-lead figure {
    width: min(100%, 280px);
    transform: none;
  }
}

@media (max-width: 620px) {
  .legal-header {
    width: calc(100% - 32px);
    padding: 18px 0;
  }

  .legal-layout,
  .legal-footer {
    width: calc(100% - 32px);
  }

  .legal-back {
    font-size: 11px;
  }

  .legal-shell {
    padding: 24px 20px 32px;
    border-radius: 16px;
  }

  .legal-hero {
    padding-bottom: 28px;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-body {
    padding-top: 24px;
  }

  .legal-section h2 {
    font-size: 17px;
  }

  .legal-intro,
  .legal-section p {
    font-size: 13px;
  }

  .about-facts,
  .about-contact {
    grid-template-columns: 1fr;
  }
}
