/* ================= COMMON PUBLIC PAGE STYLES ================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
}

a {
    text-decoration: none;
}

/* ================= LANGUAGE TRANSLATOR ================= */

.language-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 7px;
    background: rgba(255,255,255,.12);
}

.language-box .translate-icon {
    font-size: 14px;
}

#google_translate_element {
    min-width: 105px;
}

#google_translate_element .goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

#google_translate_element .goog-te-gadget > span {
    display: none !important;
}

#google_translate_element select {
    width: 105px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    border: 0 !important;
    border-radius: 5px !important;
    outline: none !important;
    background: #fff !important;
    color: #183c75 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-logo-link,
.goog-te-gadget span {
    display: none !important;
}

/* ================= TOP UTILITY BAR ================= */

.utility {
    min-height: 38px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: #fff;
    background: linear-gradient(90deg, #ff6f4d, #ff805d);
    font-size: 13px;
    font-weight: 700;
}

.utility a {
    color: #fff;
}

.utility-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .96;
}

/* ================= NAVBAR ================= */

.navbar {
    min-height: 82px;
    padding: 10px 6%;
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    border-bottom: 1px solid #e9edf4;
    box-shadow: 0 4px 18px rgba(21,45,80,.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.brand img {
    width: 205px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.nav-center a {
    color: #16233c;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 2px;
    position: relative;
}

.nav-center a:after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: #ff704f;
    transition: .25s;
}

.nav-center a:hover,
.nav-center a.active {
    color: #1764c0;
}

.nav-center a:hover:after,
.nav-center a.active:after {
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 19px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    transition: .25s;
    white-space: nowrap;
}

.nav-login {
    color: #1764c0;
    border: 1px solid #1764c0;
    background: #fff;
}

.nav-register {
    color: #fff;
    background: linear-gradient(135deg, #ff704f, #ff5e3a);
    box-shadow: 0 8px 18px rgba(255,105,72,.22);
}

.nav-btn:hover {
    transform: translateY(-2px);
}

/* ================= COMMON FOOTER ================= */

footer {
    background: #0d1d38;
    color: #fff;
    padding: 42px 6% 24px;
}

.footer-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand img {
    width: 205px;
    height: 58px;
    object-fit: contain;
    background: #fff;
    border-radius: 7px;
    padding: 2px 8px;
    margin-bottom: 12px;
}

.footer-brand p,
.footer-col a {
    color: #b9c5d7;
    font-size: 13px;
    line-height: 1.7;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #fff;
}

.footer-col a {
    display: block;
    margin: 7px 0;
}

.footer-col a:hover {
    color: #ff9078;
}

.copyright {
    max-width: 1180px;
    margin: 18px auto 0;
    color: #93a3bb;
    font-size: 12px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

@media(max-width:1050px) {
    .nav-center {
        gap: 17px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:760px) {
    .utility {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 6px 4%;
        font-size: 11px;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 8px 4%;
    }

    .brand {
        flex: 1;
    }

    .brand img {
        width: 175px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        justify-content: space-around;
        gap: 8px;
        border-top: 1px solid #edf0f5;
        padding-top: 7px;
    }

    .nav-center a {
        font-size: 13px;
    }

    .nav-btn {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* Consistent left alignment for common footer columns */
.footer-grid,
.footer-brand,
.footer-col {
    text-align: left;
}

/* Final footer alignment override for all public pages */
footer .footer-grid,
footer .footer-grid * {
    text-align: left !important;
}

footer .copyright {
    text-align: center !important;
}


/* Keep utility bar and navbar visible together while scrolling */
.public-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-header .navbar {
    position: relative;
    top: auto;
    z-index: auto;
}

/* Fixed public header and correct page spacing */
.public-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999 !important;
}

.public-header .navbar {
    position: relative;
    top: auto;
    z-index: auto;
}

body {
    padding-top: 126px !important;
}

@media (max-width: 760px) {
    body {
        padding-top: 175px !important;
    }
}

#home {
    scroll-margin-top: 143px;
}

/* Mobile header layout refinement */
@media (max-width: 760px) {
    .utility {
        min-height: 40px;
        padding: 5px 3%;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 5px;
        font-size: 10px;
        white-space: nowrap;
    }

    .language-box {
        flex: 0 0 auto;
        gap: 4px;
        padding: 3px 5px;
    }

    #google_translate_element,
    #google_translate_element select {
        min-width: 88px;
        width: 88px !important;
    }

    .utility-pill {
        flex: 0 0 auto;
        font-size: 10px;
    }

    .navbar {
        min-height: 0;
        padding: 8px 4%;
        gap: 8px 12px;
        align-items: center;
    }

    .brand img {
        width: 150px;
        height: 44px;
        margin: 0;
    }

    .nav-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .nav-btn {
        min-height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .nav-center {
        margin-top: 2px;
        padding-top: 6px;
        gap: 4px;
    }

    .nav-center a {
        padding: 7px 0;
        font-size: 12px;
        white-space: nowrap;
    }

    body {
        padding-top: 160px !important;
    }
}

/* Mobile footer compact two-column layout */
@media (max-width: 760px) {
    footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 22px;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }

    footer .footer-col:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 5px;
    }

    footer .footer-col:last-child h4 {
        grid-column: 1 / -1;
    }

    footer .footer-col a {
        margin: 4px 0;
        overflow-wrap: anywhere;
    }
}

/* Final mobile footer: desktop-style three columns */
@media (max-width: 760px) {
    footer .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 10px;
        row-gap: 18px;
    }

    footer .footer-brand {
        grid-column: 1 / -1 !important;
    }

    footer .footer-col:last-child {
        grid-column: auto !important;
        display: block !important;
    }

    footer .footer-col h4 {
        font-size: 12px;
    }

    footer .footer-col a {
        font-size: 11px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }
}


/* ==================================================
   CONSISTENT THEME: PRICING & LEGAL PUBLIC PAGES
   Matches About and Services visual identity
================================================== */

body.pricing-page,
body.terms-page,
body.privacy-page,
body.refund-page {
    background: #f7f9fc !important;
    color: #14213d;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
}

.pricing-page .hero,
.terms-page .hero,
.privacy-page .hero,
.refund-page .hero {
    min-height: 260px;
    padding: 58px 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(circle at 8% 30%, rgba(50,156,229,.20), transparent 30%),
        radial-gradient(circle at 90% 75%, rgba(255,112,79,.15), transparent 30%),
        linear-gradient(115deg, #dff1fb 0%, #eef7fc 48%, #fff7ee 100%);
}

.pricing-page .hero h1,
.terms-page .hero h1,
.privacy-page .hero h1,
.refund-page .hero h1 {
    color: #183c75;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 12px;
}

.pricing-page .hero p,
.terms-page .hero p,
.privacy-page .hero p,
.refund-page .hero p {
    max-width: 780px;
    margin: 0;
    color: #53627a;
    font-size: 16px;
    line-height: 1.75;
}

.pricing-page main.container,
.terms-page main.container,
.privacy-page main.container,
.refund-page main {
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 38px auto 55px;
    padding: 36px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(24,60,117,.06);
}

.terms-page main.container,
.privacy-page main.container {
    max-width: 1000px;
}

.pricing-page p,
.terms-page p,
.privacy-page p,
.refund-page main p {
    color: #53627a;
    font-size: 15px;
    line-height: 1.8;
}

.terms-page main h2,
.privacy-page main h2,
.refund-page main h2,
.pricing-page .notice h2,
.pricing-page .contact h2 {
    color: #183c75;
    font-size: 21px;
    line-height: 1.35;
    margin: 28px 0 10px;
}

.terms-page main h2:first-of-type,
.privacy-page main h2:first-of-type,
.refund-page main h2:first-of-type {
    margin-top: 20px;
}

.terms-page main ul,
.privacy-page main ul,
.refund-page main ul,
.pricing-page .notice ul {
    padding-left: 23px;
    color: #53627a;
    font-size: 15px;
    line-height: 1.8;
}

.terms-page main li,
.privacy-page main li,
.refund-page main li,
.pricing-page .notice li {
    margin: 7px 0;
}

.terms-page main a,
.privacy-page main a,
.refund-page main a,
.pricing-page main a {
    color: #1764c0;
    font-weight: 600;
    text-decoration: none;
}

.terms-page main a:hover,
.privacy-page main a:hover,
.refund-page main a:hover,
.pricing-page main a:hover {
    color: #ff6545;
    text-decoration: underline;
}

.terms-page .updated,
.privacy-page .updated {
    color: #77849a;
    font-size: 13px;
    margin-bottom: 20px;
}

.pricing-page .price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(24,60,117,.06);
}

.pricing-page .price-table th {
    background: #183c75;
    color: #fff;
    font-weight: 800;
}

.pricing-page .price-table th,
.pricing-page .price-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e8edf4;
    font-size: 14px;
}

.pricing-page .price-table td {
    color: #53627a;
}

.pricing-page .price-table .price {
    color: #183c75;
    font-weight: 800;
}

.pricing-page .notice {
    margin-top: 28px;
    padding: 22px 24px;
    background: #f7f9fc;
    border: 1px solid #e3eaf3;
    border-left: 4px solid #ff6545;
    border-radius: 12px;
}

.pricing-page .notice h2,
.pricing-page .contact h2 {
    margin-top: 0;
}

.pricing-page .contact {
    margin-top: 28px;
    padding: 25px;
    text-align: center;
    background: #eef7fc;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
}

.pricing-page .contact p {
    margin: 5px 0;
}

@media (max-width: 760px) {
    .pricing-page .hero,
    .terms-page .hero,
    .privacy-page .hero,
    .refund-page .hero {
        min-height: 210px;
        padding: 38px 5%;
    }

    .pricing-page .hero h1,
    .terms-page .hero h1,
    .privacy-page .hero h1,
    .refund-page .hero h1 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .pricing-page .hero p,
    .terms-page .hero p,
    .privacy-page .hero p,
    .refund-page .hero p {
        font-size: 14px;
    }

    .pricing-page main.container,
    .terms-page main.container,
    .privacy-page main.container,
    .refund-page main {
        width: calc(100% - 24px);
        margin: 22px auto 35px;
        padding: 22px 17px;
        border-radius: 12px;
    }

    .terms-page main h2,
    .privacy-page main h2,
    .refund-page main h2 {
        font-size: 18px;
    }

    .pricing-page .price-table th,
    .pricing-page .price-table td {
        padding: 12px 9px;
        font-size: 12px;
    }

    .pricing-page .notice {
        padding: 18px 15px;
    }

    .pricing-page .contact {
        padding: 20px 12px;
    }
}

/* FINAL REFINEMENT: ALL FOUR PUBLIC INFORMATION PAGES */

/* Consistent hero */
.pricing-page .hero,
.terms-page .hero,
.privacy-page .hero,
.refund-page .hero {
    min-height: 270px;
    padding: 55px 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 8% 30%, rgba(50,156,229,.20), transparent 30%),
        radial-gradient(circle at 90% 75%, rgba(255,112,79,.15), transparent 30%),
        linear-gradient(115deg, #dff1fb 0%, #eef7fc 48%, #fff7ee 100%) !important;
    color: #183c75 !important;
}

.pricing-page .hero h1,
.terms-page .hero h1,
.privacy-page .hero h1,
.refund-page .hero h1 {
    color: #183c75 !important;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 14px;
}

.pricing-page .hero p,
.terms-page .hero p,
.privacy-page .hero p,
.refund-page .hero p {
    color: #53627a !important;
    font-size: 16px;
    line-height: 1.7;
    max-width: 780px;
    margin: 0;
}

/* Pricing: one clean content card */
.pricing-page main.container {
    max-width: 1100px;
    width: calc(100% - 48px);
    margin: 38px auto 55px;
    padding: 32px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(24,60,117,.06);
}

/* Terms and Privacy: remove outer card, retain one inner card */
.terms-page main.container,
.privacy-page main.container {
    max-width: 1100px;
    width: calc(100% - 48px);
    margin: 38px auto 55px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.terms-page main .content,
.privacy-page main .content {
    padding: 38px 42px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(24,60,117,.06);
}

/* Refund: one clean content card */
.refund-page main {
    max-width: 1100px;
    width: calc(100% - 48px);
    margin: 38px auto 55px;
    padding: 38px 42px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(24,60,117,.06);
}

/* Consistent legal typography */
.terms-page main h2,
.privacy-page main h2,
.refund-page main h2 {
    color: #183c75;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
    margin: 27px 0 10px;
}

.terms-page main p,
.privacy-page main p,
.refund-page main p,
.pricing-page main p {
    color: #53627a;
    font-size: 15px;
    line-height: 1.85;
    margin: 10px 0;
}

.terms-page main ul,
.privacy-page main ul,
.refund-page main ul {
    padding-left: 24px;
    color: #53627a;
    line-height: 1.85;
}

.terms-page main li,
.privacy-page main li,
.refund-page main li {
    margin: 7px 0;
}

/* Pricing table and supporting sections */
.pricing-page .price-table {
    border: 1px solid #e8edf4;
    border-radius: 12px;
}

.pricing-page .notice {
    background: #f7f9fc;
    border: 1px solid #e3eaf3;
    border-left: 4px solid #ff6545;
    border-radius: 12px;
}

.pricing-page .contact {
    background: #eef7fc;
    border: 1px solid #e3eaf3;
    border-radius: 12px;
}

/* Mobile refinement */
@media (max-width: 760px) {
    .pricing-page .hero,
    .terms-page .hero,
    .privacy-page .hero,
    .refund-page .hero {
        min-height: 210px;
        padding: 38px 5%;
    }

    .pricing-page main.container,
    .terms-page main.container,
    .privacy-page main.container,
    .refund-page main {
        width: calc(100% - 24px);
        margin: 22px auto 35px;
    }

    .pricing-page main.container {
        padding: 18px 14px;
    }

    .terms-page main .content,
    .privacy-page main .content,
    .refund-page main {
        padding: 22px 18px;
    }

    .terms-page main h2,
    .privacy-page main h2,
    .refund-page main h2 {
        font-size: 18px;
    }
}


/* CSC-style compact language translator button */
.language-box {
    position: relative;
    width: 74px;
    height: 40px;
    padding: 0 !important;
    justify-content: center;
    gap: 0 !important;
    border: 1px solid rgba(255,255,255,.75) !important;
    border-radius: 9px !important;
    background: rgba(255,255,255,.12) !important;
    overflow: hidden;
}

.language-box .translate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    pointer-events: none;
}

.translate-a {
    border: 1.5px solid #fff;
    border-radius: 3px;
    padding: 1px 3px;
    line-height: 17px;
}

.translate-b {
    font-size: 13px;
}

.translate-arrow {
    font-size: 17px;
    margin-left: 3px;
}

/* Keep the real Google Translate selector clickable over the icon */
.language-box #google_translate_element {
    position: absolute;
    inset: 0;
    z-index: 5;
    min-width: 0 !important;
    width: 100% !important;
    height: 100%;
    opacity: 0;
    overflow: hidden;
}

.language-box #google_translate_element .goog-te-gadget {
    width: 100%;
    height: 100%;
}

.language-box #google_translate_element select {
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

@media (max-width: 760px) {
    .language-box {
        width: 48px;
        height: 40px;
        padding: 0 !important;
    }
    .translate-a { font-size: 12px; }
    .translate-b { font-size: 12px; }
    .translate-arrow { font-size: 15px; }
}

/* Remove small gap between fixed header and homepage hero */
.public-header + #home {
    margin-top: -6px !important;
}

/* Final homepage header-to-hero gap correction */
body:has(.public-header) #home {
    margin-top: -6px !important;
}

/* Remove gap between common fixed header and all public page heroes */
.public-header ~ .page-hero,
.public-header ~ .contact-hero,
.public-header ~ .hero {
    margin-top: -6px !important;
}

/* Final 4px header gap correction for non-home public pages */
body:has(.public-header):not(:has(#home)) {
    padding-top: 122px !important;
}
