﻿body {
    min-height: 100vh;
}

.terms-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .terms-header h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 800;
    }

.terms-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.terms-section {
    margin-bottom: 2.5rem;
}

    .terms-section:last-child {
        margin-bottom: 0;
    }

    .terms-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--primary-color-solid);
    }

    .terms-section h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem;
    }

    .terms-section p, .terms-section ul, .terms-section ol {
        margin-bottom: 1rem;
        color: var(--text-secondary);
    }

    .terms-section ul, .terms-section ol {
        padding-left: 1.5rem;
    }

    .terms-section li {
        margin-bottom: 0.5rem;
    }

.last-updated {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
}

.back-to-home {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary-color-solid);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .back-to-home:hover {
        text-decoration: underline;
    }

.important-notice {
    background: rgba(147, 51, 234, 0.1);
    border-left: 4px solid var(--primary-color-solid);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

    .important-notice p {
        margin-bottom: 0;
        font-weight: 500;
    }

.highlight-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    transition: transform 0.3s ease;
    width: 100%;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-label {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.highlight-content {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for better text alignment */
    gap: 1.5rem;
    width: 100%;
}

.highlight-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.highlight-text {
    flex: 1;
    text-align: left;
    min-width: 0; /* Allows text to wrap properly */
}

.highlight-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.highlight-cta {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s ease, background 0.3s ease;
    width: 100%;
    max-width: 200px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.highlight-cta:hover {
    background: var(--primary-hover-gradient);
    transform: scale(1.05);
    text-decoration: none !important;
}

/* Responsive styles */
@media (max-width: 576px) {
    .terms-card {
        padding: 1.5rem;
    }

    .terms-header h1 {
        font-size: 2.5rem;
    }

    .highlight-content {
        flex-direction: column;
        text-align: center;
    }

    .highlight-text {
        text-align: center;
        margin-top: 1rem;
        width: 100%; /* Ensure full width on mobile */
    }

    .highlight-text h3 {
        font-size: 1.1rem; /* Slightly smaller on mobile */
    }

    .highlight-image {
        margin: 0 auto;
    }
}

/* Fix for Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .terms-card, .highlight-card {
        -webkit-backdrop-filter: blur(8px);
    }
}
