:root {
    --terms-bg-fallback: #121212;
    --terms-text: #f2f2f2;
    --terms-muted: #cccccc;
    --terms-accent: #ffd700;
    --terms-border: rgba(255, 255, 255, 0.12);
}

body {
    font-family: 'Caveat', cursive;
    color: var(--terms-text);

    /* Fallback color */
    background-color: var(--terms-bg-fallback);

    /* Background photo with a subtle dark overlay */
    background-image:
            linear-gradient(
                    rgba(0, 0, 0, 0.55),
                    rgba(0, 0, 0, 0.9)
            ),
            url("/images/term.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow-x: hidden;
}

.terms-section {
    padding: 7rem 1rem 3rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    opacity: 70%;
}

.terms-card {
    width: 100%;
    max-width: 900px;
    background: rgba(18, 22, 30, 0.92);
    border-radius: 12px;
    padding: 2.5rem 2.4rem;
    border: 1px solid var(--terms-border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.terms-heading {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--terms-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-intro {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.98rem;
    line-height: 1.45;   /* was 1.7 */
    color: var(--terms-muted);
    margin-bottom: 1.4rem;
}

.terms-card p {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 0.96rem;
    line-height: 1.4;
    color: var(--terms-muted);
    margin-bottom: 0.7rem;
}


.terms-card h2 {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--terms-accent);
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}



.terms-card a {
    color: var(--terms-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.terms-card a:hover {
    color: #ffffff;
    border-color: #ffffff;
}


@media (max-width: 768px) {
    .terms-section {
        padding: 6rem 1rem 2.5rem;
    }

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

    .terms-heading {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .terms-section {
        padding-top: 4.5rem;
    }

    .terms-card {
        padding: 1.7rem 1.25rem;
    }

    .terms-heading {
        font-size: 1.5rem;
    }

    .terms-card p {
        font-size: 0.92rem;
    }
}
