/**
 * 약관 및 정책 페이지 스타일
 * - terms.php 전용
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; background: #fff; min-height: 100vh; }
.wrap { max-width: 480px; margin: 0 auto; }

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    z-index: 100;
}
.header__back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}
.header__title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}
.header__right { width: 40px; }

/* 탭 */
.tabs {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 99;
}
.tab-btn {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* 컨텐츠 */
.content {
    padding: 120px 16px 32px;
}
.policy-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.policy-content h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
}
.policy-content h2:first-child {
    margin-top: 0;
}
.policy-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
