* {
    box-sizing: border-box;
}

body,
body.footer-content-page,
body.legal-content-page {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f5f8f6 !important;
    color: #14233a !important;
    line-height: 1.65;
}

.page-shell {
    min-height: 100vh;
    background: #f5f8f6 !important;
}

body.footer-content-page .content-topbar,
body.legal-content-page .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: #081019 !important;
    color: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.footer-content-page .brand-link,
body.footer-content-page .content-topbar a,
body.legal-content-page .topbar a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

body.footer-content-page .brand-link,
body.legal-content-page .topbar > a:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

body.footer-content-page .brand-link::before,
body.legal-content-page .topbar > a:first-child::before {
    content: "";
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 8px;
    background: #080c12 url("../assets/brand/goindiaride-mark.png") center / 82% auto no-repeat;
    border: 1px solid rgba(240, 180, 79, 0.42);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.footer-content-page .content-actions,
body.legal-content-page .content-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.footer-content-page .utility-btn,
body.legal-content-page .utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #202124 !important;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
}

body.footer-content-page .utility-btn.utility-primary,
body.legal-content-page .utility-btn.utility-primary {
    background: #f0b44f !important;
    border-color: #f0b44f !important;
    color: #080c12 !important;
}

.topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-size: 0.95rem;
}

body.footer-content-page .hero-panel {
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 4rem);
    background: #fbf7ef !important;
    border-bottom: 1px solid #ead8b8 !important;
    box-shadow: none !important;
    color: #14233a !important;
}

.hero-inner,
.content-wrap {
    width: min(1120px, 100%);
    margin: 0 auto;
}

body.footer-content-page .eyebrow {
    margin: 0 0 0.65rem;
    color: #9a681f !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

body.footer-content-page h1,
body.footer-content-page h2,
body.footer-content-page h3,
body.legal-content-page h1,
body.legal-content-page h2,
body.legal-content-page h3 {
    color: #0d2340 !important;
    line-height: 1.18;
}

body.footer-content-page h1,
body.legal-content-page h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.15rem);
}

body.footer-content-page .hero-lead {
    max-width: 760px;
    margin: 1.1rem 0 0;
    color: #45556b !important;
    font-size: 1.08rem;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

body.footer-content-page .quick-nav a,
body.footer-content-page .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd7e6 !important;
    background: #fff !important;
    color: #10243d !important;
    text-decoration: none;
    font-weight: 800;
    box-shadow: none !important;
}

body.footer-content-page .quick-nav a:first-child,
body.footer-content-page .button-link.primary {
    background: #080c12 !important;
    border-color: #f0b44f !important;
    color: #fff !important;
}

.content-wrap {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

body.footer-content-page .section-block {
    padding: 2rem 0;
    border-bottom: 1px solid #dfe7f1;
}

.section-block:last-child {
    border-bottom: 0;
}

.section-head {
    max-width: 820px;
    margin-bottom: 1.25rem;
}

body.footer-content-page .section-head h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

body.footer-content-page .section-head p {
    margin: 0;
    color: #4f6074 !important;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.footer-content-page .info-card {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #dfe7f1 !important;
    border-radius: 8px;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(15, 34, 61, 0.06) !important;
    color: #14233a !important;
}

body.footer-content-page .info-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
}

body.footer-content-page .info-card p,
body.footer-content-page .info-card li {
    color: #526277 !important;
}

body.footer-content-page .info-card p {
    margin: 0;
}

ul,
ol {
    padding-left: 1.2rem;
}

body.footer-content-page .detail-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0 0;
    color: #526277 !important;
}

body.footer-content-page .note-panel {
    margin-top: 1.25rem;
    padding: 1.15rem;
    border-left: 4px solid #f0b44f;
    background: #fff8ec !important;
    border-radius: 8px;
    color: #294153 !important;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

body.footer-content-page .content-footer,
body.legal-content-page .content-footer {
    padding: 1.5rem clamp(1rem, 4vw, 3rem);
    background: #081019 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
}

body.footer-content-page .content-footer p,
body.legal-content-page .content-footer p {
    color: rgba(255, 255, 255, 0.78) !important;
    margin: 0 !important;
}

body.footer-content-page .content-footer a,
body.legal-content-page .content-footer a {
    color: #fff !important;
    font-weight: 800;
    text-shadow: none !important;
}

body.legal-content-page .container {
    max-width: 980px !important;
    margin: 24px auto !important;
    background: #fff !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 8px !important;
    padding: clamp(1.25rem, 4vw, 2rem) !important;
    box-shadow: 0 10px 24px rgba(15, 34, 61, 0.06) !important;
    color: #14233a !important;
}

body.legal-content-page p,
body.legal-content-page li {
    color: #526277 !important;
}

body.legal-content-page .meta {
    color: #607083 !important;
}

body.legal-content-page .links {
    margin-top: 24px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding-top: 18px !important;
    border-top: 1px solid #dfe7f1 !important;
}

body.legal-content-page .links a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 38px !important;
    padding: 0.55rem 0.8rem !important;
    border: 1px solid #cbd7e6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #10243d !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

html body.goi-global-theme.legal-content-page {
    background: #f5f8f6 !important;
    background-image: none !important;
    color: #14233a !important;
}

html body.goi-global-theme.legal-content-page .topbar {
    background: #081019 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html body.goi-global-theme.legal-content-page .topbar a {
    color: #fff !important;
}

html body.goi-global-theme.legal-content-page .container {
    width: min(980px, calc(100% - 32px)) !important;
    max-width: 980px !important;
    margin: 24px auto !important;
    background: #fff !important;
    border: 1px solid #dfe7f1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(15, 34, 61, 0.06) !important;
}

html body.goi-global-theme.legal-content-page .links a {
    background: #fff !important;
    background-image: none !important;
    color: #10243d !important;
    box-shadow: none !important;
}

html body.goi-global-theme.legal-content-page .content-footer {
    background: #081019 !important;
    background-image: none !important;
    color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: none !important;
}

html body.goi-global-theme.legal-content-page .content-footer p {
    color: rgba(255, 255, 255, 0.78) !important;
}

html body.goi-global-theme.legal-content-page .content-footer a {
    color: #fff !important;
}

html body.goi-global-theme.legal-content-page .utility-btn {
    background: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    color: #202124 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

html body.goi-global-theme.legal-content-page .utility-btn.utility-primary {
    background: #f0b44f !important;
    color: #080c12 !important;
    border-color: #f0b44f !important;
}

html body.goi-global-theme.legal-content-page .goi-native-nav-wrap {
    display: none !important;
}

@media (max-width: 900px) {
    .content-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .quick-nav a,
    .button-link {
        width: 100%;
    }

    body.footer-content-page .content-actions,
    body.legal-content-page .content-actions {
        width: 100%;
        justify-content: stretch;
    }

    body.footer-content-page .utility-btn,
    body.legal-content-page .utility-btn {
        flex: 1 1 0;
    }
}
