@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
}

body:has(.yirong-legal-page) {
  margin: 0;
  background: #f4f1e9;
}

.yirong-legal-page {
  --legal-ink: #171813;
  --legal-bone: #f4f1e9;
  --legal-sand: #eee8dc;
  --legal-clay: #e3daca;
  --legal-brass: #967748;
  --legal-brass-dark: #755a35;
  --legal-muted: #68645b;
  --legal-rule: rgb(23 24 19 / 18%);
  --legal-ease: cubic-bezier(.22, 1, .36, 1);
  width: 100%;
  margin: 0;
  overflow: clip;
  background: #f4f1e9;
  color: #171813;
  font-family: Manrope, Arial, Helvetica, sans-serif;
}

.yirong-legal-page,
.yirong-legal-page *,
.yirong-legal-page *::before,
.yirong-legal-page *::after {
  box-sizing: border-box;
}

.yirong-legal-page :where(h1, h2, h3, p, figure, ul, ol) {
  margin-block: 0;
}

.yirong-legal-page a {
  color: inherit;
  touch-action: manipulation;
}

.yirong-legal-page a:focus-visible {
  outline: 2px solid var(--legal-brass);
  outline-offset: 4px;
}

.yirong-legal-page__eyebrow,
.yirong-legal-sidebar__label {
  color: var(--legal-brass-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.yirong-legal-hero {
  background: var(--legal-bone);
  border-bottom: 1px solid var(--legal-rule);
}

.yirong-legal-hero__inner {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(0, 2.3fr) minmax(250px, .8fr);
  gap: clamp(36px, 5vw, 88px);
  width: 100%;
  max-width: 1600px;
  min-height: 510px;
  margin-inline: auto;
  padding: 104px 64px 88px;
  align-items: end;
}

.yirong-legal-hero__spine {
  position: relative;
  display: flex;
  min-height: 270px;
  padding-left: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.yirong-legal-hero__spine::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #967748;
  content: "";
  transform-origin: top;
}

.yirong-legal-hero__index {
  color: var(--legal-muted);
  font-size: 12px;
  letter-spacing: .14em;
}

.yirong-legal-hero__copy {
  min-width: 0;
}

.yirong-legal-hero__title {
  max-width: 11ch;
  font-size: clamp(60px, 7.2vw, 112px);
  font-weight: 350;
  letter-spacing: -.065em;
  line-height: .92;
  text-wrap: balance;
}

.yirong-legal-hero__lead {
  max-width: 66ch;
  margin-top: 36px !important;
  color: var(--legal-muted);
  font-size: 17px;
  line-height: 1.75;
  text-wrap: pretty;
}

.yirong-legal-hero__meta {
  border-top: 1px solid var(--legal-rule);
  padding-top: 22px;
}

.yirong-legal-hero__meta p {
  color: var(--legal-muted);
  font-size: 11px;
  line-height: 1.65;
}

.yirong-legal-hero__meta p + p {
  margin-top: 7px;
}

.yirong-legal-hero__meta span {
  color: var(--legal-ink);
  font-weight: 700;
}

.yirong-legal-layout {
  background: var(--legal-sand);
}

.yirong-legal-layout__inner {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(0, 2.65fr);
  gap: clamp(72px, 9vw, 150px);
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding: 128px 64px 148px;
  align-items: start;
}

.yirong-legal-sidebar {
  min-width: 0;
  align-self: stretch;
}

.yirong-legal-sidebar__sticky {
  position: sticky;
  top: calc(var(--yirong-header-height-compact, 72px) + 32px);
  padding-left: 24px;
  border-left: 2px solid var(--legal-brass);
}

.yirong-legal-nav {
  display: grid;
  margin-top: 28px;
}

.yirong-legal-nav a {
  position: relative;
  padding: 13px 20px 13px 0;
  border-top: 1px solid var(--legal-rule);
  color: var(--legal-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.yirong-legal-nav a::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  content: "";
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

.yirong-legal-nav a:hover,
.yirong-legal-nav a.is-active {
  padding-left: 8px;
  color: var(--legal-ink);
}

.yirong-legal-nav a.is-active::after {
  background: var(--legal-brass);
  transform: translateY(-50%) scale(1.3);
}

.yirong-legal-article {
  width: 100%;
  max-width: 880px;
  min-width: 0;
}

.yirong-legal-article__notice {
  padding: 28px 32px;
  border: 1px solid var(--legal-brass);
  color: #4f4b43;
  font-size: 14px;
  line-height: 1.75;
}

.yirong-legal-section {
  padding-block: 74px;
  border-bottom: 1px solid var(--legal-rule);
  scroll-margin-top: calc(var(--yirong-header-height-compact, 72px) + 42px);
}

.yirong-legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.yirong-legal-section h2 {
  max-width: 20ch;
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.yirong-legal-section h3 {
  margin-top: 38px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
}

.yirong-legal-section p,
.yirong-legal-section li {
  color: #555149;
  font-size: 16px;
  line-height: 1.82;
  text-wrap: pretty;
}

.yirong-legal-section h2 + p,
.yirong-legal-section h2 + ul,
.yirong-legal-section h2 + figure {
  margin-top: 34px;
}

.yirong-legal-section p + p,
.yirong-legal-section p + ul,
.yirong-legal-section ul + p,
.yirong-legal-section figure + p {
  margin-top: 24px;
}

.yirong-legal-section ul,
.yirong-legal-section ol {
  display: grid;
  gap: 15px;
  padding-left: 24px;
}

.yirong-legal-section li::marker {
  color: var(--legal-brass);
}

.yirong-legal-section strong {
  color: var(--legal-ink);
  font-weight: 700;
}

.yirong-legal-section a {
  color: var(--legal-ink);
  text-decoration-color: var(--legal-brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.yirong-legal-cookie-table {
  width: 100%;
  overflow-x: auto;
}

.yirong-legal-cookie-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.yirong-legal-cookie-table :is(th, td) {
  padding: 18px 16px;
  border-bottom: 1px solid var(--legal-rule);
  text-align: left;
  vertical-align: top;
}

.yirong-legal-cookie-table th {
  color: var(--legal-brass-dark);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.yirong-legal-cookie-table td {
  color: var(--legal-muted);
}

.yirong-legal-cookie-table code {
  color: var(--legal-ink);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-weight: 650;
  word-break: break-word;
}

.yirong-legal-page.is-motion-ready .yirong-legal-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms var(--legal-ease), transform 680ms var(--legal-ease);
}

.yirong-legal-page.is-motion-ready .yirong-legal-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .yirong-legal-hero__inner {
    grid-template-columns: 110px minmax(0, 1fr);
    padding-inline: 32px;
  }

  .yirong-legal-hero__meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .yirong-legal-hero__meta p + p {
    margin-top: 0;
  }

  .yirong-legal-layout__inner {
    gap: 64px;
    padding-inline: 32px;
  }

}

@media (max-width: 900px) {
  .yirong-legal-layout__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .yirong-legal-sidebar__sticky {
    position: static;
  }

  .yirong-legal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yirong-legal-article {
    max-width: none;
  }

}

@media (max-width: 767px) {
  .yirong-legal-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 70px 22px 60px;
  }

  .yirong-legal-hero__spine {
    min-height: 0;
    padding: 0 0 18px 18px;
    flex-direction: row;
    border-bottom: 1px solid var(--legal-rule);
  }

  .yirong-legal-hero__spine::before {
    bottom: 18px;
  }

  .yirong-legal-hero__title {
    font-size: clamp(52px, 15vw, 76px);
  }

  .yirong-legal-hero__lead {
    margin-top: 28px !important;
    font-size: 15px;
  }

  .yirong-legal-hero__meta {
    grid-column: auto;
    display: grid;
    gap: 6px;
  }

  .yirong-legal-layout__inner {
    gap: 52px;
    padding: 78px 22px 96px;
  }

  .yirong-legal-sidebar__sticky {
    padding-left: 18px;
  }

  .yirong-legal-nav {
    grid-template-columns: 1fr;
  }

  .yirong-legal-nav a {
    min-height: 44px;
  }

  .yirong-legal-article__notice {
    padding: 22px;
  }

  .yirong-legal-section {
    padding-block: 58px;
  }

  .yirong-legal-section h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .yirong-legal-section p,
  .yirong-legal-section li {
    font-size: 15px;
    line-height: 1.76;
  }

  .yirong-legal-cookie-table {
    width: calc(100% + 22px);
  }

}

@media (max-width: 359px) {
  .yirong-legal-hero__inner,
  .yirong-legal-layout__inner {
    padding-inline: 18px;
  }

  .yirong-legal-hero__title {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yirong-legal-page *,
  .yirong-legal-page *::before,
  .yirong-legal-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
