:root {
    --legal-ink: #17231e;
    --legal-muted: #5b6962;
    --legal-paper: #f7f4ec;
    --legal-line: #d8ddd7;
    --legal-green: #176b4d;
    --legal-lime: #dff16a;
    --legal-alert: #8c3e20;
}

.lead-page,
.legal-page {
    background: var(--legal-paper);
    color: var(--legal-ink);
}

.lead-legal-shell,
.legal-document,
.privacy-request-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(48px, 8vw, 104px) 0;
}

.lead-back {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 38px;
    color: var(--legal-muted);
    font-size: .9rem;
}

.lead-back a,
.legal-sections a,
.lead-privacy-note a,
.lead-thanks a:not(.lead-submit) {
    color: var(--legal-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lead-grid,
.privacy-request-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: start;
}

.lead-grid {
    grid-template-areas:
        "intro form"
        "details form";
}

.lead-intro { grid-area: intro; }
.lead-details { grid-area: details; margin-top: calc(clamp(34px, 7vw, 90px) * -1 + 10px); }
.lead-grid > .lead-form-card { grid-area: form; }

.lead-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--legal-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.lead-copy h1,
.privacy-request-shell h1,
.legal-header h1,
.lead-thanks h1,
.legal-unavailable h1 {
    max-width: 800px;
    margin: 0;
    font-size: clamp(2.35rem, 5.5vw, 5rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.lead-copy > p,
.privacy-request-shell > div:first-child > p,
.legal-header > p,
.lead-thanks > p,
.legal-unavailable > p {
    max-width: 720px;
    margin: 24px 0;
    color: var(--legal-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.lead-route-card {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 34px 0;
    padding: 22px;
    border: 1px solid var(--legal-line);
    background: #fff;
    box-shadow: 8px 8px 0 var(--legal-ink);
}

.lead-route-card > span {
    display: grid;
    width: 54px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--legal-lime);
    font-size: 1.55rem;
    font-weight: 900;
}

.lead-route-card small,
.lead-route-card strong {
    display: block;
}

.lead-route-card small {
    margin-bottom: 5px;
    color: var(--legal-muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.lead-facts {
    display: grid;
    gap: 13px;
    padding: 0;
    list-style: none;
}

.lead-facts li {
    position: relative;
    padding-left: 26px;
    line-height: 1.55;
}

.lead-facts li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--legal-green);
    font-weight: 900;
}

.lead-form-card {
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid var(--legal-ink);
    background: #fff;
    box-shadow: 12px 12px 0 var(--legal-lime);
}

.lead-form-step {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    background: var(--legal-ink);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lead-form-card h2 {
    margin: 0 0 25px;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -.035em;
}

.lead-form-card form > label:not(.lead-consent),
.privacy-field label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 800;
}

.lead-form-card input[type="email"],
.lead-form-card select,
.lead-form-card textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #9aa69f;
    border-radius: 2px;
    background: #fff;
    color: var(--legal-ink);
    font: inherit;
}

.lead-form-card input:focus,
.lead-form-card select:focus,
.lead-form-card textarea:focus {
    outline: 3px solid rgba(223, 241, 106, .8);
    outline-offset: 2px;
    border-color: var(--legal-ink);
}

.lead-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    margin: 22px 0;
    align-items: start;
    color: #35423c;
    font-size: .91rem;
    line-height: 1.5;
}

.lead-consent input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
}

.lead-consent small {
    display: block;
    margin-top: 4px;
    color: var(--legal-muted);
}

.lead-submit,
a.lead-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 20px;
    border: 1px solid var(--legal-ink);
    border-radius: 2px;
    background: var(--legal-green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.lead-form-card .lead-submit {
    width: 100%;
}

.lead-submit:hover {
    background: var(--legal-ink);
}

.lead-errors {
    margin: 8px 0;
    color: #a12e20;
    font-size: .9rem;
    font-weight: 700;
}

.lead-errors p { margin: 4px 0; }

.lead-next-step {
    display: grid;
    gap: 5px;
    max-width: 720px;
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid var(--legal-green);
    border-left: 6px solid var(--legal-green);
    background: #fff;
}

.lead-next-step strong { font-size: 1.05rem; }
.lead-next-step span { color: var(--legal-muted); line-height: 1.5; }

.lead-privacy-note {
    margin: 18px 0 0;
    color: var(--legal-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.lead-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.lead-thanks,
.legal-unavailable {
    width: min(820px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(70px, 12vw, 150px) 0;
    text-align: center;
}

.lead-thanks-mark,
.legal-unavailable > span:first-child {
    display: grid;
    width: 70px;
    margin: 0 auto 25px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: var(--legal-lime);
    font-size: 2rem;
    font-weight: 900;
}

.lead-thanks > p,
.legal-unavailable > p { margin-inline: auto; }
.lead-thanks-help { font-size: .94rem !important; }

.legal-header {
    padding-bottom: 38px;
    border-bottom: 1px solid var(--legal-line);
}

.legal-header dl {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    margin: 28px 0 0;
}

.legal-header dl div { display: flex; gap: 8px; }
.legal-header dt { color: var(--legal-muted); }
.legal-header dd { margin: 0; font-weight: 800; }

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: clamp(35px, 7vw, 90px);
    padding-top: 42px;
}

.legal-side {
    position: sticky;
    top: 100px;
    display: grid;
    align-self: start;
    border-top: 1px solid var(--legal-line);
}

.legal-side a {
    padding: 11px 3px;
    border-bottom: 1px solid var(--legal-line);
    color: var(--legal-muted);
    text-decoration: none;
}

.legal-side a[aria-current="page"] {
    color: var(--legal-ink);
    font-weight: 850;
}

.legal-sections section {
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--legal-line);
}

.legal-sections h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    letter-spacing: -.03em;
}

.legal-sections p,
.legal-sections li {
    color: #3f4c46;
    line-height: 1.7;
}

.legal-sections li + li { margin-top: 8px; }
.legal-action { font-weight: 850; }

.legal-sections { min-width: 0; overflow-wrap: anywhere; }
.legal-sections section[id] { scroll-margin-top: 110px; }
.legal-sections h3 { margin-top: 24px; font-size: 1.15rem; }
.legal-sections blockquote { margin: 20px 0; padding: 8px 22px; border-left: 4px solid var(--legal-green); background: #fff; }
.legal-table-wrap { max-width: 100%; margin: 22px 0; overflow-x: auto; }
.legal-table-wrap:focus-visible { outline: 2px solid var(--legal-green); outline-offset: 4px; }
.legal-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: .92rem; line-height: 1.6; }
.legal-table th, .legal-table td { padding: 14px; border: 1px solid var(--legal-line); text-align: left; vertical-align: top; }
.legal-table thead { background: var(--legal-ink); color: #fff; }
.legal-table tbody th { width: 26%; background: #fff; }
.legal-table code { font-size: .85em; overflow-wrap: anywhere; }

@media print {
    .legal-side, .legal-page nav, .legal-page footer,
    .legal-page button, .legal-page .privacy-banner { display: none !important; }
    .legal-document { width: 100%; padding: 0; }
    .legal-layout { display: block; padding-top: 20px; }
    .legal-header h1 { font-size: 28pt; }
    .legal-table-wrap { overflow: visible; }
    .legal-table { min-width: 0; font-size: 9pt; }
    .legal-sections h2, .legal-sections h3 { break-after: avoid; }
    .legal-sections tr { break-inside: avoid; }
}

.legal-contact-list { margin: 0; }
.legal-contact-list div { display: grid; grid-template-columns: 140px 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--legal-line); }
.legal-contact-list dt { color: var(--legal-muted); }
.legal-contact-list dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.privacy-field { margin-bottom: 17px; }
.privacy-field small { color: var(--legal-muted); }

@media (max-width: 800px) {
    .lead-grid,
    .privacy-request-shell,
    .legal-layout { grid-template-columns: 1fr; }
    .lead-grid {
        grid-template-areas:
            "intro"
            "form"
            "details";
        gap: 30px;
    }
    .lead-details { margin-top: 0; }
    .legal-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-form-card { box-shadow: 7px 7px 0 var(--legal-lime); }
}

@media (max-width: 480px) {
    .lead-legal-shell { padding-top: 34px; }
    .lead-back { margin-bottom: 28px; }
    .lead-copy h1 { font-size: clamp(2.2rem, 11.5vw, 3.25rem); }
    .lead-copy > p { margin-block: 18px 0; font-size: 1rem; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-submit { transition: none; }
}
