/* ================================
   Terms of Service Page Styles
   ================================ */

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    opacity: 0.5;
}

.terms-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.terms-hero .page-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.terms-hero .page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.terms-hero .terms-meta {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.terms-hero .update-date {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

/* Table of Contents Navigation */
.terms-nav-section {
    padding: 60px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.terms-nav-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.terms-nav-wrapper .nav-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    text-align: center;
}

.terms-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.nav-column h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3498db;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 10px;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #3498db;
    background: #f8f9fa;
    padding-left: 16px;
}

/* Main Content Section */
.terms-content-section {
    padding: 80px 0;
    background: #ffffff;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Chapter Styles */
.terms-chapter {
    margin-bottom: 80px;
}

.chapter-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #3498db;
}

.chapter-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.chapter-desc {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}

/* Article Styles */
.terms-article {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.terms-article:hover {
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
}

.article-content {
    font-size: 15px;
    color: #495057;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 16px;
}

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

/* List Styles */
.numbered-list,
.definition-list,
.prohibition-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.numbered-list {
    counter-reset: item;
}

.numbered-list > li {
    counter-increment: item;
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
}

.numbered-list > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #3498db;
}

.definition-list li,
.prohibition-list li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
}

.definition-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: 700;
    font-size: 18px;
}

.prohibition-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 700;
    font-size: 18px;
}

.definition-list li strong,
.article-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* Nested Lists */
.numbered-list ul,
.article-content ul {
    margin: 12px 0;
    padding-left: 20px;
    list-style: none;
}

.numbered-list ul li,
.article-content ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.numbered-list ul li::before,
.article-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 14px;
}

/* Service Category Boxes */
.service-category {
    margin: 24px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.service-category h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.service-category ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.service-category ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-category ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

.service-bundle {
    color: #495057;
    font-weight: 500;
    margin: 0;
}

.notice-text {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e8f4f8;
    border-left: 3px solid #3498db;
    border-radius: 4px;
    color: #1a1a2e;
    font-size: 14px;
    font-weight: 500;
}

/* Special Terms Sections */
.special-terms {
    background: #f8f9fa;
    padding: 50px 40px;
    border-radius: 16px;
}

.special-section {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid #3498db;
}

.important-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.important-notice p {
    color: #856404;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.important-notice strong {
    color: #533f03;
    font-weight: 700;
}

.sub-notice {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    margin-top: 8px;
}

/* CTA Section */
.terms-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: #ffffff;
    color: #3498db;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    color: #2980b9;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll Padding for Anchor Links */
html {
    scroll-padding-top: 100px;
}

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media (max-width: 768px) {
    .terms-hero {
        padding: 80px 0 60px;
    }

    .terms-hero .page-title {
        font-size: 36px;
    }

    .terms-hero .page-subtitle {
        font-size: 16px;
    }

    .terms-nav-section {
        padding: 40px 0;
    }

    .terms-nav-wrapper {
        padding: 30px 20px;
    }

    .terms-nav-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .terms-content-section {
        padding: 60px 0;
    }

    .chapter-header {
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    .chapter-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .terms-article {
        padding: 24px 20px;
    }

    .article-title {
        font-size: 18px;
    }

    .special-terms {
        padding: 40px 20px;
    }

    .terms-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-button {
        padding: 14px 40px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .terms-hero {
        padding: 60px 0 40px;
    }

    .terms-hero .page-title {
        font-size: 28px;
    }

    .terms-hero .page-subtitle {
        font-size: 14px;
    }

    .terms-hero .terms-meta {
        padding: 10px 20px;
    }

    .terms-hero .update-date {
        font-size: 13px;
    }

    .terms-nav-section {
        padding: 30px 0;
    }

    .terms-nav-wrapper {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .terms-nav-wrapper .nav-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .nav-column h3 {
        font-size: 15px;
    }

    .nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    .terms-content-section {
        padding: 40px 0;
    }

    .terms-chapter {
        margin-bottom: 60px;
    }

    .chapter-header {
        margin-bottom: 30px;
        padding-bottom: 16px;
    }

    .chapter-title {
        font-size: 24px;
    }

    .chapter-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .terms-article {
        padding: 20px 16px;
        margin-bottom: 30px;
    }

    .article-title {
        font-size: 16px;
    }

    .article-content {
        font-size: 14px;
    }

    .numbered-list > li,
    .definition-list li,
    .prohibition-list li {
        padding-left: 24px;
    }

    .service-category {
        padding: 16px;
    }

    .service-category h4 {
        font-size: 15px;
    }

    .special-terms {
        padding: 30px 16px;
    }

    .important-notice {
        padding: 20px 16px;
    }

    .important-notice p {
        font-size: 14px;
    }

    .terms-cta-section {
        padding: 50px 0;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-desc {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 32px;
        font-size: 15px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .terms-hero .page-title {
        font-size: 24px;
    }

    .chapter-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 18px;
    }

    .article-title {
        font-size: 15px;
    }

    .article-content {
        font-size: 13px;
    }

    .cta-title {
        font-size: 22px;
    }
}

/* Print Styles */
@media print {
    .terms-hero,
    .terms-nav-section,
    .terms-cta-section {
        display: none;
    }

    .terms-content-section {
        padding: 0;
    }

    .terms-article {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .chapter-header {
        page-break-after: avoid;
    }
}