/* ============================================
   약관 페이지 (terms_*)
============================================ */

/* Intro box (개정일 + 요약) */
.terms_intro {
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(16, 48, 80, 0.04) 0%, rgba(176, 144, 48, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 36px;
}

.terms_intro_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.terms_updated {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--main-color);
    background: rgba(16, 48, 80, 0.08);
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: -0.01em;
}

.terms_updated i {
    font-size: 13px;
}

.terms_version {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-color-light);
    font-family: "Inter", "Noto Sans KR", sans-serif;
    letter-spacing: 0.04em;
}

.terms_summary {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

/* Document */
.terms_doc {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.terms_section {
    /* base section */
}

.terms_section_callout {
    padding: 24px 26px;
    background: #fafbfc;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.terms_section_title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.terms_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    background: var(--main-color);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    font-family: "Inter", "Noto Sans KR", sans-serif;
    letter-spacing: 0.02em;
}

.terms_section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color-sub);
    margin: 0 0 12px;
}

.terms_section p:last-child {
    margin-bottom: 0;
}

/* List */
.terms_list {
    margin: 0 0 12px;
    padding: 16px 22px;
    background: #fafbfc;
    border-radius: 10px;
}

.terms_list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.75;
}

.terms_list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--main-color);
}

.terms_list li strong {
    display: inline-block;
    min-width: 100px;
    color: var(--text-color);
    font-weight: 700;
    margin-right: 6px;
}

/* Table */
.terms_table_wrap {
    margin-top: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.terms_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.terms_table thead th {
    background: #fafbfc;
    color: var(--text-color);
    font-weight: 700;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

.terms_table tbody td {
    padding: 12px 14px;
    color: var(--text-color-sub);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.terms_table tbody tr:last-child td {
    border-bottom: 0;
}

.terms_table tbody td:first-child {
    color: var(--text-color);
    font-weight: 600;
}

/* Definition list (보호책임자 정보) */
.terms_dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    margin: 14px 0 0;
    border-top: 1px solid var(--border-color);
}

.terms_dl dt,
.terms_dl dd {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.terms_dl dt {
    color: var(--text-color-sub);
    font-weight: 700;
}

.terms_dl dd {
    color: var(--text-color);
}

.terms_dl dd a {
    color: var(--main-color);
    transition: color 0.15s;
}

.terms_dl dd a:hover {
    color: var(--main-color-light);
    text-decoration: underline;
}

.terms_dl > :nth-last-child(-n+2) {
    border-bottom: 0;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .terms_intro {
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    .terms_intro {
        padding: 16px 18px;
        margin-bottom: 28px;
    }

    .terms_intro_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .terms_summary {
        font-size: 13px;
    }

    .terms_doc {
        gap: 28px;
    }

    .terms_section_title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .terms_num {
        min-width: 26px;
        height: 22px;
        font-size: 11px;
        padding: 0 6px;
    }

    .terms_section p {
        font-size: 13px;
    }

    .terms_list {
        padding: 14px 18px;
    }

    .terms_list li {
        font-size: 13px;
    }

    .terms_list li strong {
        display: block;
        min-width: 0;
        margin-bottom: 2px;
    }

    .terms_table {
        font-size: 12px;
    }

    .terms_table thead th,
    .terms_table tbody td {
        padding: 10px 12px;
    }

    .terms_section_callout {
        padding: 18px 18px;
    }

    .terms_dl {
        grid-template-columns: 70px 1fr;
    }

    .terms_dl dt,
    .terms_dl dd {
        padding: 10px 0;
        font-size: 13px;
    }
}
