:root {
    --as-ink: #151515;
    --as-paper: #ffffff;
    --as-muted: #5e5e5e;
    --as-line: #d5d5d2;
    --as-accent: #8b2f22;
    --as-focus: #1769aa;
}

html.as-privacy-open {
    overflow: hidden;
}

body.page .entry-title {
    display: none;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 3px solid var(--as-focus) !important;
    outline-offset: 3px !important;
}

.as-legal-page *,
.as-contact-form *,
.as-external-embed *,
.as-cookie-banner *,
.as-privacy-modal *,
.as-cookie-settings {
    letter-spacing: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.as-legal-page {
    color: var(--as-ink);
    background: var(--as-paper);
    padding: 150px 24px 110px;
}

.as-legal-inner {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.as-legal-hero {
    max-width: 850px;
    margin-bottom: 72px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--as-line);
}

.as-legal-eyebrow,
.as-external-embed__label {
    margin: 0 0 12px;
    color: var(--as-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.as-legal-hero h1 {
    margin: 0 0 24px;
    font-size: 72px;
    line-height: 1.04;
    letter-spacing: 0;
}

.as-legal-lead {
    max-width: 760px;
    margin: 0 0 18px;
    color: #333;
    font-size: 21px;
    line-height: 1.6;
}

.as-legal-updated {
    margin: 0;
    color: var(--as-muted);
    font-size: 14px;
}

.as-legal-page section {
    max-width: 850px;
    margin: 0 0 52px;
}

.as-legal-page h2 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 0;
}

.as-legal-page p,
.as-legal-page li,
.as-legal-details dd,
.as-legal-details dt {
    font-size: 17px;
    line-height: 1.75;
}

.as-legal-page a {
    color: #0d4f82;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.as-legal-details {
    margin: 24px 0 30px;
    border-top: 1px solid var(--as-line);
}

.as-legal-details div {
    display: grid;
    grid-template-columns: minmax(170px, 0.35fr) 1fr;
    gap: 24px;
    padding: 13px 0;
    border-bottom: 1px solid var(--as-line);
}

.as-legal-details dt {
    font-weight: 700;
}

.as-legal-details dd {
    margin: 0;
}

.as-legal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--as-line);
}

.as-legal-page table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.as-legal-page th,
.as-legal-page td {
    padding: 15px;
    border-bottom: 1px solid var(--as-line);
    text-align: left;
    vertical-align: top;
}

.as-legal-page th {
    background: #f2f2ef;
}

.as-contact-form-wrap {
    margin-top: 35px;
}

.as-contact-form {
    color: var(--as-ink);
}

.as-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.as-field--wide {
    grid-column: 1 / -1;
}

.as-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.as-optional {
    color: var(--as-muted);
    font-size: 12px;
    font-weight: 400;
}

.as-field input,
.as-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--as-ink);
    background: var(--as-paper);
    border: 1px solid #777;
    border-radius: 0;
}

.as-field textarea {
    min-height: 160px;
    resize: vertical;
}

.as-consent-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 24px 0 10px;
    line-height: 1.55;
}

.as-consent-check input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.as-consent-check a,
.as-form-note a {
    color: #0d4f82;
    text-decoration: underline;
}

.as-form-note {
    color: var(--as-muted);
    font-size: 13px;
}

.as-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.as-form-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-left: 4px solid;
}

.as-form-notice--success {
    color: #174f2c;
    background: #edf7f0;
    border-color: #267a44;
}

.as-form-notice--error {
    color: #7b1b15;
    background: #fff0ee;
    border-color: #a22d22;
}

.as-primary-button,
.as-button-primary,
.as-button-secondary,
.as-text-button {
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid var(--as-ink);
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.as-primary-button,
.as-button-primary {
    color: #fff;
    background: var(--as-ink);
}

.as-button-secondary,
.as-text-button {
    color: var(--as-ink);
    background: #fff;
}

.as-text-button {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.as-external-embed {
    display: grid;
    min-height: 520px;
    place-items: center;
    padding: 28px;
    color: var(--as-ink);
    background: #efefec;
    border: 1px solid var(--as-line);
}

.as-external-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
}

.as-external-embed__inner {
    max-width: 560px;
    text-align: center;
}

.as-external-embed__inner h2 {
    margin: 0 0 14px;
    font-size: 32px;
}

.as-external-embed__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
}

