:root {
    color-scheme: light;
    --ink: #1d2b31;
    --muted: #53636a;
    --brand: #145b73;
    --brand-dark: #0e4356;
    --line: #e3e7e3;
    --paper: #f5f5f1;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.65;
}

a { color: var(--brand); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 76px;
    padding: 0 max(1.5rem, calc((100% - 1160px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid #e6e8e5;
    transition: box-shadow .3s;
}

.navbar.scrolled { box-shadow: 0 3px 14px rgba(29,43,49,.08); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { display: block; width: auto; height: 48px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    color: #43545a;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-links a:hover { color: var(--brand); }
.nav-links .nav-cta {
    padding: .62rem 1rem;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
}
.nav-links .nav-cta:hover { background: var(--brand-dark); color: #fff; }
.hamburger, .mobile-close {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.hamburger { display: none; font-size: 1.4rem; }
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(255,255,255,.98);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
}
.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.6rem;
}

.detail-main {
    width: min(100% - 3rem, 1040px);
    margin: 0 auto;
    padding: 4.5rem 0 5rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: .85rem;
}

.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-kicker {
    margin: 0 0 .75rem;
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }

h1 {
    max-width: 800px;
    margin: 0 0 1.25rem;
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.detail-lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.solution-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 3rem;
}

.solution-hero-copy { min-width: 0; }
.solution-hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.55rem); }

.solution-hero-image {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #edf2f2;
    box-shadow: 0 12px 30px rgba(29, 43, 49, .12);
}

.solution-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button {
    min-height: 46px;
    padding: .7rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
}

.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-secondary { background: transparent; color: var(--brand); }
.button-secondary:hover { background: var(--paper); color: var(--brand-dark); }

.detail-section { margin-top: 4rem; }
.detail-section h2 { margin: 0 0 .75rem; font-size: clamp(1.65rem, 3vw, 2.2rem); }
.detail-section > p { max-width: 760px; margin: 0; color: var(--muted); }

.detail-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-card {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.detail-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f3f5;
    color: var(--brand);
    font-size: 1.1rem;
}

.detail-card-icon.icon-warm { background: #fff2e5; color: #a65b16; }
.detail-card-icon.icon-green { background: #eaf5ee; color: #2f7652; }

.detail-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.detail-card p { margin: 0; color: var(--muted); font-size: .93rem; }

.detail-list {
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1.5rem;
    list-style: none;
}

.detail-list li { position: relative; padding-left: 1.35rem; }
.detail-list li::before {
    position: absolute;
    left: 0;
    color: var(--brand);
    content: "\2713";
    font-weight: 700;
}

.detail-note {
    margin-top: 1.2rem !important;
    font-size: .87rem;
}

.contact-band {
    margin-top: 4rem;
    padding: 2rem;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.contact-band h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact-band p { margin: 0; color: rgba(255,255,255,.82); }
.contact-band .button { margin-top: 1.25rem; border-color: #fff; background: #fff; color: var(--brand-dark); }
.contact-band .button:hover { background: #edf4f3; }

.footer {
    padding: 4rem 2rem 2rem;
    background: #202d32;
    color: rgba(255,255,255,.5);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p { max-width: 280px; margin: .75rem 0 0; font-size: .9rem; line-height: 1.7; }
.footer-col h6 { margin: 0 0 1rem; color: #fff; font-size: .9rem; font-weight: 700; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.58);
    font-size: .88rem;
    text-decoration: none;
}
.footer-col ul li a:hover { color: #78b9c8; }
.footer-contact li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contact li i { flex: 0 0 1rem; margin-top: .25rem; color: #78b9c8; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.footer-socials a:hover { background: var(--brand); color: #fff; }
.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.58); text-decoration: none; }
.footer-bottom a:hover { color: #78b9c8; }
.footer-legal { display: flex; gap: 1.5rem; }
.wa-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 998;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(37,211,102,.25);
}
.wa-float:hover { transform: translateY(-2px); }

.microsoft-section-kicker {
    margin: 0 0 .5rem;
    color: var(--brand);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.microsoft-service-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.microsoft-service-card {
    display: flex;
    flex-direction: column;
}

.microsoft-service-card h3 { margin-bottom: .65rem; }

.microsoft-tags {
    margin: auto 0 0;
    padding: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
}

.microsoft-tags li {
    padding: .25rem .55rem;
    border: 1px solid #dfe9eb;
    border-radius: 999px;
    background: #f5f9fa;
    color: #43545a;
    font-size: .76rem;
    line-height: 1.4;
}

.microsoft-process-section {
    position: relative;
    z-index: 0;
    margin: 4rem 0 0;
    padding: 3.75rem 0;
    background: #f4f7fa;
    box-shadow: 0 0 0 100vmax #f4f7fa;
    clip-path: inset(0 -100vmax);
    text-align: center;
}

.microsoft-process-section .microsoft-section-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-bottom: .75rem;
}

.microsoft-process-section .microsoft-section-kicker::before {
    width: 18px;
    height: 2px;
    background: var(--brand);
    content: "";
}

.microsoft-process-section h2 {
    max-width: 760px;
    margin: 0 auto;
    color: #101820;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.microsoft-process-grid {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.microsoft-process-grid::before {
    position: absolute;
    top: 28px;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: #a9d8f2;
    content: "";
}

.microsoft-process-card {
    position: relative;
    padding: 0 1rem;
    text-align: center;
}

.microsoft-process-number {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #087fd0;
    box-shadow: 0 7px 18px rgba(8, 127, 208, .22);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.microsoft-process-card h3 { margin: 0 0 .45rem; font-size: 1rem; }
.microsoft-process-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.microsoft-segment-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.microsoft-segment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.35rem 1rem;
    text-align: center;
}

.microsoft-segment-icon {
    width: 44px;
    height: 44px;
    margin-bottom: .75rem;
    font-size: 1.1rem;
}

.microsoft-segment-card h3 { margin: 0 0 .4rem; font-size: .98rem; }
.microsoft-segment-card p { margin: 0; font-size: .88rem; }

@media (max-width: 960px) {
    .microsoft-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .microsoft-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .microsoft-process-grid::before { display: none; }
    .microsoft-segment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .solution-hero { grid-template-columns: 1fr; gap: 2rem; }
    .solution-hero-image { max-width: 640px; }
}

@media (max-width: 640px) {
    .navbar { height: 68px; padding: 0 1.25rem; }
    .nav-logo img { height: 44px; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .mobile-menu { justify-content: flex-start; overflow-y: auto; padding: 5rem 1rem 2rem; }
    .footer { padding: 3rem 1.4rem 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
    .detail-main { width: min(100% - 2rem, 1040px); padding: 3rem 0 4rem; }
    .detail-grid, .detail-list { grid-template-columns: 1fr; }
    .microsoft-service-grid, .microsoft-process-grid, .microsoft-segment-grid { grid-template-columns: 1fr; }
    .detail-section { margin-top: 3rem; }
    .microsoft-process-section { padding-top: 3rem; padding-bottom: 3rem; }
    .microsoft-process-grid {
        max-width: 560px;
        margin-top: 2rem;
        gap: 1.25rem;
        text-align: left;
    }
    .microsoft-process-grid::before {
        top: 28px;
        right: auto;
        bottom: 28px;
        left: 27px;
        width: 1px;
        height: auto;
        display: block;
    }
    .microsoft-process-card {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 1rem;
        padding: 0;
        text-align: left;
    }
    .microsoft-process-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }
    .microsoft-process-card h3 { grid-column: 2; align-self: end; padding-top: .2rem; }
    .microsoft-process-card p { grid-column: 2; }
    .contact-band { padding: 1.5rem; }
}

.legal-page {
    --ms-blue: #145b73;
    --ms-blue-dark: #0e4356;
    --ms-blue-light: #78b9c8;
    --ink: #1d2b31;
    --ink-60: #53636a;
    --surface: #f5f5f1;
    --surface-2: #e3e7e3;
    --radius: 8px;
    --radius-lg: 10px;
    font-family: 'DM Sans', Arial, sans-serif;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4,
.legal-page h5,
.legal-page h6 {
    font-family: inherit;
}

.legal-page .page-hero {
    padding: 3.25rem 1.5rem 2.75rem;
    overflow: visible;
    background: var(--paper);
}

.legal-page .page-hero::before { display: none; }
.legal-page .page-hero-inner { max-width: 1040px; }

.legal-page .page-hero-kicker {
    background: #e8f3f5;
    border-color: #d5e7ea;
    color: var(--brand);
}

.legal-page .page-hero h1 {
    color: var(--ink);
    font-size: clamp(2.2rem, 4.4vw, 3.55rem);
    font-weight: 700;
}

.legal-page .page-hero p {
    color: var(--muted);
    font-size: .95rem;
}

.legal-page .doc-wrap {
    max-width: 920px;
    padding: 2.5rem 1.5rem 5rem;
}

.legal-page .doc-meta { gap: .6rem; margin-bottom: 2rem; }

.legal-page .doc-badge {
    background: var(--paper);
    border-color: var(--line);
    border-radius: 999px;
    color: var(--brand);
}

.legal-page .doc-toc {
    margin-bottom: 2rem;
    padding: 1.4rem;
    border-color: var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.legal-page .doc-toc h3 { color: var(--ink); }
.legal-page .doc-toc ol li a { color: var(--brand); }
.legal-page .doc-toc ol li a:hover { color: var(--brand-dark); }

.legal-page .doc-section {
    margin-bottom: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere;
    scroll-margin-top: 96px;
}

.legal-page .doc-section-header {
    gap: .7rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.legal-page .doc-section-num {
    border-radius: 8px;
    background: var(--brand);
    font-family: inherit;
}

.legal-page .doc-section h2 { color: var(--ink); }
.legal-page .doc-section p,
.legal-page .doc-section li { color: var(--muted); }
.legal-page .doc-section strong { color: var(--ink); }

.legal-page .doc-highlight {
    border-left-color: var(--brand);
    background: #f0f7f8;
}

.legal-page .doc-highlight strong { color: var(--brand); }

.legal-page .doc-contact {
    padding: 2rem;
    border-radius: 8px;
    background: var(--brand);
}

.legal-page .doc-contact a.btn-c {
    box-sizing: border-box;
    max-width: 100%;
    border-radius: 6px;
    background: #fff;
    color: var(--brand-dark);
    justify-content: center;
    overflow-wrap: anywhere;
    white-space: normal;
}

.legal-page .doc-contact a.btn-c:hover {
    background: var(--paper);
    color: var(--brand-dark);
}

@media (min-width: 641px) and (max-width: 768px) {
    .legal-page .nav-links { display: flex; }
    .legal-page .hamburger { display: none; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .legal-page .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .legal-page .page-hero { padding: 2.5rem 1rem 2rem; }
    .legal-page .doc-wrap { padding: 1.5rem 1rem 3.5rem; }
    .legal-page .doc-section { padding: 1rem; }
    .legal-page .doc-toc { padding: 1.1rem; }
    .legal-page .doc-contact { padding: 1.5rem; }
}
