/* 이용약관 래퍼 */
.terms-wrapper {
    background: #faf8f8;
    min-height: 100vh;
    padding: 60px 0;
}

.terms-wrapper .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 16px;
    color: #666;
}

/* 탭 네비게이션 */
.terms-tabs {
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-button {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    background: #faf8f8;
    color: #c76b52;
}

#tab-service:checked ~ .tab-buttons label[for="tab-service"],
#tab-privacy:checked ~ .tab-buttons label[for="tab-privacy"] {
    background: #c76b52;
    color: #fff;
    border-bottom-color: #c76b52;
}

/* 약관 내용 */
.terms-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-content {
    display: none;
}

#tab-service:checked ~ .terms-content #service-content,
#tab-privacy:checked ~ .terms-content #privacy-content {
    display: block;
}

/* 약관 정보 */
.terms-info {
    padding: 16px 20px;
    background: #faf8f8;
    border-radius: 8px;
    margin-bottom: 32px;
    text-align: right;
}

.terms-date {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 약관 블록 */
.terms-block {
    padding: 28px 0;
}

.terms-block:first-of-type {
    padding-top: 6px;
}

.terms-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.terms-heading {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.terms-text {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* 약관 리스트 */
.terms-list {
    padding-left: 24px;
    margin: 16px 0;
}

.terms-list > li {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.terms-list > li:last-child {
    margin-bottom: 0;
}

.terms-sublist {
    padding-left: 24px;
    margin-top: 12px;
}

.terms-sublist li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
    list-style-type: circle;
}


/* Responsive */
@media (max-width: 768px) {
    .terms-wrapper {
        padding: 40px 0;
    }

    .terms-wrapper .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        padding: 14px 16px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid transparent;
    }

    #tab-service:checked ~ .tab-buttons label[for="tab-service"],
    #tab-privacy:checked ~ .tab-buttons label[for="tab-privacy"],
    #tab-rental:checked ~ .tab-buttons label[for="tab-rental"] {
        border-bottom-color: transparent;
        border-left-color: #c76b52;
    }

    .terms-content {
        padding: 24px 20px;
    }

    .terms-info {
        text-align: center;
    }

    .terms-heading {
        font-size: 16px;
    }

    .terms-text {
        font-size: 14px;
    }

    .terms-list > li {
        font-size: 14px;
    }

    .terms-sublist li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .terms-wrapper .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
    }

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

    .terms-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .terms-heading {
        font-size: 15px;
        padding-left: 10px;
        border-left-width: 3px;
    }

    .terms-text {
        font-size: 13px;
    }

    .terms-list {
        padding-left: 20px;
    }

    .terms-list > li {
        font-size: 13px;
    }

    .terms-sublist {
        padding-left: 20px;
    }

    .terms-sublist li {
        font-size: 12px;
    }
}
