:root {
  color-scheme: light;
  --ink: #162638;
  --soft-ink: #4e6070;
  --muted: #728291;
  --line: rgba(42, 74, 94, 0.14);
  --canvas: #f5f8fb;
  --paper: rgba(255, 255, 255, 0.86);
  --brand: #1e7a8e;
  --brand-deep: #123f56;
  --danger: #b42318;
  --success: #087a55;
  --shadow: 0 26px 72px rgba(20, 54, 76, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 0%, rgba(211, 244, 229, 0.86), transparent 28rem),
    radial-gradient(circle at 95% 8%, rgba(216, 234, 251, 0.94), transparent 32rem),
    var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
.wrap { width: min(940px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 18px rgba(24, 72, 92, 0.18); }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 0.1em; }
.site-nav { display: flex; gap: 18px; color: var(--soft-ink); font-size: 13px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--brand); }

main { padding: 34px 0 72px; }
.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.page-intro, .legal-section, .form-card, .notice-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.page-intro { margin-bottom: 16px; padding: clamp(26px, 5vw, 48px); border-radius: 30px; box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: 0.14em; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1.08; letter-spacing: -0.055em; }
.intro { max-width: 760px; margin: 20px 0 0; color: var(--soft-ink); font-size: 16px; line-height: 1.85; }
.meta { margin-top: 18px; color: var(--muted); font-size: 12px; }
.legal-list { display: grid; gap: 12px; }
.legal-section { padding: 24px 26px; border-radius: 22px; }
.legal-section h2, .notice-card h2 { margin: 0 0 9px; font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; }
.legal-section p, .notice-card p, .notice-card li { margin: 0; color: var(--soft-ink); font-size: 14px; line-height: 1.86; }

.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr); gap: 14px; align-items: start; }
.form-card, .notice-card { padding: 26px; border-radius: 24px; }
.field { display: block; margin-bottom: 18px; }
.field-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 780; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
input, textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(40, 72, 92, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
input { min-height: 48px; padding: 0 14px; }
textarea { min-height: 112px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(30, 122, 142, 0.13); }
.submit-button {
  display: inline-flex;
  min-height: 50px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 27px rgba(21, 81, 101, 0.24);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.submit-button:hover { transform: translateY(-1px); box-shadow: 0 15px 31px rgba(21, 81, 101, 0.28); }
.submit-button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.form-status { min-height: 0; margin: 14px 0 0; border-radius: 14px; font-size: 13px; line-height: 1.7; }
.form-status:not(:empty) { min-height: 48px; padding: 12px 14px; background: rgba(30, 122, 142, 0.09); color: var(--brand-deep); }
.form-status[data-state="success"] { background: rgba(8, 122, 85, 0.1); color: var(--success); }
.form-status[data-state="error"] { background: rgba(180, 35, 24, 0.08); color: var(--danger); }
.notice-card ul { margin: 12px 0 0; padding-left: 20px; }
.notice-card li + li { margin-top: 8px; }
.warning { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }

footer { padding: 0 0 46px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-bottom: 5px; }
.footer-links a { color: var(--brand-deep); font-weight: 700; text-decoration: none; }

a:focus-visible, button:focus-visible { outline: 3px solid rgba(30, 122, 142, 0.36); outline-offset: 4px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 620px); }
  .site-header { min-height: 72px; }
  .site-nav { display: none; }
  main { padding: 24px 0 54px; }
  .page-intro { border-radius: 24px; }
  .legal-section { padding: 21px; border-radius: 19px; }
  .account-layout { grid-template-columns: 1fr; }
  .form-card, .notice-card { padding: 22px; border-radius: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .page-intro, .legal-section, .form-card, .notice-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
