/* 약관·개인정보 처리방침 읽기 화면(terms-pages.js). 모바일은 전체 화면, 넓은 화면은 가운데 640px. */
.terms-doc{width:100%;max-width:640px;height:100dvh;max-height:100dvh;margin:0 auto;padding:0;border:0;background:var(--paper,#fff);color:var(--ink,#17191f);overflow:hidden;overscroll-behavior:contain}
.terms-doc[open]{display:flex;flex-direction:column}
.terms-doc::backdrop{background:#17191f66}
@media(min-width:700px){.terms-doc{height:min(88dvh,860px);margin:auto;border-radius:var(--radius-card,16px);box-shadow:0 8px 28px #17191f18}}
.terms-doc-head{display:flex;align-items:center;gap:8px;flex:none;min-height:56px;padding:4px 8px 4px 4px;padding-top:calc(4px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--line,#e5e9ef)}
.terms-doc-head .iconbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;background:none;color:inherit;border-radius:50%}
.terms-doc-head h2{margin:0;min-width:0;font-size:var(--text-section,19px);line-height:var(--lh-section,1.35);font-weight:var(--w-bold,700);letter-spacing:var(--track-tight,-0.02em);overflow-wrap:anywhere}
.terms-doc-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:16px 16px 24px;word-break:keep-all;overflow-wrap:anywhere;font-size:var(--text-control,15px);line-height:var(--lh-body,1.55);outline:0}
.terms-doc-meta{margin:0 0 12px;font-size:var(--text-meta,13px);line-height:var(--lh-meta,1.45);color:var(--muted,#626873)}
.terms-doc-note{margin:24px 0 12px;text-align:center;font-size:var(--text-body,16px);color:var(--muted,#626873)}
.terms-doc-body>.secondary{display:block;margin:0 auto}
.terms-doc-text h2{margin:24px 0 8px;font-size:var(--text-body,16px);line-height:1.4;font-weight:var(--w-bold,700);letter-spacing:var(--track-tight,-0.02em)}
.terms-doc-text h2:first-child{margin-top:0}
.terms-doc-text p{margin:0 0 10px}
.terms-doc-text ol,.terms-doc-text ul{margin:0 0 10px;padding-left:1.4em}
.terms-doc-text li{margin:0 0 6px}
.terms-doc-text a{color:inherit;text-decoration:underline;text-underline-offset:2px}
/* 표는 좁은 화면에서 행마다 카드로 쌓아 가로 스크롤이 생기지 않게 */
.terms-table{margin:0 0 12px}
.terms-table table,.terms-table tbody,.terms-table tr,.terms-table td{display:block;width:100%}
.terms-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.terms-table tr{margin:0 0 8px;padding:10px 12px;border:1px solid var(--line,#e5e9ef);border-radius:var(--radius-control,12px)}
.terms-table td{padding:2px 0;font-size:var(--text-control,15px)}
.terms-table td::before{content:attr(data-label);display:block;font-size:var(--text-small,12px);color:var(--muted,#626873)}
.terms-doc-foot{flex:none;display:flex;justify-content:center;padding:4px 16px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e5e9ef)}
.terms-doc-foot .textbtn{min-height:48px;padding:0 12px;font-size:var(--text-control,15px)}
