@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

/* 약관 페이지 스타일 */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.terms-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 32px;
    text-align: center;
}

.terms-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.terms-tabs::-webkit-scrollbar {
    height: 6px;
}

.terms-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.terms-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.terms-tabs::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.terms-tab {
    padding: 12px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.terms-tab:hover {
    background: #e5e5e5;
    color: #1a1a1a;
}

.terms-tab.active {
    background: #0078FF;
    color: #ffffff;
    font-weight: 600;
}

.terms-content {
    position: relative;
}

.terms-item {
    display: none;
    line-height: 1.8;
    color: #1a1a1a;
}

.terms-item.active {
    display: block;
}

.terms-item h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
}

.terms-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 12px;
}

.terms-item p {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* 반응형 */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 16px 60px;
    }

    .terms-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .terms-tabs {
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .terms-tab {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 6px;
    }

    .terms-item h2 {
        font-size: 20px;
    }

    .terms-item h3 {
        font-size: 16px;
        margin-top: 24px;
    }

    .terms-item p {
        font-size: 14px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }

    .company-info-row {
        margin-bottom: 8px;
        flex-direction: column;
    }

    .info-item {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
}
