/* =========================================================
   TERMS OF SERVICE PAGE - PROFESSIONAL & LEGAL
   Clean Typography | Organized Sections | Easy to Read
========================================================= */

.terms-page {
    background: #1e293b;
    min-height: 100vh;
    padding: 3rem 0 4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================================
   HEADER
========================================================= */
.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #334155;
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.last-updated {
    color: #94a3b8;
    font-size: 0.9375rem;
    font-style: italic;
}

/* =========================================================
   CONTENT
========================================================= */
.terms-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.terms-section {
    margin-bottom: 3rem;
}

.terms-section:last-child {
    margin-bottom: 0;
}

/* Introduction Text */
.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1e3a8a; /* Dark blue text */
    padding: 1.5rem;
    background: #eff6ff; /* Light blue background */
    border-left: 4px solid #0F62FE;
    border-radius: 8px;
}

/* Headings */
.terms-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.terms-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin: 2rem 0 1rem;
}

/* Paragraphs */
.terms-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1rem;
}

/* Lists */
.terms-section ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding: 0;
}

.terms-section ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.terms-section ul li strong {
    color: #1e293b;
    font-weight: 600;
}

/* Contact Info Box */
.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #0F62FE;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #0A43B6;
    text-decoration: underline;
}

/* Agreement Box */
.agreement-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.agreement-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #fbbf24;
}

.agreement-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 0.75rem;
}

.agreement-box p {
    color: #78350f;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* =========================================================
   FOOTER
========================================================= */
.terms-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-back-home:hover {
    background: #0F62FE;
    border-color: #0F62FE;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */
@media (max-width: 992px) {
    .terms-header h1 {
        font-size: 2rem;
    }

    .terms-content {
        padding: 2.5rem;
    }

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

/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */
@media (max-width: 768px) {
    .terms-page {
        padding: 2rem 0 3rem;
    }

    .terms-container {
        padding: 0 1rem;
    }

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

    .terms-header h1 {
        font-size: 1.75rem;
    }

    .last-updated {
        font-size: 0.875rem;
    }

    .terms-content {
        padding: 2rem 1.5rem;
        border-radius: 8px;
    }

    .intro-text {
        font-size: 1rem;
        padding: 1.25rem;
    }

    .terms-section {
        margin-bottom: 2.5rem;
    }

    .terms-section h2 {
        font-size: 1.375rem;
        margin-bottom: 1.25rem;
    }

    .terms-section h3 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.875rem;
    }

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

    .terms-section ul {
        margin-left: 1rem;
    }

    .agreement-box {
        padding: 1.5rem;
    }

    .btn-back-home {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */
@media (max-width: 480px) {
    .terms-header h1 {
        font-size: 1.5rem;
    }

    .terms-content {
        padding: 1.5rem 1rem;
    }

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

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

    .intro-text {
        padding: 1rem;
    }

    .contact-info,
    .agreement-box {
        padding: 1.25rem;
    }
}

/* =========================================================
   PRINT STYLES
========================================================= */
@media print {
    .terms-page {
        background: white;
        padding: 0;
    }

    .terms-header {
        border-bottom: 2px solid #000;
    }

    .terms-content {
        box-shadow: none;
        border: none;
    }

    .terms-footer {
        display: none;
    }

    .agreement-box {
        background: white;
        border: 2px solid #000;
    }
}
/* Mobile Side Margins */
@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
