/* Terms of Use Page Styles - Inspired by Article Detail Design */

/* 容器與基礎布局 */
.terms-of-use-page {
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 麵包屑導航 */
.breadcrumb-section {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #FF6B6B;
    text-decoration: none;
}

.breadcrumb-separator {
    color: #cccccc;
}

.breadcrumb-current {
    color: #333333;
    font-weight: 500;
}

/* 主要內容區 */
.terms-content {
    padding: 40px 0 60px;
}

/* 頁面標題 */
.terms-header {
    text-align: center;
    margin-bottom: 60px;
    background: white;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.terms-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

.terms-subtitle-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #8336D6);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.terms-intro {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.update-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
}

/* 內容區塊 */
.terms-sections {
    max-width: 100%;
    margin: 0 auto;
}

.terms-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.terms-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

/* 區塊標題 */
.section-title {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.6rem;
    color: #333333;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #8336D6);
    border-radius: 2px;
}

/* 區塊內容 */
.section-content {
    line-height: 1.8;
    color: #333333;
    font-size: 1rem;
}

.section-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* 列表樣式 */
.section-content ol,
.section-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.section-content h4 {
    color: #333333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

/* 特殊內容框樣式 */
.notice-box,
.info-box,
.disclaimer-box,
.content-management,
.data-preservation,
.ip-restrictions,
.trademark-protection,
.authorization-terms,
.copyright-penalty,
.legal-jurisdiction,
.general-provisions,
.prohibited-list {
    background: rgba(255, 107, 107, 0.05);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.notice-box h4,
.info-box h4,
.disclaimer-box h4,
.content-management h4,
.data-preservation h4,
.ip-restrictions h4,
.trademark-protection h4,
.copyright-penalty h4,
.legal-jurisdiction h4,
.general-provisions h4,
.prohibited-list h4 {
    color: #FF6B6B;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.authorization-terms {
    background: rgba(131, 54, 214, 0.05);
    border: 1px solid rgba(131, 54, 214, 0.2);
}

.auth-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #8336D6;
}

.auth-item:last-child {
    margin-bottom: 0;
}

.auth-item h4 {
    color: #8336D6;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* 聯絡資訊區塊 */
.contact-section {
    margin-top: 50px;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B, #8336D6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info h3 {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.5rem;
    color: #333333;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-info p {
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.item-label {
    font-weight: 500;
    color: #333333;
    min-width: 90px;
}

.contact-item a {
    color: #FF6B6B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #e55555;
    text-decoration: underline;
}

/* 公司資訊區塊 */
.company-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.company-info h4,
.update-info p:first-child {
    color: #FF6B6B;
    font-weight: 600;
    margin-bottom: 8px;
}

.company-info p,
.update-info p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 4px;
}

.update-info {
    text-align: right;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .terms-header {
        padding: 40px 25px;
        margin-bottom: 40px;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-intro {
        font-size: 1rem;
    }
    
    .terms-section {
        padding: 30px 25px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-content p,
    .section-content li {
        font-size: 15px;
    }
    
    .contact-card {
        flex-direction: column;
        padding: 30px 25px;
        text-align: center;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .item-label {
        min-width: auto;
    }
    
    .company-section {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 25px 20px;
    }
    
    .update-info {
        text-align: center;
    }
    
    .notice-box,
    .info-box,
    .disclaimer-box,
    .content-management,
    .data-preservation,
    .ip-restrictions,
    .trademark-protection,
    .authorization-terms,
    .copyright-penalty,
    .legal-jurisdiction,
    .general-provisions,
    .prohibited-list,
    .auth-item {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .terms-header {
        padding: 30px 20px;
    }
    
    .terms-title {
        font-size: 1.8rem;
    }
    
    .terms-section {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-content p,
    .section-content li {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .company-section {
        padding: 20px 15px;
    }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B, #8336D6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF6B6B;
}

/* 列印樣式 */
@media print {
    .breadcrumb-section,
    .contact-section,
    .company-section {
        display: none;
    }
    
    .terms-header,
    .terms-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .terms-title {
        color: black;
    }
    
    .section-title::after {
        background: black;
    }
    
    .notice-box,
    .info-box,
    .disclaimer-box,
    .content-management,
    .data-preservation,
    .ip-restrictions,
    .trademark-protection,
    .authorization-terms,
    .copyright-penalty,
    .legal-jurisdiction,
    .general-provisions,
    .prohibited-list {
        background: #f9f9f9;
        border: 1px solid #ddd;
    }
}

/* 底部公司資訊區塊 */
.bottom-info {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
}

.bottom-info .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.company-info h4 {
    color: #FF6B6B;
    font-family: 'Noto Serif TC', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.company-info p,
.last-update-info p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.last-update-info {
    text-align: right;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .bottom-info .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .last-update-info {
        text-align: left;
    }
}
