﻿
/* Terms container with modern styling */
.terms-container {
    max-width: none;
    margin: 0;
}

    .terms-container h4 {
        font-size: 16px;
        color: #64748b;
        margin-bottom: 24px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border-radius: 8px;
        border-left: 4px solid #3b82f6;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .terms-container h4::before {
            font-size: 16px;
        }

/* Enhanced terms content area */
.terms-content {
    max-height: 65vh;
    overflow-y: auto;
    padding: 32px;
    background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

    /* Custom scrollbar */
    .terms-content::-webkit-scrollbar {
        width: 8px;
    }

    .terms-content::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }

    .terms-content::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        border-radius: 4px;
        transition: background 0.3s ease;
    }

        .terms-content::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2563eb, #1e40af);
        }

    /* Typography enhancements */
    .terms-content p {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.8;
        color: #374151;
        text-align: justify;
        hyphens: auto;
    }

        .terms-content p:first-child {
            font-size: 16px;
            font-weight: 500;
            color: #1f2937;
            padding: 20px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-radius: 8px;
            border-left: 4px solid #3b82f6;
            margin-bottom: 32px;
            position: relative;
        }

            .terms-content p:first-child::before {
                position: absolute;
                left: -2px;
                top: 50%;
                transform: translateY(-50%);
                font-size: 20px;
            }

    /* Section headers */
    .terms-content h5 {
        margin: 32px 0 16px 0;
        color: #1e40af;
        font-size: 18px;
        font-weight: 700;
        padding: 16px 20px 16px 0;
        border-bottom: 2px solid #e5e7eb;
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .terms-content h5::before {
            content: counter(section);
            counter-increment: section;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: white;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }

.terms-content {
    counter-reset: section;
}

    /* Enhanced list styling */
    .terms-content ul {
        margin: 20px 0;
        padding-left: 0;
        list-style: none;
    }

    .terms-content li {
        margin-bottom: 12px;
        font-size: 15px;
        line-height: 1.7;
        color: #4b5563;
        padding: 12px 20px;
        background: white;
        border-radius: 8px;
        border-left: 4px solid #10b981;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        position: relative;
        padding-left: 50px;
        transition: all 0.3s ease;
    }

        .terms-content li:hover {
            transform: translateX(4px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .terms-content li::before {
            content: '✓';
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #10b981;
            font-weight: 700;
            font-size: 16px;
        }

/* Terms actions section */
.terms-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