.as-external-embed__actions a {
    color: var(--as-ink);
    font-weight: 700;
    text-decoration: underline;
}

.as-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 100001;
    display: flex;
    max-width: 1080px;
    margin: 0 auto;
    padding: 11px 12px 11px 15px;
    color: #fff;
    background: #171717;
    border: 1px solid #555;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}

.as-cookie-banner[hidden],
.as-privacy-modal[hidden] {
    display: none !important;
}

.as-cookie-banner__copy {
    display: flex;
    max-width: 720px;
    gap: 10px;
    align-items: baseline;
}

.as-cookie-banner__copy strong {
    display: inline;
    flex: 0 0 auto;
    margin: 0;
    font-size: 14px;
}

.as-cookie-banner__copy p {
    margin: 0;
    color: #f2f2f2;
    font-size: 13px;
    line-height: 1.35;
}

.as-cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.as-cookie-banner__actions,
.as-privacy-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.as-cookie-banner__actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
}

.as-cookie-banner__actions button {
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-transform: none !important;
    white-space: nowrap;
}

.as-cookie-banner .as-button-secondary {
    color: #fff;
    background: #171717;
    border-color: #fff;
}

.as-cookie-banner .as-button-primary {
    color: #111;
    background: #fff;
    border-color: #fff;
}

.as-privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: grid;
    place-items: center;
    padding: 18px;
}

.as-privacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}

.as-privacy-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 32px;
    color: var(--as-ink);
    background: #fff;
    border: 1px solid #777;
}

.as-privacy-modal__dialog h2 {
    margin: 0 40px 12px 0;
    font-size: 34px;
}

.as-icon-button {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    box-sizing: border-box;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px;
    padding: 0 !important;
    place-items: center;
    color: var(--as-ink);
    background: #fff;
    border: 1px solid #777;
    border-radius: 0;
    font-size: 28px;
    cursor: pointer;
}

.as-privacy-option {
    display: flex;
    min-height: 78px;
    padding: 16px 0;
    border-top: 1px solid var(--as-line);
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.as-privacy-option p,
.as-privacy-option small {
    display: block;
    margin: 4px 0 0;
    color: var(--as-muted);
    line-height: 1.45;
}

.as-privacy-option input {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.as-privacy-option.is-disabled {
    opacity: .7;
}

.as-required-badge {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #174f2c;
    background: #edf7f0;
    font-size: 12px;
    font-weight: 700;
}

.as-privacy-modal__actions {
    margin-top: 24px;
    justify-content: flex-end;
}

.as-cookie-settings {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 99990;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 7px 11px !important;
    color: #fff !important;
    background: #171717 !important;
    border: 1px solid #fff !important;
    border-radius: 0;
    font-size: 12px !important;
    line-height: 1 !important;
    text-transform: none !important;
    cursor: pointer;
}

@media (max-width: 767px) {
    footer .elementor-icon-list-items.elementor-inline-items {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .as-legal-page {
        padding: 110px 18px 70px;
    }

    .as-legal-hero {
        margin-bottom: 48px;
        padding-bottom: 36px;
    }

    .as-legal-lead {
        font-size: 18px;
    }

    .as-legal-hero h1 {
        font-size: 40px;
    }

    .as-legal-page h2 {
        font-size: 25px;
    }

    .as-legal-details div,
    .as-form-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .as-field--wide {
        grid-column: auto;
    }

    .as-cookie-banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
        display: block;
        padding: 12px;
    }

    .as-cookie-banner__copy {
        display: block;
    }

    .as-cookie-banner__copy strong {
        display: block;
        margin-bottom: 3px;
    }

    .as-cookie-banner__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 10px;
    }

    .as-privacy-modal__actions button {
        width: 100%;
    }

    .as-cookie-banner__actions button {
        width: 100% !important;
        padding-right: 6px !important;
        padding-left: 6px !important;
    }

    .as-privacy-modal__dialog {
        padding: 26px 20px;
    }

    .as-privacy-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .as-external-embed,
    .as-external-embed iframe {
        min-height: 420px;
    }

    .as-cookie-settings {
        right: 8px;
        bottom: 8px;
    }
}
