:root {
  --ink: #14203a;
  --muted: #68758b;
  --line: #e6eaf2;
  --blue: #246cf2;
  --blue-light: #eef4ff;
  --surface: #f6f8fc;
  --white: #fff;
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; }
body { width: 100%; max-width: 100%; margin: 0; color: var(--ink); background: var(--surface); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.agreement-header { height: 76px; position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(222,227,237,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.header-inner { width: min(1120px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.agreement-brand { display: flex; align-items: center; gap: 11px; }
.agreement-brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 20px rgba(83,50,196,.18); }
.agreement-brand > div { display: flex; flex-direction: column; gap: 3px; }
.agreement-brand strong { font-size: 18px; letter-spacing: .08em; }
.agreement-brand div span { color: #929bab; font-size: 10px; }
.back-link { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: #5d697e; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 650; transition: .2s ease; }
.back-link:hover { color: var(--blue); border-color: #cbdcff; transform: translateX(-2px); }

.agreement-shell { width: min(1120px, calc(100% - 40px)); margin: auto; }
.agreement-hero { padding: 66px 0 42px; text-align: center; }
.hero-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.agreement-hero h1 { margin: 13px 0 14px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.04em; }
.agreement-hero p { margin: 0; color: var(--muted); font-size: 14px; }

.agreement-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.agreement-aside { padding: 23px 18px; position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 19px; }
.aside-label { display: block; margin: 0 8px 13px; color: #a0a8b7; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.agreement-aside nav { display: grid; gap: 2px; }
.agreement-aside a { padding: 9px 10px; color: #6d788d; border-radius: 9px; font-size: 11px; line-height: 1.45; transition: .2s ease; }
.agreement-aside a:hover, .agreement-aside a.active { color: var(--blue); background: var(--blue-light); }

.agreement-document { min-width: 0; padding: 52px 62px 66px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 18px 55px rgba(34,52,94,.06); }
.document-head { padding-bottom: 33px; border-bottom: 1px solid var(--line); }
.document-type { display: inline-block; margin-bottom: 13px; padding: 6px 9px; color: var(--blue); background: var(--blue-light); border-radius: 7px; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.document-company { margin: 0 0 10px; color: #7c879a; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.document-head h1 { margin: 0 0 17px; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.04em; }
.document-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #929bab; font-size: 11px; }
.document-lead { margin: 28px 0 0; color: #536078; font-size: 14px; line-height: 2; }
.important-notice { margin: 25px 0 5px; padding: 19px 21px; color: #725229; background: #fff8ec; border: 1px solid #f9e5c5; border-radius: 13px; font-size: 13px; line-height: 1.85; }
.agreement-section { padding-top: 37px; }
.agreement-section h2 { margin: 0 0 19px; scroll-margin-top: 170px; font-size: 20px; letter-spacing: -.02em; }
.agreement-section h3 { margin: 23px 0 9px; color: #2c3952; font-size: 15px; }
.agreement-section p { margin: 0 0 13px; color: #58657b; font-size: 14px; line-height: 2; }
.agreement-section ol, .agreement-section ul { margin: 11px 0 17px; padding-left: 22px; color: #58657b; }
.agreement-section li { margin: 8px 0; padding-left: 4px; font-size: 14px; line-height: 1.9; }
.agreement-section strong { color: #26344d; font-weight: 750; }
.agreement-section a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.info-table { width: 100%; margin: 17px 0 20px; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.info-table th, .info-table td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.75; }
.info-table th { color: #46536b; background: #f7f9fc; font-weight: 750; }
.info-table td { color: #657187; }
.info-table tr:last-child td { border-bottom: 0; }
.info-table th:last-child, .info-table td:last-child { border-right: 0; }
.contact-card { margin-top: 18px; padding: 20px 22px; background: #f5f8ff; border: 1px solid #e2eaff; border-radius: 13px; }
.contact-card p:last-child { margin-bottom: 0; }
.document-loading { min-height: 460px; display: grid; place-items: center; color: #929bab; font-size: 13px; }

.agreement-footer { width: min(1120px, calc(100% - 40px)); margin: 70px auto 0; padding: 32px 0 38px; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 25px; color: #69758a; font-size: 12px; }
.footer-links a:hover, .footer-record a:hover { color: var(--blue); }
.footer-record { display: flex; justify-content: space-between; color: #9aa3b2; font-size: 10px; }

@media (max-width: 820px) {
  .agreement-shell, .agreement-footer { width: calc(100% - 28px); }
  .header-inner { width: calc(100% - 28px); }
  .agreement-layout { grid-template-columns: 1fr; }
  .agreement-aside { display: none; }
  .agreement-document { padding: 44px 38px 55px; }
}

@media (max-width: 580px) {
  html { scroll-padding-top: 16px; background: #222; }
  body { color: rgba(255,255,255,.86); background: #222; }
  .agreement-header, .agreement-hero, .agreement-aside, .agreement-footer { display: none; }
  .agreement-shell { width: 100%; margin: 0; }
  .agreement-layout { display: block; }
  .agreement-document {
    width: 100%;
    padding: max(28px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) calc(44px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
    color: rgba(255,255,255,.84);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .document-head { padding-bottom: 13px; border-bottom: 0; text-align: center; }
  .document-type { display: none; }
  .document-company { margin: 0 0 11px; color: rgba(255,255,255,.9); font-size: 15px; font-weight: 650; letter-spacing: .03em; }
  .document-head h1 { margin: 0 0 14px; color: #fff; font-size: 22px; letter-spacing: .02em; }
  .document-meta { display: grid; justify-content: center; gap: 1px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.9; }
  .document-lead { margin-top: 24px; color: rgba(255,255,255,.8); font-size: 14px; line-height: 2; text-align: justify; }
  .important-notice { margin: 18px 0 0; padding: 15px 16px; color: #ffe8c2; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.11); border-radius: 8px; font-size: 13px; line-height: 1.95; text-align: justify; }
  .agreement-section { padding-top: 27px; }
  .agreement-section h2 { margin-bottom: 13px; color: #fff; scroll-margin-top: 16px; font-size: 18px; line-height: 1.7; letter-spacing: 0; }
  .agreement-section h3 { margin: 20px 0 8px; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.8; }
  .agreement-section p { margin-bottom: 11px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 2; text-align: justify; word-break: break-word; }
  .agreement-section ol, .agreement-section ul { margin: 8px 0 14px; padding-left: 21px; color: rgba(255,255,255,.78); }
  .agreement-section li { margin: 7px 0; padding-left: 2px; font-size: 14px; line-height: 2; text-align: justify; word-break: break-word; }
  .agreement-section strong { color: #fff; font-weight: 700; }
  .agreement-section a { color: #a9c9ff; overflow-wrap: anywhere; }
  .contact-card { padding: 15px 16px; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.11); border-radius: 8px; }
  .info-table, .info-table tbody, .info-table tr, .info-table td { display: block; width: 100%; }
  .info-table { margin: 15px 0 20px; border: 0; border-radius: 0; overflow: visible; white-space: normal; }
  .info-table thead { display: none; }
  .info-table tr { margin-bottom: 13px; overflow: hidden; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); border-radius: 8px; }
  .info-table td { padding: 10px 12px; color: rgba(255,255,255,.76); border: 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 13px; line-height: 1.8; white-space: normal; word-break: break-word; }
  .info-table tr:last-child td { border-bottom: 1px solid rgba(255,255,255,.09); }
  .info-table td:last-child { border-bottom: 0; }
  .info-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 650; }
}

@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
