/* ========================================
   TERMS OF USE PAGE STYLES
   ======================================== */

.terms-container {
    min-height: 100vh;
    padding: 120px 5% 80px 5%;
    background-color: var(--bg-color);
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-color);
    border-radius: 16px;
    padding: 60px 40px;
    border: 1px solid #222;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.terms-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.terms-updated {
    text-align: center;
    color: var(--text-faded);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2a2a2a;
}

    .terms-section:last-of-type {
        border-bottom: none;
    }

    .terms-section h2 {
        font-family: var(--font-heading);
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        color: var(--text-color);
        margin-bottom: 1rem;
        margin-top: 0;
    }

    .terms-section h3 {
        font-family: var(--font-heading);
        font-size: clamp(1.2rem, 4vw, 1.4rem);
        color: var(--text-color);
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .terms-section p {
        color: var(--text-color);
        line-height: 1.8;
        margin-bottom: 1rem;
        font-size: 1.05rem;
    }

    .terms-section ul {
        list-style: none;
        margin: 1rem 0 1.5rem 0;
        padding-left: 0;
    }

    .terms-section li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 0.75rem;
        color: var(--text-color);
        line-height: 1.7;
        font-size: 1.05rem;
    }

        .terms-section li::before {
            content: '▸';
            position: absolute;
            left: 0.5rem;
            color: var(--primary-color);
            font-weight: bold;
        }

    .terms-section strong {
        color: var(--primary-color);
        font-weight: 600;
    }

.terms-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

    .terms-link:hover {
        color: var(--primary-hover);
    }

.terms-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

    .terms-footer p {
        font-size: 1.1rem;
        color: var(--text-faded);
        font-style: italic;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

.back-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFF;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .back-button:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        color: #FFF;
    }

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .terms-container {
        padding: 100px 5% 60px 5%;
    }

    .terms-content {
        padding: 40px 25px;
        border-radius: 12px;
    }

    .terms-updated {
        margin-bottom: 2rem;
    }

    .terms-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

        .terms-section p,
        .terms-section li {
            font-size: 1rem;
        }

        .terms-section li {
            padding-left: 1.5rem;
        }

            .terms-section li::before {
                left: 0.25rem;
            }

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

    .back-button {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .terms-container {
        padding-left: calc(var(--nav-width-desktop) + (var(--nav-padding-desktop) * 2) + 50px);
        padding-right: 5%;
    }

    .terms-content {
        padding: 80px 60px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .terms-container {
        padding: 20px;
        background: white;
    }

    .terms-content {
        box-shadow: none;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }

    .terms-title,
    .terms-section h2,
    .terms-section h3,
    .terms-section strong {
        color: black;
    }

    .terms-section p,
    .terms-section li {
        color: black;
    }

    .back-button,
    .terms-link {
        display: none;
    }

    .terms-footer {
        border-top-color: #ccc;
    }
}
