.legal-page {
  margin: 0;
  min-height: 100vh;
  background: #f5f7f6;
  color: #111827;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0faf7c;
  font-weight: 700;
  text-decoration: none;
}

.legal-brand__img {
  width: 28px;
  height: 28px;
  border-radius: 22%;
  object-fit: cover;
}

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  line-height: 1.75;
  font-size: 14px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.legal-meta {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 12px;
}

.legal-main h2 {
  margin: 28px 0 10px;
  font-size: 14px;
}

.legal-main h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}

.legal-main p {
  margin: 0 0 12px;
}

.legal-main a {
  color: #0faf7c;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.legal-modal.is-open,
.legal-modal:not([hidden]) {
  display: flex;
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.legal-modal__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  height: min(82vh, 760px);
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.legal-modal__head h3 {
  margin: 0;
  font-size: 14px;
}

.legal-modal__close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.legal-modal__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 20px 28px;
  line-height: 1.75;
  font-size: 14px;
}

.legal-modal__body h1 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.legal-modal__body h2 {
  margin: 22px 0 8px;
  font-size: 14px;
}

.legal-modal__body h3 {
  margin: 16px 0 6px;
  font-size: 14px;
}

.legal-modal__loading {
  margin: 24px 0;
  color: #6b7280;
}

.login-check {
  cursor: default;
}

.login-check input {
  cursor: pointer;
}

.login-check__text {
  line-height: 1.5;
}

.login-check a {
  position: relative;
  z-index: 5;
  color: #0faf7c;
  font-weight: 600;
  text-decoration: none;
  pointer-events: auto;
}

.login-check a:hover {
  text-decoration: underline;
}
