:root { color-scheme: light; }
body.agreement-page { margin: 0; background: #f8f5f0; color: #333; }
.agreement-document { max-width: 800px; margin: 0 auto; padding: 32px 20px 48px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.75; color: #333; overflow-wrap: anywhere; }
.agreement-document h1 { margin: 0 0 20px; color: #20332e; font-size: 24px; line-height: 1.4; text-align: center; }
.agreement-document h2 { margin: 30px 0 14px; padding-left: 10px; border-left: 4px solid #b45146; color: #20332e; font-size: 17px; line-height: 1.5; }
.agreement-document p { margin: 0 0 16px; text-align: justify; }
.agreement-document ul, .agreement-document ol { margin: 0 0 16px; padding-left: 22px; }
.agreement-document li { margin: 0 0 8px; }
.agreement-document strong { color: #242424; }
.agreement-document .agreement-date { color: #6b7771; font-size: 12px; text-align: center; }
@media (max-width: 600px) { .agreement-document { padding: 26px 20px max(36px, env(safe-area-inset-bottom)); } .agreement-document h1 { font-size: 22px; } }
.agreement-open { overflow: hidden; }
.agreement-screen { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; margin: 0 auto; background: #f8f5f0; color: #20332e; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.agreement-screen-header { position: relative; display: flex; flex: none; align-items: center; justify-content: center; min-height: 52px; padding: 6px 56px; background: #fff; border-bottom: 1px solid #e8e2dc; box-sizing: border-box; text-align: center; }
.agreement-screen-header strong { font-size: 16px; line-height: 1.4; }
.agreement-back { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #20332e; font: inherit; font-size: 32px; line-height: 1; cursor: pointer; }
.agreement-back:focus-visible, .agreement-card:focus-visible { outline: 2px solid #b45146; outline-offset: 2px; }
.agreement-screen-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.agreement-list-page { max-width: 800px; margin: 0 auto; padding: 24px 18px 40px; box-sizing: border-box; }
.agreement-list-page h1 { margin: 0 0 8px; font-size: 23px; line-height: 1.4; }
.agreement-list-page > p { margin: 0 0 22px; color: #718078; font-size: 13px; line-height: 1.6; }
.agreement-list { display: grid; gap: 10px; }
.agreement-card { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 82px; padding: 16px 18px; border: 1px solid #eee7df; border-radius: 12px; background: #fff; box-sizing: border-box; color: #20332e; text-align: left; cursor: pointer; }
.agreement-card.active { border-color: #c66850; background: #fff9f6; }
.agreement-card-main { display: grid; gap: 5px; min-width: 0; }
.agreement-card-main strong { font-size: 16px; line-height: 1.4; }
.agreement-card-main small { color: #718078; font-size: 12px; line-height: 1.5; }
.agreement-card-arrow { margin-left: 14px; color: #a6aaa5; font-size: 28px; }
.agreement-screen-detail .agreement-document { padding-top: 24px; }
.agreement-screen-detail .agreement-document h1 { display: none; }
.agreement-dialog-state { padding: 40px 20px; color: #617068; font-size: 13px; text-align: center; }
@media (min-width: 801px) { .agreement-screen { max-width: 800px; box-shadow: 0 0 0 100vmax rgba(27, 38, 34, .58); } }
