/* 이용약관·개인정보처리방침 등 정적 문서 본문 */
.legal-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.65rem;
}

.legal-section p,
.legal-section li {
    font-size: 0.9375rem;
    color: #374151;
}

.legal-section p {
    margin: 0 0 0.75rem;
}

.legal-section ol,
.legal-section ul {
    margin: 0 0 0.5rem;
    padding-left: 1.35rem;
}

.legal-section li {
    margin-bottom: 0.45rem;
}

.legal-section ul {
    list-style: disc;
}

.legal-section ul li {
    margin-bottom: 0.35rem;
}

/* 위탁·법적 표: 가로 스크롤(모바일) */
.legal-table-wrap {
    overflow-x: auto;
    margin: 0.75rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: #374151;
}

.legal-table th,
.legal-table td {
    border: 1px solid #e5e7eb;
    padding: 0.55rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.legal-section .legal-table ul {
    margin: 0.25rem 0 0;
    padding-left: 1.1rem;
}

/* 헤더 우측: 개정본 드롭다운(콤팩트) */
.legal-rev-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.legal-rev-corner {
    position: relative;
}

.legal-history-select {
    font-family: inherit;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
}

.legal-history-select--corner {
    max-width: 10.5rem;
    width: min(10.5rem, 36vw);
    padding: 0.28rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.35;
    cursor: pointer;
}

@media (min-width: 640px) {
    .legal-history-select--corner {
        max-width: 12rem;
        width: auto;
        min-width: 9rem;
        font-size: 0.8125rem;
        padding: 0.32rem 0.5rem;
    }
}
