:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #24312a;
  background: #f5f8f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f8f6;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 0 18px;
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(135deg, #ff315c 0%, #ff4e7a 100%);
  box-shadow: 0 5px 16px rgba(191, 28, 70, 0.2);
}

.legal-header a {
  position: absolute;
  left: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  place-items: center;
}

.legal-header a:hover,
.legal-header a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.legal-header svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.legal-header h1 {
  margin: 0 44px;
  color: #fff;
  font-size: 18px;
  text-align: center;
}

.legal-content {
  max-width: 820px;
  margin: 24px auto 48px;
  padding: 30px 34px;
  border: 1px solid #e4ebe7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(27, 65, 45, 0.07);
}

.legal-meta {
  margin: 0 0 20px;
  color: #647269;
  font-size: 14px;
  line-height: 1.8;
}

.legal-notice {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid #e29a21;
  border-radius: 8px;
  color: #6f4c10;
  background: #fff8e9;
}

h2 {
  margin: 28px 0 10px;
  color: #173e2c;
  font-size: 18px;
}

p,
li {
  font-size: 15px;
  line-height: 1.85;
}

ul {
  padding-left: 22px;
}

a {
  color: #176f4c;
}

@media (max-width: 720px) {
  .legal-content {
    margin: 0;
    padding: 22px 18px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
