* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #041024;
}

body.nav-open {
    overflow: hidden;
}

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 70px;
    column-gap: 24px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.nav-toggle {
    display: none;
}

.nav-drawer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 24px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-self: center;
    justify-content: center;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #007bff;
}

.nav-menu li a.nav-active {
    color: #007bff;
    font-weight: 600;
}

.quote-button {
    display: inline-block;
    justify-self: end;
    padding: 12px 24px;
    border: 1px solid #4f4f4f;
    border-radius: 4px;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    font-size: 19px;
    cursor: pointer;
    color: black;
    z-index: 1;
    text-decoration: none;
    font-weight: 600;
}

.quote-button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.quote-button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: #007bff;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.quote-button:hover {
    color: #ffffff;
    border: 1px solid #007bff;
    text-decoration: none;
}

.quote-button:hover:before {
    top: -35%;
    background-color: #007bff;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.quote-button:hover:after {
    top: -45%;
    background-color: #007bff;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Legal Section */
.legal-section {
    padding: 120px 20px 80px;
    background-color: #041024;
}

.page-title {
    font-family: 'Merriweather', sans-serif;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.last-updated {
    font-family: 'Merriweather', sans-serif;
    font-size: 15px;
    color: #888;
    text-align: center;
    margin-bottom: 40px;
}

.legal-content {
    background-color: #0f1f3b;
    padding: 40px;
    border-radius: 8px;
}

.legal-content h2 {
    font-family: 'Merriweather', sans-serif;
    font-size: 28px;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: 'Merriweather', sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    font-family: 'Merriweather', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #E0E0E0;
    margin-bottom: 20px;
}

.legal-content ul {
    font-family: 'Merriweather', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #E0E0E0;
    margin-left: 30px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-note {
    background-color: #000000;
    padding: 20px;
    border-left: 4px solid #007bff;
    margin-top: 40px;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #0B0D10;
    padding: 60px 20px 20px;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Merriweather', sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-section p {
    color: #E0E0E0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #E0E0E0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Homepage footer layout + social icons */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px 40px;
    margin-bottom: 40px;
}

.footer-grid-cell:nth-child(1) {
    grid-row: 1;
    grid-column: 1;
}

.footer-grid-cell:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
}

.footer-grid-cell:nth-child(3) {
    grid-row: 1;
    grid-column: 2;
}

.footer-grid-cell:nth-child(4) {
    grid-row: 2;
    grid-column: 2;
}

.footer-grid-cell:nth-child(5) {
    grid-row: 1;
    grid-column: 3;
}

.footer-grid-cell:nth-child(6) {
    grid-row: 2;
    grid-column: 3;
}

.footer-grid-cell {
    display: flex;
    flex-direction: column;
}

.footer-title-cell {
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-title-cell h3 {
    font-family: 'Merriweather', sans-serif;
    font-size: 20px;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

.footer-title-cell:nth-child(3) h3,
.footer-title-cell:nth-child(5) h3 {
    text-align: center;
    width: 100%;
}

.footer-info-cell {
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-links-cell,
.footer-social-cell {
    align-items: center;
    justify-content: center;
}

.footer-info-cell p {
    color: #E0E0E0;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wrapper {
    display: inline-flex;
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    justify-content: center;
    align-items: center;
}

.wrapper .icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.wrapper .icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 980px) {
    .navbar {
        padding: 0 12px;
    }

    .nav-container {
        grid-template-columns: 1fr auto;
        height: 70px;
        column-gap: 12px;
    }

    .logo {
        justify-self: start;
    }

    .logo-img {
        height: 42px;
        max-width: 150px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border: 1px solid #d3d6dc;
        border-radius: 10px;
        background: #fff;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0;
    }

    .nav-toggle span {
        width: 18px;
        height: 2px;
        background: #222;
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .navbar.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-drawer {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 30px;
        width: min(78vw, 320px);
        max-height: calc(100vh - 90px);
        overflow: auto;
        display: none;
        grid-template-columns: 1fr;
        row-gap: 14px;
        padding: 16px;
        border: 1px solid #e1e3e8;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    }

    .navbar.nav-open .nav-drawer {
        display: grid;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .nav-menu li a {
        display: inline-block;
        padding: 6px 0;
        font-size: 16px;
    }

    .quote-button {
        justify-self: center;
        width: auto;
        max-width: none;
        text-align: center;
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .legal-section {
        padding: 120px 20px 60px;
    }

    .page-title {
        font-size: 32px;
    }

    .legal-content {
        padding: 30px 20px;
    }

    .legal-content h2 {
        font-size: 24px;
    }

    .legal-content h3 {
        font-size: 20px;
    }

    /* Footer — phone */
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer {
        padding-top: 44px;
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }

    .footer-title-cell:nth-child(3) h3,
    .footer-title-cell:nth-child(5) h3 {
        text-align: left;
        width: 100%;
    }

    .footer-links-cell,
    .footer-social-cell {
        align-items: flex-start;
    }

    .footer-social-cell .wrapper {
        justify-content: flex-start;
        width: auto;
    }

    .footer-links {
        align-items: stretch;
        width: 100%;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 6px 0;
    }

    .footer-links li {
        margin-bottom: 2px;
    }

    .footer-info-cell p {
        overflow-wrap: anywhere;
    }

    .footer-bottom {
        padding-left: max(0px, env(safe-area-inset-left, 0px));
        padding-right: max(0px, env(safe-area-inset-right, 0px));
    }
}

/* Navbar theme synced from Example */
.navbar {
    background: linear-gradient(180deg, #0b1220, #0e1a33);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.nav-container {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
}


.logo {
    color: rgba(231, 238, 252, 0.95);
    justify-self: center;
}

.logo-text {
    color: rgba(231, 238, 252, 0.95);
    font-weight: 600;
}

.nav-drawer {
    display: contents;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d49d30;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    justify-self: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: rgba(231, 238, 252, 0.90);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, border-color 0.14s ease;
}

.nav-menu li a:hover {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.nav-menu li a.nav-active {
    color: #0b1220;
    background: #d49d30;
    border-color: rgba(0, 0, 0, 0.12);
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(212, 157, 48, 0.18) inset;
}

.quote-button {
    color: #0b1220;
    background: #d49d30;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    font-weight: 800;
    font-size: 15px;
    box-shadow: none;
    transition: transform 0.14s ease, filter 0.14s ease;
    justify-self: center;
}

.quote-button::before,
.quote-button::after {
    display: none !important;
}

.quote-button:hover {
    color: #0b1220;
    border-color: rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
    filter: brightness(1.04);
}

@media (max-width: 980px) {
    .nav-container {
        grid-template-columns: 1fr auto;
        height: 70px;
        column-gap: 12px;
    }

    .logo {
        justify-self: start;
    }

    .nav-toggle {
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-toggle span {
        background: rgba(231, 238, 252, 0.95);
    }

    .nav-drawer {
        position: absolute;
        top: calc(100% + 8px);
        left: auto;
        right: 30px;
        width: min(78vw, 320px);
        max-height: calc(100vh - 90px);
        overflow: auto;
        display: none;
        grid-template-columns: 1fr;
        row-gap: 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        background: linear-gradient(180deg, #0b1220, #060a13);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
        padding: 14px;
    }

    .navbar.nav-open .nav-drawer {
        display: grid;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }

    .quote-button {
        width: auto;
        max-width: none;
        padding: 8px 14px;
        font-size: 15px;
    }
}