/* ==========================================================================
   1. BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
}


/* ==========================================================================
   2. TOP PANEL
   ========================================================================== */

.top-panel {
    height: 70px;
    width: 100%;
    background-color: #001f3f;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    padding: 0 40px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   PUBLIC PAGE CONTENT
   ========================================================================== */

.public-page-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding-top: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 35px;
    height: 100%;
}



/* Branding */

.branding {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 32px;
    width: auto;
    margin-right: 10px;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}


/* Navigation */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 4px;

    color: #e2e8f0;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    cursor: pointer;

    transition: color 0.15s ease;
}

.nav-item:hover {
    color: #38bdf8;
}

.caret {
    font-size: 0.65rem;
    color: #94a3b8;

    transition: color 0.15s ease;
}

.nav-item:hover .caret {
    color: #38bdf8;
}


/* Header Right */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Search */

.search-icon {
    color: #cbd5e1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.1rem;

    padding-right: 20px;

    border-right: 1px solid rgba(255, 255, 255, 0.2);

    height: 24px;

    transition: color 0.15s ease;
}

.search-icon:hover {
    color: #38bdf8;
}


/* Authentication */

.login-link {
    color: white;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 500;

    cursor: pointer;

    transition: color 0.2s;
}

.login-link:hover {
    color: #38bdf8;
}

.btn-get-started {
    background-color: #38bdf8;
    color: #001f3f;

    padding: 10px 20px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    border: none;

    transition: background-color 0.2s;
}

.btn-get-started:hover {
    background-color: #7dd3fc;
}

.btn-get-started2 {
    background-color: #001f3f;
    color: #ffffff;

    padding: 10px 20px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 700;

    cursor: pointer;

    border: none;

    transition: background-color 0.2s;
}

.btn-get-started2:hover {
    background-color: #7dd3fc;
}


/* ==========================================================================
   3. MODAL SYSTEM
   ========================================================================== */

body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 2000;
}

.modal-box {
    background: #ffffff;

    width: 100%;
    max-width: 450px;

    padding: 40px;

    border-radius: 12px;

    position: relative;

    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);

    max-height: 90vh;

    overflow-y: auto;
}




.close-btn {
    position: absolute;

    top: 20px;
    right: 20px;

    font-size: 24px;

    cursor: pointer;

    color: #64748b;
}

.modal-box h2 {
    margin-top: 0;
    margin-bottom: 20px;

    color: #001f3f;

    text-align: center;
}


/* ==========================================================================
   4. FORM STYLES
   ========================================================================== */

.signup-content {
    padding: 40px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;

    margin-bottom: 5px;

    font-weight: 500;
    font-size: 0.85rem;

    color: #475569;

    text-align: left;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 10px;

    border: 1px solid #cbd5e1;

    border-radius: 6px;

    font-family: inherit;
    font-size: 1rem;

    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;

    border-color: #38bdf8;

    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-col {
    flex: 1;
}

.form-select {
    width: 100%;
}


/* Standard submit button */

.btn-submit {
    width: 100%;

    background: #001f3f;
    color: #ffffff;

    border: none;

    padding: 12px;

    border-radius: 6px;

    font-weight: 700;

    cursor: pointer;

    margin-top: 10px;

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}

.btn-submit:hover:not(:disabled) {
    background: #003366;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#reg_submit {
    background-color: #001f3f;
    color: #ffffff;
}


/* Error */

.error-msg {
    background-color: #fee2e2;

    color: #dc2626;

    padding: 10px;

    border-radius: 6px;

    font-size: 0.8rem;

    text-align: center;

    margin-bottom: 15px;

    border: 1px solid #fecaca;
}

.required-note {
    text-align: center;

    color: #64748b;

    font-size: 0.8rem;

    margin-top: -10px;
    margin-bottom: 25px;
}


/* ==========================================================================
   5. LOGIN DIVIDER
   ========================================================================== */

.login-divider {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 20px 0;

    color: #64748b;

    font-size: 0.85rem;
    font-weight: 500;
}

.login-divider::before,
.login-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #cbd5e1;
}

.login-divider span {
    white-space: nowrap;
}


/* ==========================================================================
   6. GOOGLE LOGIN
   ========================================================================== */

.google-login-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    text-decoration: none;

    cursor: pointer;
}

.google-login-btn img {
    max-width: 100%;
    height: auto;

    display: block;
}


/* ==========================================================================
   7. SIGNUP CHOICE SCREEN
   ========================================================================== */

