.legal-document {
     max-width: 1060px;
    margin: 0 auto;
    color: var(--user-text);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* 고객센터와 통일한 상단 타이틀 영역 */
.legal-document__header {
    position: relative;
    margin-bottom: 12px;
    padding: 27px 120px 27px 32px;
    background: #f7f9fc;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    line-height: 1.6;
}

.legal-document__header h1 {
    margin: 0 0 6px;
    color: #14233b;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.4;
}

.legal-document__header > p:not(.legal-document__status) {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.legal-document__header::after {
    content: "";
    position: absolute;
    right: 32px;
    top: 50%;
    width: 55px;
    height: 55px;
    transform: translateY(-50%);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* 이용약관: 문서 아이콘 */
.legal-document[aria-labelledby="terms-title"] .legal-document__header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5c6dc' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h8'/%3E%3C/svg%3E");
}

/* 개인정보처리방침: 보안 아이콘 */
.legal-document[aria-labelledby="privacy-title"] .legal-document__header::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5c6dc' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

.legal-document p {
    margin: 0 0 10px;
}

.legal-document p:last-child,
.legal-document ul:last-child {
    margin-bottom: 0;
}

.legal-document .legal-document__status {
    margin: 0 0 8px;
    color: #78869a;
    font-size: 12px;
    line-height: 1.5;
}

.legal-document section {
    padding: 24px 0;
    border-bottom: 1px solid var(--user-border);
}

.legal-document h2 {
    margin: 0 0 10px;
    font-size: clamp(17px, 3vw, 20px);
    line-height: 1.45;
}

.legal-document__items {
    display: grid;
    gap: 12px;
    margin: 0 0 14px;
}

.legal-document__items dt {
    font-weight: 700;
}

.legal-document__items dd {
    margin: 2px 0 0;
}

.legal-document ul {
    margin: 0 0 10px;
    padding-inline-start: 22px;
}

.legal-document a {
    color: var(--user-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-document .legal-document__note {
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--user-bg);
}

@media (max-width: 640px) {
    .legal-document__header {
        margin-bottom: 8px;
        padding: 22px 70px 22px 20px;
        border-radius: 8px;
    }

    .legal-document__header h1 {
        letter-spacing: -0.7px;
    }

    .legal-document__header > p:not(.legal-document__status) {
        font-size: 13px;
    }

    .legal-document__header::after {
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .legal-document section {
        padding: 20px 0;
    }
}
