/* ============================================
   Terms.CSHTML - TERMS OF SERVICE PAGE STYLES  
   ============================================ */

/* Terms Page Header */
.terms-header {
    background: var(--gradient-hero);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-header::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

.terms-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.terms-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 1rem;
}

.terms-logo i {
    font-size: 2rem;
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.terms-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--light);
}

.terms-nav-bar {
    background: var(--surface);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.terms-nav-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.terms-back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-2px);
}

.terms-last-updated {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.terms-toc {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.terms-toc h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

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

.terms-toc-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.terms-toc-link:hover {
    background: rgba(227, 193, 110, 0.1);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.terms-content {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

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

.terms-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.terms-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.terms-section p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.terms-section ul,
.terms-section ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-muted);
}

.terms-section li {
    margin-bottom: 0.5rem;
}

.terms-highlight-box {
    background: rgba(31, 79, 91, 0.1);
    border: 1px solid rgba(31, 79, 91, 0.2);
    border-left: 4px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.terms-highlight-box h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-highlight-box p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.terms-warning-box {
    background: rgba(217, 118, 66, 0.1);
    border: 1px solid rgba(217, 118, 66, 0.2);
    border-left: 4px solid var(--accent-alt);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.terms-warning-box h4 {
    color: var(--accent-alt);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-warning-box p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.terms-contact-section {
    background: var(--gradient);
    color: white;
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.terms-contact-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
}

.terms-contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.terms-contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.terms-contact-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
}

.terms-contact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.terms-contact-link i {
    font-size: 1.1rem;
}

.terms-footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.terms-footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Terms Page Responsive Design */
@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 2rem;
    }

    .terms-header p {
        font-size: 1rem;
    }

    .terms-container {
        padding: 2rem 1rem;
    }

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

    .terms-nav-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .terms-toc-list {
        grid-template-columns: 1fr;
    }

    .terms-contact-links {
        flex-direction: column;
        align-items: center;
    }

    .terms-contact-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }

    .terms-section h3 {
        font-size: 1.125rem;
    }
}

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

    .terms-toc,
    .terms-content {
        padding: 1.5rem;
    }

    .terms-contact-section {
        padding: 2rem 1rem;
    }
}

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

/* Print styles */
@media print {

    .terms-header,
    .terms-nav-bar,
    .terms-contact-section,
    .terms-footer {
        display: none;
    }

    .terms-container {
        max-width: none;
        padding: 0;
    }

    .terms-content {
        box-shadow: none;
        border: 1px solid var(--border);
        background: white;
    }

    .terms-section h2 {
        color: var(--text-primary) !important;
    }
}