.signup-choice-text {
    text-align: center;

    margin: 0 0 25px 0;

    color: #555;

    font-size: 15px;
}

.signup-choice-buttons {
    display: flex;
    flex-direction: column;

    gap: 14px;

    width: 100%;
    max-width: 360px;

    margin: 0 auto;
}


/* Terms checkbox */

.signup-terms {
    margin: 0 0 20px 0;

    font-size: 14px;

    color: #555;
}

.signup-terms label {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    cursor: pointer;

    line-height: 1.4;
}

.signup-terms input[type="checkbox"] {
    width: auto;

    margin: 3px 0 0 0;

    flex: 0 0 auto;
}

.signup-terms a {
    color: #38bdf8;

    font-weight: 600;

    text-decoration: none;
}

.signup-terms a:hover {
    text-decoration: underline;
}


/* Email signup button */

.signup-choice-buttons .btn-submit {
    width: 100%;

    margin: 0;
}


/* Google signup */

.google-signup-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    text-decoration: none;

    cursor: pointer;
}

.google-signup-btn img {
    max-width: 100%;

    height: auto;

    display: block;
}

.google-signup-btn.disabled {
    opacity: 0.5;

    cursor: not-allowed;

    pointer-events: none;
}


/* ==========================================================================
   8. EMAIL SIGNUP HEADER
   ========================================================================== */

.signup-form-header {
    position: relative;

    margin-bottom: 5px;
}

.signup-form-header h2 {
    margin-bottom: 5px;
}

.signup-back-btn {
    border: none;

    background: none;

    padding: 0;

    color: #001f3f;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    margin-bottom: 5px;
}

.signup-back-btn:hover {
    text-decoration: underline;
}


/* ==========================================================================
   TERMS & CONDITIONS
   ========================================================================== */

.terms-overlay {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;

    background: #ffffff;

    border-radius: 12px;

    z-index: 10;
}

.terms-modal-box {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;
}

.terms-modal-box h2 {
    flex: 0 0 auto;

    margin: 0;
    padding: 20px 25px 15px;

    color: #001f3f;

    text-align: center;

    border-bottom: 1px solid #e2e8f0;
}

.terms-content {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding: 20px 25px;

    line-height: 1.6;

    font-size: 0.85rem;

    color: #475569;
}

.terms-container {
    width: 100%;
}

.terms-content h3 {
    margin: 20px 0 8px;

    color: #001f3f;

    font-size: 0.95rem;
}

.terms-content p {
    margin: 0 0 14px;
}

.terms-footer {
    flex: 0 0 auto;

    padding: 12px 25px;

    border-top: 1px solid #e2e8f0;
}

.terms-footer .btn-submit {
    margin: 0;
}



/* ==========================================================================
   10. SUCCESS MESSAGE
   ========================================================================== */

.success-banner {
    position: fixed;

    top: 90px;
    left: 50%;

    transform: translateX(-50%);

    background: #16a34a;

    color: white;

    padding: 14px 25px;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    z-index: 5000;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   11. HERO
   ========================================================================== */

.hero {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    min-height: 0;

    height: auto;

    padding: 80px 20px 0;

    text-align: center;

    background: linear-gradient(
        180deg,
        #001f3f 0%,
        #003366 100%
    );

    color: white;

    overflow: hidden;
}

.hero h1 {
    width: 100%;
    max-width: 900px;

    font-size: clamp(2rem, 5vw, 3.5rem);

    line-height: 1.1;

    margin: 0 0 20px;
}

.hero p {
    width: 100%;
    max-width: 600px;

    font-size: clamp(1rem, 1.8vw, 1.2rem);

    line-height: 1.5;

    margin: 0;

    opacity: 0.9;
}

.hero img {
    display: block;

    width: min(500px, 80vw);

    height: auto;

    margin: 50px auto 0;
}


/* ==========================================================================
   12. HIGHLIGHTS
   ========================================================================== */

.highlights-section {
    background-color: #f8fafc;

    padding: 40px 20px;

    display: flex;

    justify-content: center;
}

.highlights-container {
    max-width: 1100px;

    width: 100%;

    border-top: 1px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;

    padding: 30px 10px;
}

.highlights-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    width: 100%;
}

.highlight-item {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}

