:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #232323;
  background: #f7f8fa;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f7f8fa; }
a { color: #155f9e; text-underline-offset: 3px; }
button, input { font: inherit; letter-spacing: 0; }

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #dfe3e8;
  background: rgba(255, 255, 255, 0.96);
}

.legal-topbar-inner,
.legal-main,
.legal-footer-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-topbar-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand { color: #1f2933; text-decoration: none; font-weight: 700; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; font-size: 13px; }
.legal-nav a { color: #52606d; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: #111827; font-weight: 700; }

.legal-main { padding: 46px 0 60px; }
.legal-header { padding-bottom: 28px; border-bottom: 1px solid #dfe3e8; }
.legal-kicker { margin: 0 0 8px; color: #68737d; font-size: 13px; }
.legal-header h1 { margin: 0; font-size: 32px; line-height: 1.25; }
.legal-summary { max-width: 760px; margin: 14px 0 0; color: #52606d; line-height: 1.8; }

.legal-section { padding: 26px 0; border-bottom: 1px solid #e3e7eb; }
.legal-section h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.4; }
.legal-section h3 { margin: 20px 0 8px; font-size: 15px; }
.legal-section p, .legal-section li { color: #3e4c59; line-height: 1.85; }
.legal-section p { margin: 8px 0; }
.legal-section ul, .legal-section ol { margin: 8px 0; padding-left: 22px; }
.legal-note { border-left: 3px solid #2878b5; padding: 10px 0 10px 16px; color: #334e68; }
.legal-warning { border-left-color: #b7791f; color: #744210; }

.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.legal-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f2933;
  border-radius: 6px;
  padding: 8px 16px;
  background: #1f2933;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.legal-button.secondary { background: #fff; color: #1f2933; border-color: #c8d0d8; }
.legal-button:disabled { opacity: 0.55; cursor: not-allowed; }

.deletion-form { max-width: 720px; }
.deletion-confirm { display: flex; align-items: flex-start; gap: 10px; color: #3e4c59; line-height: 1.7; }
.deletion-confirm input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.deletion-status { min-height: 52px; margin: 18px 0 0; border-left: 3px solid #9aa5b1; padding: 10px 0 10px 16px; color: #52606d; line-height: 1.7; }
.deletion-status.is-error { border-left-color: #c53030; color: #9b2c2c; }
.deletion-status.is-success { border-left-color: #2f855a; color: #276749; }
.deletion-meta { margin: 8px 0 0; color: #68737d; font-size: 13px; }

.legal-footer { border-top: 1px solid #dfe3e8; background: #fff; }
.legal-footer-inner { padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 14px; color: #68737d; font-size: 13px; }

@media (max-width: 680px) {
  .legal-topbar-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .legal-nav { justify-content: flex-start; gap: 10px 14px; }
  .legal-main { padding-top: 32px; }
  .legal-header h1 { font-size: 27px; }
}
