/* ================================================= */
/* Base Styles (Desktop/Large Screen Base) */
/* ================================================= */

body {
    background: #CCFBF1;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}

/* Container for all terms content */
.terms-container {
    max-width: 1000px;
    /* Use responsive margin units */
    margin: 3rem auto;
    padding: 3rem 2rem; /* Base padding */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Main Title */
.terms-container h1 {
    font-family: 'Montserrat', serif;
    color: #0d9488;
    font-size: 2.5rem; /* Base size */
    margin-bottom: 2rem;
    text-align: center;
    /* Ensure no horizontal overflow */
    word-wrap: break-word; 
    padding: 0 10px;
}

/* Section headings */
.terms-container h2 {
    font-family: 'Georgia', serif;
    color: #0f766e;
    font-size: 1.8rem; /* Base size */
    margin: 2rem 0 1rem;
}

/* Paragraphs and lists */
.terms-container p,
.terms-container li {
    color: #374151;
    font-size: 1.15rem; /* Base size */
    margin-bottom: 1rem;
    text-align: justify;
}

/* Lists */
.terms-container ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.terms-container li {
    font-family: 'Times New Roman', serif;
    margin-bottom: 0.5rem;
}
/* Contact Icons Style */
.contact-item {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    color: #0d9488; /* Teal color */
    margin-bottom: 0.8rem;
}

.contact-item a {
    color: #374151;
    text-decoration: none; /* Remove underline */
    margin-left: 0.4rem; /* Small gap between icon and text */
}

.contact-icon {
    stroke: #0d9488; /* Teal color for Lucide icon */
    width: 1.3em;
    height: 1.3em;
}

/* ================================================= */
/* Responsive Media Queries */
/* ================================================= */

/* Tablet Adjustments (max-width: 768px) */
@media (max-width: 768px) {
    /* Reduce vertical margin, horizontal padding */
    .terms-container {
        margin: 1.5rem 10px; /* Added horizontal margin to prevent edge-sticking */
        padding: 2rem 1rem;
        box-shadow: none; /* Often removed on mobile for cleaner look */
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .terms-container h2 {
        font-size: 1.5rem;
    }

    /* Reduce body text size for readability */
    .terms-container p,
    .terms-container li {
        font-size: 1rem;
    }
}

/* Small Mobile Adjustments (max-width: 480px) */
@media (max-width: 480px) {
    /* Remove body background padding on very small screens for edge-to-edge container */
    
        /* If using a nav bar, you might adjust the top margin instead of body padding */
    
    
    /* Ensure container takes full width and reduces margin/padding */
    .terms-container {
        margin: 1rem 0; /* Remove side margin */
        padding: 1.5rem 0.8rem; /* Minimal padding */
        border-radius: 0; /* Remove rounded corners */
        box-shadow: none;
    }

    .terms-container h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .terms-container h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem;
    }

    /* Minimum font size for readability */
    .terms-container p,
    .terms-container li {
        font-size: 0.95rem; 
    }
    
    /* Reduce list indent */
    .terms-container ul {
        padding-left: 1.5rem;
    }
}