* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.legal-page,
body.site-page {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Legal pages: editorial, paper-like layout with a vertical reading rail. */
body.legal-page {
    min-height: 100vh;
    padding: 28px 20px 70px;
    color: #242326;
    background: #e8e2d8;
    line-height: 1.75;
}

.legal-page .page {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 0;
    counter-reset: legal-section;
}

.legal-page .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
    gap: 44px;
    align-items: end;
    margin: 0 0 42px;
    padding: 54px 54px 48px;
    color: #fffaf1;
    background: #1c2530;
    border: 0;
    border-bottom: 12px solid #e36b42;
    border-radius: 2px;
    box-shadow: 18px 18px 0 #c8bba7;
    overflow: hidden;
}

.legal-page .hero::before {
    content: "";
    position: absolute;
    top: -88px;
    right: -78px;
    width: 260px;
    height: 260px;
    border: 38px solid rgba(242, 193, 78, 0.88);
    border-radius: 50%;
}

.legal-page .hero::after {
    content: "";
    position: absolute;
    right: 42px;
    bottom: 38px;
    width: 90px;
    height: 90px;
    background: #397f88;
    transform: rotate(14deg);
    opacity: 0.78;
}

.legal-page .eyebrow,
.legal-page h1,
.legal-page .summary,
.legal-page .meta-grid {
    position: relative;
    z-index: 1;
}

.legal-page .eyebrow {
    display: inline-block;
    margin: 0 0 22px;
    padding: 6px 12px;
    color: #1c2530;
    background: #f2c14e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.legal-page h1 {
    max-width: 650px;
    margin: 0 0 16px;
    color: #fffaf1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 70px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.legal-page .summary {
    max-width: 610px;
    margin: 0;
    color: #d6d5ce;
    font-size: 16px;
}

.legal-page .meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    background: #f3eee5;
    border: 1px solid #f3eee5;
    box-shadow: 10px 10px 0 rgba(227, 107, 66, 0.8);
}

.legal-page .meta-card {
    min-height: 104px;
    padding: 18px 17px;
    background: transparent;
    border-right: 1px solid #cfc5b5;
    border-bottom: 1px solid #cfc5b5;
}

.legal-page .meta-card:nth-child(2n) {
    border-right: 0;
}

.legal-page .meta-card:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.legal-page .meta-label {
    display: block;
    margin: 0 0 8px;
    color: #756d61;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-page .meta-value {
    color: #1c2530;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.34;
    overflow-wrap: anywhere;
}

.legal-page .section {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 38px;
    margin: 0;
    padding: 36px 24px 38px 0;
    background: transparent;
    border: 0;
    border-top: 2px solid #c9bfaf;
    border-radius: 0;
    box-shadow: none;
    counter-increment: legal-section;
}

.legal-page .section::before {
    content: "SECTION " counter(legal-section, decimal-leading-zero);
    position: static;
    grid-column: 1;
    grid-row: 1 / span 12;
    width: auto;
    height: auto;
    display: block;
    padding-top: 4px;
    color: #e36b42;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-align: left;
}

.legal-page .section > * {
    grid-column: 2;
}

.legal-page .section:nth-of-type(2n + 1) {
    background: rgba(255, 250, 241, 0.36);
}

.legal-page h2 {
    margin: 0 0 13px;
    color: #1c2530;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
    color: #514d49;
}

.legal-page p {
    margin: 0 0 15px;
}

.legal-page p:last-child,
.legal-page ul:last-child {
    margin-bottom: 0;
}

.legal-page ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-page li + li {
    margin-top: 8px;
}

.legal-page li::marker {
    color: #397f88;
    font-weight: 900;
}

.legal-page a {
    color: #b4482a;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-page .note {
    margin: 20px 0;
    padding: 18px 20px;
    background: #dce9e5;
    border: 0;
    border-left: 8px solid #397f88;
    border-radius: 0;
}

.legal-page .contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 18px 0;
    padding: 0;
    background: #1c2530;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.legal-page .contact-card p,
.legal-page .contact-card p:last-child {
    min-height: 82px;
    margin: 0;
    padding: 17px 18px;
    color: #e5e2da;
    background: transparent;
    border-right: 1px solid rgba(255, 250, 241, 0.18);
    border-bottom: 1px solid rgba(255, 250, 241, 0.18);
}

