/* 이용약관 페이지 스타일 */
.terms-section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

.terms-section h1 {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 30px;
    text-align: center;
}

.terms-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.terms-card h2 {
    color: #8e44ad;
    margin-bottom: 15px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.terms-card h3 {
    color: #444;
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.terms-card p, .terms-card ul, .terms-card ol {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.terms-card ul, .terms-card ol {
    padding-left: 30px;
}

.terms-card li {
    margin-bottom: 10px;
}

.terms-card .date {
    text-align: right;
    margin-top: 20px;
    color: #777;
    font-style: italic;
}

.back-to-home {
    display: inline-block;
    background-color: #8e44ad;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.back-to-home:hover {
    background-color: #7d32a8;
}

.table-of-contents {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.table-of-contents h3 {
    margin-top: 0;
    color: #8e44ad;
}

.table-of-contents ol {
    padding-left: 20px;
}

.table-of-contents li {
    margin-bottom: 5px;
}

.table-of-contents a {
    color: #333;
    text-decoration: none;
}

.table-of-contents a:hover {
    color: #8e44ad;
    text-decoration: underline;
}

/* 애니메이션 효과 */
.terms-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.terms-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .terms-section {
        padding: 30px 15px;
    }
    
    .terms-section h1 {
        font-size: 2rem;
    }
    
    .terms-card h2 {
        font-size: 1.5rem;
    }
    
    .terms-card h3 {
        font-size: 1.2rem;
    }
    
    .terms-card p, .terms-card ul, .terms-card ol {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .terms-section h1 {
        font-size: 1.8rem;
    }
    
    .terms-card {
        padding: 20px;
    }
    
    .table-of-contents {
        padding: 15px;
    }
}