/* Terms and Conditions Page Styles */

/* Hero Section */
.terms-hero {
    position: relative;
    padding: 3rem 0 3rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.terms-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--rgba-white-95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Terms Content Section */
.terms-content {
    padding: 60px 0;
}

.terms-wrapper {
    background: var(--rgba-white-48);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.last-updated {
    text-align: right;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.last-updated p {
    font-style: italic;
    color: var(--gray-600);
    margin: 0;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray-200);
}

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

.terms-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-light);
    display: inline-block;
}

.terms-section h3 {
    color: var(--gray-700);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
}

.terms-section p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.terms-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-section li {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 8px;
    list-style-type: disc;
}

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

/* Agreement Section */
.agreement-section {
    background: var(--gray-050);
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
    border-left: 5px solid var(--primary-color);
}

.agreement-section .alert {
    background: var(--rgba-primary-05);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    border-left: 4px solid var(--primary-color);
}

.agreement-section h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.agreement-section p {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero {
        padding: 2rem 0;
        min-height: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .terms-wrapper {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }

    .terms-section h3 {
        font-size: 1.2rem;
    }

    .last-updated {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .terms-wrapper {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .terms-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-section h3 {
        font-size: 1.1rem;
    }

    .terms-section ul {
        padding-left: 15px;
    }
}

/* Print Styles */
@media print {
    .terms-hero {
        background: none !important;
        color: black !important;
        padding: 20px 0;
        min-height: auto;
    }

    .hero-title,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }

    .terms-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .terms-section h2 {
        color: black !important;
        border-bottom-color: black !important;
    }

    .agreement-section {
        background: #f8f9fa !important;
        border-left-color: black !important;
    }
}