.legal-page .contact-card p:nth-child(2n) {
    border-right: 0;
}

.legal-page .contact-card p:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.legal-page .contact-card strong {
    display: block;
    margin-bottom: 5px;
    color: #f2c14e;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-page .contact-card a {
    color: #9bd3d1;
}

.legal-page hr {
    height: 8px;
    margin: 28px 0 0;
    border: 0;
    background: repeating-linear-gradient(90deg, #e36b42 0 24px, #f2c14e 24px 48px, #397f88 48px 72px);
}

/* Landing page: light, structured product sheet instead of a dark hero dashboard. */
body.site-page {
    min-height: 100vh;
    color: #242326;
    background: #e8e2d8;
    line-height: 1.65;
}

.site-page a {
    color: inherit;
    text-decoration: none;
}

.site-page .wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.site-page .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(232, 226, 216, 0.94);
    border-bottom: 1px solid #c9bfaf;
    backdrop-filter: blur(12px);
}

.site-page .nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1c2530;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
}

.site-page .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fffaf1;
    background: #e36b42;
    border-radius: 50%;
    font-family: Inter, sans-serif;
    font-weight: 950;
}

.site-page .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #655e56;
    font-size: 13px;
    font-weight: 850;
}

.site-page .nav-links a:hover {
    color: #b4482a;
}

.site-page .nav-button {
    min-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    color: #fffaf1;
    background: #1c2530;
    border-radius: 2px;
}

.site-page .hero {
    position: relative;
    min-height: 620px;
    padding: 105px 0 125px;
    display: flex;
    align-items: center;
    background: #f3eee5;
    border-bottom: 1px solid #c9bfaf;
    overflow: hidden;
}

.site-page .hero::before {
    content: "AQ";
    position: absolute;
    right: 5vw;
    bottom: -78px;
    color: transparent;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(180px, 30vw, 430px);
    font-weight: 700;
    line-height: 1;
    -webkit-text-stroke: 2px rgba(227, 107, 66, 0.26);
}

.site-page .hero::after {
    content: "";
    position: absolute;
    top: 88px;
    right: 13vw;
    width: 28px;
    height: 190px;
    background: #397f88;
    transform: rotate(36deg);
}

.site-page .hero-inner {
    position: relative;
    z-index: 1;
    padding: 0;
}

.site-page .kicker {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin: 0 0 22px;
    padding: 0 12px;
    color: #fffaf1;
    background: #397f88;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-page h1 {
    max-width: 760px;
    margin: 0;
    color: #1c2530;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 11vw, 138px);
    font-weight: 700;
    line-height: 0.84;
    letter-spacing: -0.075em;
}

.site-page .hero-copy {
    max-width: 600px;
    margin: 30px 0 0;
    color: #655e56;
    font-size: 18px;
}

.site-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.site-page .button {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    font-weight: 900;
}

.site-page .button-primary {
    color: #fffaf1;
    background: #e36b42;
}

.site-page .button-ghost {
    color: #1c2530;
    background: transparent;
    border: 1px solid #a99c8b;
}

.site-page .summary-band {
    position: relative;
    z-index: 3;
    margin-top: -42px;
}

.site-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #1c2530;
    border: 6px solid #1c2530;
    box-shadow: 12px 12px 0 #c8bba7;
}

.site-page .summary-item {
    padding: 23px 25px;
    background: #f3eee5;
    border-right: 1px solid #c9bfaf;
}

.site-page .summary-item:last-child {
    border-right: 0;
}

.site-page .label {
    display: block;
    margin-bottom: 8px;
    color: #82786c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-page .value {
    color: #1c2530;
    font-size: 18px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.site-page .section {
    padding: 100px 0 0;
}

.site-page .section-header {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 28px;
}

.site-page h2 {
    margin: 0;
    color: #1c2530;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.site-page .section-note {
    margin: 0;
    color: #655e56;
}

.site-page .product-panel,
.site-page .info-panel {
    background: #f3eee5;
    border: 1px solid #c9bfaf;
    border-radius: 0;
    overflow: hidden;
}

.site-page .product-lead {
    padding: 34px 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 34px;
    align-items: end;
    border-bottom: 8px solid #e36b42;
}

.site-page .product-lead p {
    margin: 0;
    color: #514d49;
    font-size: 17px;
}

.site-page .product-note {
    color: #397f88;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.12;
}

.site-page .metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #c9bfaf;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.site-page .metric,
.site-page .metric:nth-child(2),
.site-page .metric:nth-child(3) {
    padding: 22px 24px;
    background: #1c2530;
    border-right: 1px solid rgba(255, 250, 241, 0.18);
}

.site-page .metric:last-child {
    border-right: 0;
}

.site-page .metric strong {
    display: block;
    color: #f2c14e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.site-page .metric span {
    color: #d6d5ce;
}

.site-page .info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.site-page .info-title {
    padding: 20px 23px;
    color: #fffaf1;
    background: #397f88;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 700;
}

.site-page .info-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
    padding: 17px 22px;
    border-top: 1px solid #c9bfaf;
}

