/* Terms of Service Page Styles */

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Styles */
.nav-blur {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Content Section Styles */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    border-radius: 1rem 1rem 0 0;
}

.content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Typography Styles */
.section-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    border-radius: 2px;
}

.subsection-title {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.subsection-title::before {
    content: '▸';
    color: #ff9a56;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* List Styles */
.terms-list {
    list-style: none;
    padding-left: 0;
}

.terms-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #718096;
    line-height: 1.6;
}

.terms-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9a56;
    font-weight: bold;
}

.terms-list.negative li::before {
    content: '✗';
    color: #ff6b6b;
}

/* Contact Box Styles */
.contact-box {
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(255, 154, 86, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Grid Layout Enhancements */
.grid {
    gap: 2rem;
}

.grid > div {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .subsection-title {
        font-size: 1.125rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }
}

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

/* Table of Contents Styles */
.table-of-contents {
    position: sticky;
    top: 6rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.table-of-contents h3 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #718096;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.table-of-contents a:hover {
    color: #ff9a56;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .nav-blur,
    footer {
        display: none;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .content-section::before {
        background: #333 !important;
    }
}

/* Accessibility Features */
.content-section:focus-within {
    outline: 2px solid #ff9a56;
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Elements */
.content-section {
    cursor: default;
}

.content-section:active {
    transform: scale(0.99);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
    transform-origin: left;
    z-index: 100;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 154, 86, 0.15) 0%, rgba(255, 107, 107, 0.15) 100%);
    border-left: 4px solid #ff9a56;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 154, 86, 0.15) 100%);
    border-left: 4px solid #ff6b6b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Code Block Styles (for any code examples) */
.code-block {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Search Box Styles */
.search-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #2d3748;
}

.search-box input::placeholder {
    color: #a0aec0;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 154, 86, 0.3);
    border-radius: 50%;
    border-top-color: #ff9a56;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Enhancements */
@media (max-width: 480px) {
    .content-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .subsection-title {
        font-size: 1rem;
    }

    .terms-list li {
        font-size: 0.875rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .content-section {
        border: 2px solid #2d3748;
    }

    .section-title {
        color: #1a202c;
    }

    .terms-list li::before {
        color: #1a202c;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .content-section {
        transition: none;
    }

    .fade-in {
        animation: none;
    }
}