/* Terms of Use Page Specific Styles */

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 100px 0 60px;
    text-align: center;
    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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.terms-hero .hero-content {
    position: relative;
    z-index: 2;
}

.terms-hero .hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.terms-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.last-update {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.last-update i {
    font-size: 1rem;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
    background: var(--background-light);
}

.terms-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar - Table of Contents */
.terms-sidebar {
    position: sticky;
    top: 100px;
}

.toc {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--secondary-color);
}

.toc-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-title::before {
    content: '\f0c9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: var(--background-light);
    padding-left: 1rem;
}

/* Main Content */
.terms-main {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.terms-intro {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Term Sections */
.term-section {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e9ecef;
}

.term-section:last-of-type {
    border-bottom: none;
}

.section-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.section-content h2 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-content h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.section-content p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.section-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.section-content ul li {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #e9ecef;
}

.service-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card ul {
    margin: 1rem 0 0;
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* Permission Lists */
.permission-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.permission-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.permission-list.allowed li {
    background: #d4edda;
}

.permission-list.allowed i {
    color: #28a745;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.permission-list.forbidden li {
    background: #f8d7da;
}

.permission-list.forbidden i {
    color: #dc3545;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Info Boxes */
.warning-box,
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.info-box i {
    color: #17a2b8;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box p,
.info-box p {
    margin: 0;
    color: var(--text-dark);
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Legal Notice */
.legal-notice {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.legal-notice i {
    font-size: 2rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.legal-notice p {
    margin: 0;
    color: white;
    font-size: 1.05rem;
    line-height: 1.7;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .terms-sidebar {
        position: static;
    }

    .toc {
        margin-bottom: 2rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: 80px 0 50px;
    }

    .terms-hero .hero-title {
        font-size: 2rem;
    }

    .terms-hero .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .terms-main {
        padding: 2rem 1.5rem;
    }

    .term-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }

    .section-content h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .toc {
        padding: 1.5rem;
    }

    .service-card,
    .contact-card {
        padding: 1.5rem;
    }

    .legal-notice {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .terms-hero .hero-title {
        font-size: 1.75rem;
    }

    .terms-main {
        padding: 1.5rem 1rem;
    }

    .terms-intro {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .section-content p,
    .section-content ul li {
        font-size: 1rem;
    }

    .last-update {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
