/* Terms page — all-ling.com/terms */

body#terms {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #f9fafb;
}

body#terms #header {
    background-color: #fff;
}

body#terms #header:before {
    background-color: #ececec;
}

body#terms #header .menu_box .dep1 > a > span,
body#terms #header.scroll .menu_box .dep1 > a > span {
    color: #111;
}

body#terms #header .member_btn ul li a,
body#terms #header.scroll .member_btn ul li a {
    color: #979b9b;
}

body#terms #header .member_btn ul li:before {
    background: #c6c6c6;
    opacity: 1;
}

body#terms #header .menu_btn span {
    background-color: #111;
}

.al-terms-page {
    padding-top: 100px;
    padding-bottom: 80px;
}

.al-terms-hero {
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    padding: 56px 24px 40px;
}

.al-terms-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}

.al-terms-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.al-terms-hero h1 {
    font-size: 32px;
    font-weight: 900;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin: 0 0 12px;
}

.al-terms-hero p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0;
}

.al-terms-tabs {
    display: flex;
    gap: 8px;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

.al-terms-tab {
    flex: 1;
    max-width: 220px;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.al-terms-tab.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.al-terms-body-wrap {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.al-terms-panel {
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 48px;
}

.al-terms-panel.is-active {
    display: block;
}

.al-terms-panel > h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #111827;
}

/* Shared content styles (page + join agree box) */
.al-terms-section .al-terms-date,
.al-terms-body .al-terms-date {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px;
}

.al-terms-section h3,
.al-terms-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 28px 0 12px;
}

.al-terms-section h3:first-of-type,
.al-terms-body h3:first-of-type {
    margin-top: 0;
}

.al-terms-section p,
.al-terms-body p {
    font-size: 15px;
    color: #374151;
    line-height: 1.75;
    margin: 0 0 12px;
}

.al-terms-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.al-terms-list {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
}

.al-terms-list li {
    margin-bottom: 8px;
}

.al-terms-bullets {
    list-style: disc;
}

.al-terms-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.al-terms-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.al-terms-table th,
.al-terms-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    color: #374151;
    line-height: 1.5;
}

.al-terms-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.al-terms-contact {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

/* Join agree box compact styles */
.agree_cont .al-terms-body {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.agree_cont .al-terms-body h3 {
    font-size: 14px;
    margin: 18px 0 8px;
    color: #333;
}

.agree_cont .al-terms-body p,
.agree_cont .al-terms-body li {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.agree_cont .al-terms-body .al-terms-table {
    font-size: 12px;
}

.agree_cont .al-terms-body .al-terms-table th,
.agree_cont .al-terms-body .al-terms-table td {
    padding: 8px 10px;
}

@media (max-width: 768px) {
    .al-terms-page {
        padding-top: 80px;
    }

    .al-terms-hero h1 {
        font-size: 24px;
    }

    .al-terms-tabs {
        flex-direction: column;
    }

    .al-terms-tab {
        max-width: none;
    }

    .al-terms-panel {
        padding: 24px 20px;
    }

    .al-terms-panel > h2 {
        font-size: 20px;
    }
}