.highlight-header-row {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.highlight-icon {
    height: 38px;

    width: auto;

    object-fit: contain;

    flex-shrink: 0;
}

.highlight-item h3 {
    margin: 0 0 0 0;

    color: #001f3f;

    font-size: 1.35rem;
    font-weight: 700;

    line-height: 1.25;
}

.highlight-item p {
    margin: 0;

    color: #475569;

    font-size: 0.95rem;

    line-height: 1.5;
}


/* ==========================================================================
   13. KEY FEATURES
   ========================================================================== */

.features-section {
    background-color: #ffffff;

    padding: 80px 40px;

    display: flex;

    justify-content: center;

    border-top: 1px solid #e2e8f0;
}

.features-container {
    max-width: 1100px;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.features-container h2.section-title {
    color: #001f3f;

    font-size: 2.2rem;
    font-weight: 700;

    margin: 0 0 25px 0;

    text-align: center;
}

.features-container h2.section-title::after {
    content: '';

    display: block;

    width: 50px;
    height: 4px;

    background-color: #38bdf8;

    margin: 12px auto 0;

    border-radius: 2px;
}

.features-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;

    width: 100%;

    margin-bottom: 40px;
}

.feature-card {
    background: #ffffff;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    padding: 10px;
}

.feature-icon-box {
    height: 60px;

    display: flex;

    align-items: center;

    margin-bottom: 15px;
}

.feature-img {
    height: 100%;

    width: auto;

    object-fit: contain;
}

.feature-card h3 {
    margin: 0 0 10px 0;

    color: #001f3f;

    font-size: 1.25rem;
    font-weight: 700;

    line-height: 1.4;
}

.feature-card p {
    margin: 0;

    color: #475569;

    font-size: 0.95rem;

    line-height: 1.6;
}


/* CTA */

.demo-actions {
    width: 100%;

    text-align: center;

    margin: 20px 0 50px 0;

    padding: 30px;

    background-color: #f8fafc;

    border-radius: 12px;

    border: 1px solid #e2e8f0;
}

.demo-actions p {
    margin: 0 0 15px 0;

    color: #334155;

    font-size: 1.1rem;
    font-weight: 500;
}

.btn-demo {
    display: inline-block;

    background-color: #001f3f;

    color: #ffffff;

    padding: 12px 35px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 700;

    font-size: 1rem;

    transition:
        background-color 0.15s ease,
        transform 0.1s ease;
}

.btn-demo:hover {
    background-color: #002d5c;

    transform: translateY(-1px);
}


/* ==========================================================================
   14. DESKTOP DROPDOWN
   ========================================================================== */

.nav-item-container {
    position: relative;

    display: inline-flex;

    align-items: center;

    height: 100%;

    cursor: pointer;
}

.dropdown-content {
    display: none;

    position: absolute;

    top: 50px;
    left: 0;

    background-color: #00162d;

    min-width: 200px;

    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);

    border-radius: 0 0 6px 6px;

    padding: 10px 0;

    z-index: 1500;

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    color: #e2e8f0;

    padding: 10px 20px;

    text-decoration: none;

    display: block;

    font-size: 0.9rem;
    font-weight: 500;

    transition:
        background-color 0.15s,
        color 0.15s;
}

.dropdown-content a:hover {
    background-color: #001f3f;

    color: #38bdf8;
}

.nav-item-container:hover .dropdown-content {
    display: block;
}


/* ==========================================================================
   15. MOBILE NAVIGATION
   ========================================================================== */

.mobile-toggle-btn {
    display: none;

    width: 24px;
    height: 18px;

    flex-direction: column;
    justify-content: space-between;

    cursor: pointer;

    z-index: 9999 !important;

    position: relative;
}

.mobile-toggle-btn .line {
    width: 100%;
    height: 2px;

    background-color: #ffffff;

    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.2s ease,
        background-color 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-color: #001f3f;

    display: none;

    flex-direction: column;

    z-index: 9000;

    padding: 110px 40px 40px;

    overflow-y: auto;
}

.mobile-menu-links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 20px;

    list-style: none;

    margin: 0;
    padding: 0;

    width: 100%;
}

.mobile-nav-item {
    color: #ffffff;

    text-decoration: none;

    font-size: 1.5rem;
    font-weight: 700;

    letter-spacing: 0.5px;

    cursor: pointer;

    display: block;

    width: 100%;

    transition: color 0.15s ease;
}

.mobile-nav-item:hover {
    color: #38bdf8;
}

.mobile-submenu {
    display: flex;

    flex-direction: column;

    gap: 12px;

    padding-left: 20px;

    margin-top: 5px;
    margin-bottom: 10px;

    width: 100%;
}

.mobile-sub-item {
    color: #94a3b8;

    text-decoration: none;

    font-size: 1.1rem;
    font-weight: 500;

    transition: color 0.15s ease;
}

