/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.btn-home {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-home:hover {
    background: #5568d3;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.terms-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 약관 헤더 */
.terms-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.terms-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.last-updated {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 약관 내용 */
.terms-content {
    padding: 40px 30px;
    min-height: 400px;
}

.terms-text {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.terms-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.terms-text h2:first-child {
    margin-top: 0;
}

.terms-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 25px;
    margin-bottom: 12px;
}

.terms-text p {
    margin-bottom: 15px;
}

.terms-text ul,
.terms-text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-text li {
    margin-bottom: 8px;
}

.terms-text strong {
    font-weight: 600;
    color: #2d3748;
}

.terms-text a {
    color: #667eea;
    text-decoration: underline;
}

.terms-text a:hover {
    color: #5568d3;
}

/* 데이터 없음 */
.no-data {
    text-align: center;
    padding: 80px 20px;
}

.no-data p {
    font-size: 18px;
    color: #868e96;
}

/* 약관 푸터 */
.terms-footer {
    padding: 30px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* 버튼 */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

/* 푸터 */
.footer {
    background: #2d3748;
    color: white;
    padding: 25px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content p {
    margin: 0;
    color: #a0aec0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-links a.highlight {
    color: #667eea;
    font-weight: 600;
}

.footer-links .separator {
    color: #4a5568;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .terms-header {
        padding: 30px 20px;
    }
    
    .terms-header h1 {
        font-size: 24px;
    }
    
    .terms-content {
        padding: 30px 20px;
    }
    
    .terms-text {
        font-size: 14px;
    }
    
    .terms-text h2 {
        font-size: 20px;
    }
    
    .terms-text h3 {
        font-size: 17px;
    }
    
    .terms-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .terms-footer .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 0;
    }
    
    .terms-wrapper {
        border-radius: 8px;
    }
    
    .terms-header h1 {
        font-size: 22px;
    }
    
    .last-updated {
        font-size: 13px;
    }
}

/* 프린트 스타일 */
@media print {
    .header,
    .terms-footer,
    .footer {
        display: none;
    }
    
    .terms-wrapper {
        box-shadow: none;
    }
    
    .terms-content {
        padding: 0;
    }
    
    body {
        background: white;
    }
}
