/* ============================================
   TERMS OF SERVICE PAGE SPECIFIC STYLES
   WiFiHapa - Legal Terms & Conditions Styles
   ============================================ */
/* Main Content */
.main-content {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Hero Section */
.terms-hero {
    background: linear-gradient(145deg, #edf4ff 0%, #ffffff 100%);
    padding: 2.5rem 2rem;
    border-radius: 48px;
    margin: 1.5rem 0 2rem;
    border: 1px solid rgba(13, 110, 253, 0.05);
    transition: var(--transition, all 0.3s ease);
}

body.dark .terms-hero {
    background: var(--hero-bg, linear-gradient(145deg, #111827 0%, #1e2538 100%));
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 1.5rem;
    }

    .terms-hero h1 {
        font-size: 1.8rem;
    }
}

.terms-badge {
    background: #0b2b40;
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
}

.effective-date {
    background: var(--badge-light-bg, #f8fafd);
    padding: 0.5rem 1.2rem;
    border-radius: 60px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-print {
    background: transparent;
    border: 1.5px solid #0d6efd;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0d6efd;
    transition: var(--transition, all 0.2s ease);
    cursor: pointer;
}

.btn-print:hover {
    background: #0d6efd;
    color: white;
}

/* Table of Contents */
.table-of-contents {
    background: var(--badge-light-bg, #f8fafd);
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

body.dark .table-of-contents {
    background: var(--badge-light-bg, #2a3448);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.toc-item a {
    text-decoration: none;
    color: var(--text-primary, #0a2c3d);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    display: block;
    transition: var(--transition, all 0.2s ease);
}

.toc-item a:hover {
    color: #0d6efd;
    padding-left: 0.3rem;
}

/* Terms Card */
.terms-card {
    background: var(--card-bg, white);
    border-radius: 32px;
    padding: 2rem;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.02));
}

body.dark .terms-card {
    background: var(--card-bg, #1e2538);
}

@media (max-width: 768px) {
    .terms-card {
        padding: 1.2rem;
    }
}

/* Terms Sections */
.terms-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.terms-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary, #0a2c3d);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.terms-section-title i {
    color: #0d6efd;
    background: #e4edff;
    padding: 0.5rem;
    border-radius: 16px;
    font-size: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark .terms-section-title i {
    background: #2a3448;
}

/* Legal Highlights */
.legal-highlight {
    background: rgba(13, 110, 253, 0.08);
    border-radius: 20px;
    padding: 1rem;
    border-left: 6px solid #0d6efd;
    margin: 1rem 0;
}

.legal-warning {
    background: rgba(212, 161, 30, 0.08);
    border-radius: 20px;
    padding: 1rem;
    border-left: 6px solid #d4a11e;
    margin: 1rem 0;
}

/* Role Table */
.role-table {
    background: var(--badge-light-bg, #f8fafd);
    border-radius: 20px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

body.dark .role-table {
    background: var(--badge-light-bg, #2a3448);
}

.role-table table {
    width: 100%;
    font-size: 0.85rem;
}

.role-table th,
.role-table td {
    padding: 0.6rem 0.4rem;
    border-bottom: 1px solid var(--border-light, #e9ecef);
    text-align: left;
}

body.dark .role-table th,
body.dark .role-table td {
    border-color: var(--border-light, rgba(255, 255, 255, 0.05));
}

.role-table th {
    font-weight: 700;
}

/* Terms List */
.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary, #5e6f7d);
}

.terms-list i {
    color: #0d6efd;
    width: 18px;
    font-size: 0.8rem;
}

/* Contact Info Box */
.contact-info-box {
    background: var(--badge-light-bg, #f8fafd);
    padding: 1rem;
    border-radius: 20px;
}

body.dark .contact-info-box {
    background: var(--badge-light-bg, #2a3448);
}

.contact-info-box p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Acknowledgment */
.acknowledgment {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-light, #e9ecef);
}

/* Responsive */
@media (max-width: 768px) {
    .terms-section-title {
        font-size: 1.1rem;
    }

    .toc-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .effective-date,
    .btn-print {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .terms-card {
        padding: 1rem;
    }

    .terms-section-title i {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .role-table table {
        font-size: 0.75rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }
}