.site-page .info-row span {
    color: #82786c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-page .info-row strong,
.site-page .info-row a {
    color: #1c2530;
    overflow-wrap: anywhere;
}

.site-page .legal-list {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.site-page .legal-link {
    padding: 17px 18px;
    display: block;
    background: #e8e2d8;
    border-left: 7px solid #e36b42;
}

.site-page .legal-link:nth-child(2) {
    border-left-color: #f2c14e;
}

.site-page .legal-link strong {
    display: block;
    margin-bottom: 5px;
    color: #1c2530;
}

.site-page .legal-link span {
    color: #756d61;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.site-page .contact-panel {
    margin-top: 18px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    color: #fffaf1;
    background: #e36b42;
    border-radius: 0;
}

.site-page .contact-panel strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.site-page .contact-panel span {
    color: rgba(255, 250, 241, 0.82);
}

.site-page .contact-panel a {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1c2530;
    background: #f2c14e;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.site-page .footer {
    padding: 52px 0 38px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #756d61;
    font-size: 13px;
}

.site-page .footer a {
    color: #b4482a;
    font-weight: 900;
}

@media (max-width: 900px) {
    .legal-page .hero,
    .site-page .summary-grid,
    .site-page .product-lead,
    .site-page .section-header,
    .site-page .info-layout,
    .site-page .contact-panel {
        grid-template-columns: 1fr;
    }

    .legal-page .hero {
        gap: 30px;
    }

    .site-page .summary-item {
        border-right: 0;
        border-bottom: 1px solid #c9bfaf;
    }

    .site-page .summary-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    body.legal-page {
        padding: 12px 10px 42px;
    }

    .legal-page .hero {
        margin-bottom: 30px;
        padding: 35px 25px 28px;
        box-shadow: 8px 8px 0 #c8bba7;
    }

    .legal-page .meta-grid,
    .legal-page .contact-card {
        grid-template-columns: 1fr;
    }

    .legal-page .meta-card,
    .legal-page .meta-card:nth-child(2n),
    .legal-page .meta-card:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #cfc5b5;
    }

    .legal-page .meta-card:last-child {
        border-bottom: 0;
    }

    .legal-page .section {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding: 26px 0 30px;
    }

    .legal-page .section::before {
        grid-column: 1;
        grid-row: auto;
        margin-bottom: 10px;
    }

    .legal-page .section > * {
        grid-column: 1;
    }

    .legal-page .contact-card p,
    .legal-page .contact-card p:last-child,
    .legal-page .contact-card p:nth-child(2n),
    .legal-page .contact-card p:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 250, 241, 0.18);
    }

    .legal-page .contact-card p:last-child {
        border-bottom: 0;
    }

    .site-page .wrap {
        width: min(100% - 24px, 1120px);
    }

    .site-page .nav {
        min-height: 64px;
    }

    .site-page .nav-links a:not(.nav-button) {
        display: none;
    }

    .site-page .hero {
        min-height: 620px;
        padding: 90px 0 100px;
    }

    .site-page .hero-copy {
        font-size: 16px;
    }

    .site-page .hero-actions {
        flex-direction: column;
    }

    .site-page .button {
        width: 100%;
    }

    .site-page .section {
        padding-top: 72px;
    }

    .site-page .product-lead {
        padding: 26px 22px;
    }

    .site-page .metric-row,
    .site-page .info-row {
        grid-template-columns: 1fr;
    }

    .site-page .metric,
    .site-page .metric:nth-child(2),
    .site-page .metric:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 250, 241, 0.18);
    }

    .site-page .metric:last-child {
        border-bottom: 0;
    }

    .site-page .footer {
        flex-direction: column;
    }
}
