:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #FFF9F7;
  --blush: #FFF0F2;
  --card: #FFFEFC;
  --ink: #3A1718;
  --muted: #8C7775;
  --rose: #FF536D;
  --rose-2: #FF7B88;
  --rose-soft: #FFF0F3;
  --line: #F3DADB;
  --shadow: 0 24px 70px rgba(58, 23, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input { font: inherit; }
a { color: inherit; }
.site-shell { overflow: hidden; }
.page-width { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "Songti SC", STSong, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: #FFF9F7;
  box-shadow: 0 6px 16px rgba(58, 23, 24, .08);
  flex: none;
}
.brand-mark.large {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin-inline: auto;
  box-shadow: 0 18px 40px rgba(58, 23, 24, .1);
}
.site-header nav, .site-footer nav { display: flex; gap: 28px; }
.site-header nav a, .site-footer nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, .legal-title {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.text-link { color: var(--rose); text-decoration: none; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 108px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer-row > p { justify-self: end; margin: 0; color: var(--muted); font-size: 12px; }

.legal-page, .download-wrap { padding-block: 64px 110px; }
.page-head { max-width: 820px; padding-bottom: 28px; }
.legal-title { font-size: clamp(42px, 6vw, 68px); margin: 12px 0 16px; }
.page-head p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.effective { color: var(--rose); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; align-items: start; }
.legal-index { position: sticky; top: 108px; display: grid; gap: 8px; padding: 18px 0 18px 18px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; }
.legal-index a { text-decoration: none; }
.legal-index a:hover { color: var(--rose); }
.legal-card, .download-card {
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 48px rgba(58, 23, 24, .05);
}
.legal-card section + section { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--line); }
.legal-card h2 { margin: 0 0 12px; font-size: 24px; }
.legal-card p, .legal-card li { margin: 0; color: var(--muted); line-height: 1.85; }
.legal-card ul { margin: 12px 0 0; padding-left: 1.2em; }
.legal-card li + li { margin-top: 8px; }
.download-card { display: grid; gap: 18px; }
.download-card h1 { font-size: clamp(42px, 7vw, 68px); }
.download-card p { margin: 0; color: var(--muted); }
.download-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 11px; border-radius: 99px; color: var(--rose); background: var(--rose-soft); font-size: 12px; font-weight: 700; }
.notice { padding: 15px 17px; border-left: 3px solid var(--rose); color: var(--muted); background: var(--rose-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.button.secondary { color: var(--rose); background: var(--card); border: 1px solid var(--rose); }
.button.muted { color: var(--muted); background: var(--rose-soft); border: 0; }

.subpage .site-header {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}
.legal-page a:focus-visible, .download-wrap a:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rose) 45%, white);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .footer-row { grid-template-columns: 1fr; justify-items: center; padding-block: 32px; text-align: center; }
  .footer-row > p { justify-self: center; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-index { position: static; display: grid; grid-template-columns: repeat(2, 1fr); border-left: 0; border-top: 2px solid var(--line); padding: 16px 0 0; }
}

@media (max-width: 560px) {
  .page-width, .subpage .site-header { width: min(100% - 32px, 1180px); }
  .site-header { height: 74px; }
  .header-cta { font-size: 12px; padding: 0 12px; }
  .legal-index { grid-template-columns: 1fr; }
}

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