:root {
  --red: #f5171c;
  --ink: #151417;
  --muted: #6f6b73;
  --soft: #fff4f5;
  --line: #f1dfe2;
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 26px 70px rgba(98, 38, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7f8 0, #fff 34%, #fff8f9 100%);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, rgba(245, 23, 28, 0.13), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 176, 190, 0.23), transparent 24%),
    linear-gradient(135deg, transparent 0 46%, rgba(245, 23, 28, 0.05) 46% 47%, transparent 47% 100%);
}

a {
  color: var(--red);
  text-decoration: none;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  min-width: 148px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), #ff7f95);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 21px;
  box-shadow: 0 14px 28px rgba(245, 23, 28, 0.22);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.navlinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a,
.language-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #4f4b52;
  font-size: 13px;
}

.navlinks a {
  padding: 9px 13px;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(98, 38, 44, 0.08);
  white-space: nowrap;
}

.language-switch button {
  min-width: 38px;
  padding: 7px 10px;
  border-color: transparent;
  cursor: pointer;
  font-weight: 900;
}

.language-switch button.is-active {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 20px rgba(245, 23, 28, 0.22);
}

.legal-page {
  display: grid;
  gap: 26px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 23, 28, 0.12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 244, 245, 0.86));
  box-shadow: var(--shadow);
  padding: 42px 46px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 23, 28, 0.16), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 18px 0 14px;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 0;
  color: #49454d;
  font-size: 17px;
  line-height: 1.72;
  text-wrap: pretty;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.chip {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #625d65;
  font-size: 12.5px;
  font-weight: 800;
}

.grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  justify-content: center;
  gap: 26px;
}

.toc {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 18px 52px rgba(98, 38, 44, 0.08);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid rgba(241, 223, 226, 0.76);
  color: #625d65;
  font-size: 13px;
  line-height: 1.35;
}

.content {
  display: grid;
  max-width: 720px;
  gap: 18px;
}

.card {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 52px rgba(98, 38, 44, 0.07);
}

.callout {
  border-color: rgba(245, 23, 28, 0.24);
  background: linear-gradient(135deg, #fff, #fff3f4);
}

h2 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.card p {
  margin: 0 0 14px;
  color: #504c55;
  font-size: 15px;
  line-height: 1.88;
  text-wrap: pretty;
}

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

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #504c55;
}

.card li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 20px;
  font-size: 15px;
  line-height: 1.78;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.72;
}

.matrix,
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini,
.step,
.box {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.mini b,
.step b,
.box b {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
}

.mini span {
  display: block;
  color: #5b5660;
  font-size: 14px;
  line-height: 1.72;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  padding-left: 56px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 14px;
}

.item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: start;
}

.dot {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.footer {
  margin-top: 4px;
  text-align: center;
  color: #8a858d;
  font-size: 13px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
  }

  .nav-right {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 18px 14px 42px;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .brand {
    align-items: flex-start;
  }

  .nav-right {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .language-switch {
    position: absolute;
    top: 18px;
    right: 14px;
  }

  .navlinks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .navlinks a {
    padding: 9px 7px;
    text-align: center;
    font-size: 12px;
  }

  .hero {
    padding: 30px 24px;
    border-radius: 24px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 15.5px;
  }

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

  .toc {
    position: static;
  }

  .content {
    max-width: none;
  }

  .card {
    padding: 24px 21px;
    border-radius: 20px;
  }

  .matrix,
  .cards {
    grid-template-columns: 1fr;
  }

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

  .dot {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: grid;
    line-height: 1.2;
  }

  .navlinks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-switch button {
    min-width: 34px;
    padding: 7px 8px;
  }
}
