:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #171717;
  background: #f6f6f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; cursor: pointer; transition: color 180ms ease; }
a:hover { color: #bb2020; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #171717; outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 12px 20px;
  color: #fff;
  background: #171717;
}
.skip-link:focus { top: 12px; color: #fff; }
.site-header { border-bottom: 1px solid #e4e4e4; background: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 750; line-height: 1.2; }
.brand img { flex: 0 0 40px; border-radius: 8px; }
.brand small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0.08em; font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-current { color: #b52222; font-weight: 700; }
.page-shell { max-width: 960px; margin: 0 auto; padding: 56px 28px 48px; }
.reading-shell { max-width: 920px; }
.page-heading { margin-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: #ad2424; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.muted { margin: 0; color: #555; font-size: 14px; }
.document-card { padding: 42px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fff; }
.policy-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; font-size: 16px; }
.text-link { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding: 8px 24px 40px; color: #555; text-align: center; font-size: 13px; }
.site-footer span { margin: 0 8px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.field-group { margin-bottom: 28px; }
label { display: block; margin-bottom: 10px; font-weight: 650; font-size: 15px; }
.required-text { margin-left: 6px; color: #686868; font-size: 12px; font-weight: 400; }
input:not([type="hidden"]), textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bcbcbc;
  border-radius: 6px;
  background: #fff;
  color: #171717;
  transition: border-color 180ms ease;
}
input:hover, textarea:hover { border-color: #555; }
input:focus-visible, textarea:focus-visible { outline-width: 2px; outline-offset: 2px; }
textarea { resize: vertical; line-height: 1.8; min-height: 360px; }
.field-hint { margin: 0 0 12px; color: #555; font-size: 13px; }
.password-field .field-hint { margin: 10px 0 0; }
.publish-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 26px; border-top: 1px solid #e5e5e5; }
.password-field { flex: 1; min-width: 200px; margin-bottom: 0; }
.primary-button { min-height: 48px; padding: 12px 26px; border: 1px solid #171717; border-radius: 6px; color: #fff; background: #171717; font-weight: 650; white-space: nowrap; transition: background-color 180ms ease; }
.primary-button:hover { background: #383838; }
.save-hint { margin: 22px 0 0; color: #555; font-size: 12px; }
.notice { margin: 0 0 24px; padding: 14px 18px; border: 1px solid; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.notice-error { color: #982323; border-color: #e6b4b4; background: #fff5f5; }
.notice-success { color: #205936; border-color: #a7cfb3; background: #f0faf3; }
fieldset:disabled { opacity: 0.65; }
fieldset:disabled button { cursor: not-allowed; }

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 8px 18px; padding: 16px 20px; }
  .brand { font-size: 19px; }
  nav { gap: 16px; font-size: 13px; }
  .page-shell { padding: 32px 16px; }
  .page-heading { margin-bottom: 24px; }
  .document-card { padding: 24px 20px; border-radius: 8px; }
  .policy-content { font-size: 15px; }
  .publish-panel { align-items: stretch; gap: 18px; }
  .password-field { min-width: 100%; }
  .primary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  a, input, textarea, .primary-button { transition: none; }
}

@media print {
  :root { background: #fff; }
  .site-header, .site-footer, .skip-link { display: none; }
  .page-shell { max-width: none; padding: 0; }
  .document-card { border: 0; padding: 0; }
}
