/* Terms Accordion Styles - Mobile Only */

/* Desktop: Show all content, hide accordion functionality */
.terms-accordion {
    border: none;
    margin-bottom: 2.5rem;
}

.terms-accordion summary {
    display: block;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: default;
    list-style: none;
}

.terms-accordion summary::-webkit-details-marker {
    display: none;
}

.terms-accordion summary::after {
    display: none;
}

.terms-accordion[open] summary {
    display: block;
}

.terms-content {
    display: block;
}

/* Mobile: Enable accordion functionality */
@media (max-width: 768px) {
    .terms-accordion {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .terms-accordion summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 1rem 1.25rem;
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
        color: var(--primary-color);
        font-weight: 700;
        font-size: 1.05rem;
        line-height: 1.4;
        transition: all 0.3s ease;
        list-style: none;
        margin-bottom: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .terms-accordion summary::-webkit-details-marker {
        display: none;
    }

    .terms-accordion summary::after {
        content: '+';
        display: block;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
        transition: transform 0.3s ease;
        flex-shrink: 0;
        margin-left: 1rem;
    }

    .terms-accordion[open] summary {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
        border-bottom: 1px solid #e5e7eb;
    }

    .terms-accordion[open] summary::after {
        content: '−';
        transform: rotate(180deg);
    }

    .terms-accordion summary:hover {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
    }

    .terms-accordion summary:active {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(147, 51, 234, 0.12) 100%);
    }

    .terms-content {
        padding: 1.25rem;
        animation: slideDown 0.3s ease;
    }

    .terms-content p {
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
        line-height: 1.7;
    }

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

/* Smooth slide animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .terms-accordion summary {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .terms-accordion summary::after {
        font-size: 1.3rem;
        margin-left: 0.75rem;
    }

    .terms-content {
        padding: 1rem;
    }

    .terms-content p {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}
