.terms-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 20px 20px;
}

.terms-tab-buttons {
    display: flex;
    margin-bottom: 24px;
}

.terms-tab-btn {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.terms-tab-btn.terms-active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
    font-weight: 600;
}

.terms-tab-content {
    display: none;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.terms-tab-content.terms-active {
    display: block;
}

@media screen and (max-width: 768px) {
    .terms-box {
        padding: 24px;
        margin: 120px 16px 60px;
        border-radius: 12px;
    }

    /* 🔹 버튼 가로 정렬로 변경 */
    .terms-tab-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .terms-tab-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: auto;
        border-radius: 20px;
        background-color: #f9f9f9;
        border: 1px solid #dfdfdf;
        color: #666;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .terms-tab-btn.terms-active {
        background-color: #007bff;
        border-color: #007bff;
        color: #fff;
        font-weight: 600;
    }

    .terms-tab-content h2 {
        font-size: 1.3rem;
        margin-bottom: 16px;
        text-align: center;
    }

    .terms-tab-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        word-break: keep-all;
    }
}
