/* 개인정보처리방침 페이지 스타일 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #fff;
    color: #191f28;
    /* -webkit-font-smoothing: antialiased; */
}

/* 페이지 헤더 */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e5e8eb;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #191f28;
    margin-right: 8px;
}

.page-header__title {
    font-size: 18px;
    font-weight: 600;
    color: #191f28;
}

/* 페이지 컨텐츠 */
.page-content {
    padding-top: 56px;
    min-height: 100vh;
    max-width: 640px;
    margin: 0 auto;
}

/* 버전 정보 */
.version-info {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e8eb;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #3182F6;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    gap: 4px;
}

.version-date {
    font-size: 15px;
    color: #4e5968;
}

/* 방침 내용 */
.policy-content {
    padding: 24px 20px;
    line-height: 1.8;
}

.policy-content h1 {
    font-size: 24px;
    font-weight: 700;
    color: #191f28;
    margin-bottom: 24px;
    line-height: 1.4;
}

.policy-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #191f28;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.policy-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #191f28;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.policy-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #191f28;
    margin-top: 20px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.policy-content p {
    font-size: 15px;
    color: #4e5968;
    margin-bottom: 16px;
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    font-size: 15px;
    color: #4e5968;
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.policy-content strong {
    font-weight: 600;
    color: #191f28;
}

.policy-content a {
    color: #3182F6;
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

.policy-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: #f9fafb;
    border-left: 4px solid #3182F6;
    border-radius: 0 8px 8px 0;
}

.policy-content blockquote p {
    margin-bottom: 0;
}

.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.policy-content table th,
.policy-content table td {
    border: 1px solid #e5e8eb;
    padding: 12px;
    text-align: left;
}

.policy-content table th {
    background: #f9fafb;
    font-weight: 600;
    color: #191f28;
}

.policy-content table td {
    color: #4e5968;
}

.policy-content code {
    padding: 2px 6px;
    background: #f4f5f7;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    color: #f04452;
}

.policy-content pre {
    padding: 16px;
    background: #191f28;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.policy-content pre code {
    background: none;
    color: #f9fafb;
    padding: 0;
}

/* 로딩 상태 */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: #8b95a1;
}

.loading-content .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f4f5f7;
    border-top-color: #3182F6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content p {
    font-size: 15px;
    margin: 0;
}

/* 에러 상태 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: #8b95a1;
}

.error-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
    color: #f04452;
}

.error-state p {
    font-size: 15px;
    margin: 0;
}

/* 업체 정보 */
.company-info-content {
    padding: 20px;
}

.company-info-card {
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 12px;
    padding: 6px 18px;
}

.company-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f2f4f6;
    font-size: 15px;
}

.company-info-row:last-child {
    border-bottom: none;
}

.company-info-label {
    color: #8b95a1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.company-info-label svg {
    width: 15px;
    height: 15px;
}

.company-info-value {
    color: #191f28;
    text-align: right;
    word-break: break-all;
    line-height: 1.5;
}

.company-phone {
    color: #3182F6;
    text-decoration: none;
}

/* 반응형 */
@media (max-width: 640px) {
    .page-content {
        max-width: 100%;
    }

    .policy-content {
        padding: 20px 16px;
    }

    .company-info-content {
        padding: 20px 16px;
    }

    .company-info-card {
        padding: 4px 16px;
    }

    .company-info-row {
        font-size: 14px;
        gap: 14px;
    }

    .policy-content h1 {
        font-size: 22px;
    }

    .policy-content h2 {
        font-size: 18px;
    }

    .policy-content h3 {
        font-size: 16px;
    }

    .policy-content table {
        font-size: 13px;
    }

    .policy-content table th,
    .policy-content table td {
        padding: 8px;
    }
}

@media (min-width: 641px) {
    .page-header {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* =========================================
   PC(웹) 레이아웃 조정
   ========================================= */
body.lb-platform-web .page-header { display: none !important; }
body.lb-platform-web .page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}