.mobile-sub-item:hover {
    color: #38bdf8;
}

.mobile-close-text-btn {
    color: #ffffff;

    font-size: 36px;
    font-weight: 300;

    cursor: pointer;

    position: absolute;

    top: 26px;
    left: 20px;
}

.mobile-toggle-btn.is-active {
    opacity: 0;

    pointer-events: none;
}


/* ==========================================================================
   16. RESPONSIVE LAYOUT
   ========================================================================== */

@media (max-width: 1000px) {

    .mobile-toggle-btn {
        display: flex;

        margin-right: 15px;
    }

    .nav-menu {
        display: none;
    }

    .header-left {
        gap: 15px;
    }

    .top-panel {
        padding: 0 20px;
    }
}

@media (max-width: 968px) {

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .highlights-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }
}

@media (max-width: 640px) {

    .features-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }
}

@media (max-width: 620px) {

    .site-name {
        display: none;
    }
}


/* =====================================================
   COOKIE CONSENT
   ===================================================== */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 10000;

    background: #001f3f;
    color: #ffffff;

    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.20);

    transform: translateY(110%);
    transition: transform 0.3s ease;

    visibility: hidden;
}


.cookie-consent-banner.show {
    transform: translateY(0);
    visibility: visible;
}


.cookie-consent-content {
    max-width: 1200px;

    margin: 0 auto;

    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    box-sizing: border-box;
}


.cookie-consent-text {
    flex: 1;
}


.cookie-consent-text strong {
    display: block;

    font-size: 17px;

    margin-bottom: 6px;
}


.cookie-consent-text p {
    margin: 4px 0;

    font-size: 13px;

    line-height: 1.5;

    color: #e5edf5;
}


.cookie-consent-text a {
    color: #7dd3fc;

    text-decoration: underline;
}


.cookie-consent-buttons {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.cookie-btn {
    border: none;

    padding: 10px 22px;

    border-radius: 5px;

    font-family: "Roboto", sans-serif;

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.cookie-btn:hover {
    transform: translateY(-1px);
}


.cookie-btn-accept {
    background: #38bdf8;

    color: #001f3f;
}


.cookie-btn-accept:hover {
    background: #67d3ff;
}


.cookie-btn-decline {
    background: transparent;

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.6);
}


.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* =====================================================
   MOBILE COOKIE BANNER
   ===================================================== */

@media (max-width: 650px) {

    .cookie-consent-content {
        flex-direction: column;

        align-items: stretch;

        gap: 14px;

        padding: 16px 18px;
    }


    .cookie-consent-text p {
        font-size: 12px;
    }


    .cookie-consent-buttons {
        width: 100%;
    }


    .cookie-btn {
        flex: 1;

        padding: 10px 12px;
    }

}


/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    background: #001f3f;

    color: #ffffff;

    margin-top: 60px;
}


.footer-container {
    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 30px;

    display: grid;

    grid-template-columns:
        minmax(240px, 1.4fr)
        minmax(200px, 1fr)
        minmax(180px, 0.8fr);

    gap: 40px;

    box-sizing: border-box;
}


/* =====================================================
   FOOTER BRAND
   ===================================================== */

.footer-brand {
    display: flex;

    align-items: center;

    gap: 14px;
}


.footer-logo {
    width: 55px;

    height: 55px;

    object-fit: contain;
}


.footer-site-name {
    font-size: 21px;

    font-weight: 700;
}


.footer-brand p {
    margin: 5px 0 0;

    color: #cbd5e1;

    font-size: 13px;
}


/* =====================================================
   FOOTER LINKS
   ===================================================== */

.footer-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-links a {
    color: #e2e8f0;

    text-decoration: none;

    font-size: 14px;

    transition: color 0.2s ease;
}


.footer-links a:hover {
    color: #38bdf8;

    text-decoration: underline;
}


/* =====================================================
   SOCIAL LINKS
   ===================================================== */

.footer-social > span {
    display: block;

    margin-bottom: 12px;

    font-size: 14px;

    font-weight: 500;
}


.social-links {
    display: flex;

    align-items: center;

    gap: 12px;
}


.social-links a {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 17px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.social-links a:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.6);

    transform: translateY(-2px);
}


/* =====================================================
   MOBILE SOCIAL LINKS
   ===================================================== */

@media (max-width: 750px) {

    .social-links {
        gap: 14px;
    }

}


/* =====================================================
   FOOTER BOTTOM
   ===================================================== */

.footer-bottom {
    border-top:
        1px solid rgba(255, 255, 255, 0.12);

    text-align: center;

    padding: 15px 20px;

    color: #94a3b8;

    font-size: 12px;
}


/* =====================================================
   MOBILE FOOTER
   ===================================================== */

@media (max-width: 750px) {

    .footer-container {
        grid-template-columns: 1fr;

        gap: 28px;

        padding: 35px 25px;
    }


    .footer-links {
        gap: 12px;
    }


    .social-links {
        flex-direction: row;

        flex-wrap: wrap;

        gap: 18px;
    }

}

/* =========================================================
   LEGAL DOCUMENT MODAL
   ========================================================= */

.legal-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100%;
    height: 100%;

    z-index: 20000 !important;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;
}

.legal-modal.show {
    display: flex !important;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.legal-modal-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 15, 30, 0.62);

    cursor: pointer;
}


/* =========================================================
   MODAL CONTENT
   ========================================================= */

.legal-modal-content {
    position: relative;
    z-index: 1;

    width: min(900px, 100%);
    height: min(88vh, 850px);

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.25),
        0 5px 20px rgba(0, 0, 0, 0.12);

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-shrink: 0;

    padding: 20px 24px;

    background: #001f3f;

    color: #ffffff;
}

.legal-modal-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.legal-modal-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 6px;

    background: transparent;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.5);
}


/* =========================================================
   BODY
   ========================================================= */

.legal-modal-body {
    flex: 1;

    min-height: 0;

    overflow-y: auto;

    padding: 32px 38px 40px;

    background: #ffffff;

    color: #475569;

    font-size: 14px;

    line-height: 1.7;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* =========================================================
   LEGAL DOCUMENT CONTENT
   ========================================================= */

.legal-document {
    width: 100%;
    max-width: 100%;
}

.legal-document h3 {
    margin: 0 0 14px;

    color: #001f3f;

    font-size: 19px;
    font-weight: 700;

    line-height: 1.35;
}

.legal-document h4 {
    margin: 24px 0 9px;

    color: #0f2942;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.4;
}

.legal-document p {
    margin: 0 0 14px;

    color: #475569;

    font-size: 14px;
    line-height: 1.7;
}

.legal-document ul {
    margin: 10px 0 18px;

    padding-left: 23px;
}

.legal-document li {
    margin-bottom: 7px;

    color: #475569;

    font-size: 14px;

    line-height: 1.6;
}

.legal-document li strong {
    color: #334155;
}

.legal-document a {
    color: #001f3f;

    font-weight: 500;

    text-decoration: underline;

    text-underline-offset: 2px;
}

.legal-document a:hover {
    color: #003b70;
}


/* =========================================================
   CONTACT BOX
   ========================================================= */

.legal-contact {
    margin-top: 18px;

    padding: 17px 19px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 7px;
}

.legal-contact strong {
    display: block;

    margin-bottom: 7px;

    color: #001f3f;

    font-size: 14px;
    font-weight: 700;
}

.legal-contact p {
    margin: 0 0 6px;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.legal-modal-footer {
    display: flex;
    justify-content: flex-end;

    flex-shrink: 0;

    padding: 14px 24px;

    background: #f8fafc;

    border-top: 1px solid #e2e8f0;
}


/* =========================================================
   LOADING
   ========================================================= */

.legal-loading {
    padding: 50px 20px;

    text-align: center;

    color: #64748b;

    font-size: 15px;
}


/* =========================================================
   ERROR
   ========================================================= */

.legal-error {
    padding: 40px 20px;

    text-align: center;

    color: #991b1b;
}

.legal-error h3 {
    color: #991b1b;
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
   ========================================================= */

body.legal-modal-open {
    overflow: hidden !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .legal-modal {
        padding: 12px !important;
    }

    .legal-modal-content {
        width: 100%;

        height: calc(100vh - 24px);

        max-height: none;

        border-radius: 10px;
    }

    .legal-modal-header {
        padding: 16px 18px;
    }

    .legal-modal-header h2 {
        font-size: 18px;
    }

    .legal-modal-body {
        padding: 25px 20px 30px;
    }

    .legal-document h3 {
        font-size: 17px;
    }

    .legal-document h4 {
        font-size: 15px;
    }

    .legal-document p,
    .legal-document li {
        font-size: 13px;

        line-height: 1.65;
    }

    .legal-modal-footer {
        padding: 12px 18px;
    }

    .legal-modal-footer .btn-submit {
        width: auto;

        min-width: 82px;

        margin-top: 0;
    }

}