/* =========================================================
   RILITY — SHARED SITE FOOTER
========================================================= */

.site-footer {
    width: 100%;
    margin: 0;
    padding: 82px 50px 28px;
    background: #f5f5f3;
    color: #151515;
    box-sizing: border-box;
}

.site-footer * {
    box-sizing: border-box;
}

.site-footer-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-footer-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 44px;
    padding-bottom: 70px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-logo {
    display: block;
}

.site-footer-logo img {
    display: block;
    width: 46px;
    height: 46px;
}

.site-footer-brand p {
    margin: 18px 0 28px;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.site-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #151515;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-cta:hover {
    opacity: .85;
}

.site-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer-column h3 {
    margin: 2px 0 19px;
    color: #151515;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.site-footer-column a {
    display: block;
    margin: 0 0 11px;
    color: #666;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer-column a:hover {
    color: #34353a;
}

.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(21,21,21,.10);
    color: #666;
    font-size: 13px;
}

.site-footer-legal {
    display: flex;
    gap: 20px;
}

.site-footer-legal a {
    color: #666;
    text-decoration: none;
}

.site-footer-legal a:hover {
    color: #34353a;
}

@media (max-width: 900px) {
    .site-footer {
        padding: 60px 25px 24px;
    }

    .site-footer-inner {
        width: 100%;
        padding: 0;
    }

    .site-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 28px;
        padding-bottom: 48px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .site-footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* =========================================================
   FOOTER DISCLAIMER
========================================================= */

.site-footer-disclaimer {
    width: 100%;
    padding: 0 0 38px;
    margin: 0 0 52px;
    border-bottom: 1px solid rgba(21,21,21,.10);
}

.site-footer-disclaimer p {
    margin: 0 0 15px;
    color: #707178;
    font-size: 12px;
    line-height: 1.75;
}

.site-footer-disclaimer p:last-of-type {
    margin-bottom: 0;
}

.site-footer-disclaimer strong {
    color: #55565c;
    font-weight: 500;
}


/* =========================================================
   MOBILE: MATCH SHARED HEADER WIDTH
   Header uses 32px horizontal inset.
   Footer uses the same inset.
   ========================================================= */

@media (max-width: 900px) {
    .site-footer {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 32px;
        padding-right: 32px;
        box-sizing: border-box;
    }

    .site-footer-inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* =========================================================
   MOBILE FOOTER — MATCH HEADER
   Header mobile horizontal spacing: 20px
   ========================================================= */

@media (max-width: 900px) {
    .site-footer {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-footer-inner {
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* =========================================================
   FOOTER BOTTOM — PRIVACY + LOCALE
========================================================= */

.site-footer-bottom {
    gap: 30px;
}

.site-footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.site-footer-legal {
    align-items: center;
}

.site-footer-privacy-choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.site-footer-privacy-choice:hover {
    color: #34353a;
}

.privacy-choice-icon {
    display: inline-flex;
    align-items: stretch;
    width: 28px;
    height: 16px;
    flex: 0 0 28px;
    overflow: hidden;
    border: 1px solid #2563eb;
    border-radius: 3px;
    background: #2563eb;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.privacy-check,
.privacy-x {
    display: flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
}

.privacy-check {
    background: #fff;
    color: #2563eb;
}

.privacy-x {
    background: #2563eb;
    color: #fff;
}

.site-footer-locale {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.site-footer-locale:hover {
    color: #34353a;
}

.site-footer-globe {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .site-footer-bottom {
        align-items: flex-start;
    }

    .site-footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .site-footer-bottom {
        gap: 20px;
    }

    .site-footer-bottom-left {
        width: 100%;
    }

    .site-footer-legal {
        flex-wrap: wrap;
    }
}

/* =========================================================
   FOOTER MODALS
========================================================= */

.footer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.footer-modal.is-open {
    display: flex;
}

.footer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(3px);
}

.footer-modal-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border: 1px solid rgba(21,21,21,.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
}

.footer-modal-panel h2 {
    margin: 0 42px 10px 0;
    color: #151515;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -.4px;
}

.footer-modal-intro {
    margin: 0 0 26px;
    color: #707178;
    font-size: 14px;
    line-height: 1.6;
}

.footer-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f3f1;
    color: #555;
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
}

.footer-modal-close:hover {
    background: #e9e9e6;
}

.privacy-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(21,21,21,.09);
}

.privacy-setting > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.privacy-setting strong {
    color: #202020;
    font-size: 14px;
}

.privacy-setting span {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.privacy-status {
    flex-shrink: 0;
    color: #777;
    font-size: 12px;
}

.privacy-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 42px;
    padding: 2px;
    border: 0;
    border-radius: 999px;
    background: #d5d5d2;
    cursor: pointer;
    transition: background .15s ease;
}

.privacy-toggle span {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.18);
    transition: transform .15s ease;
}

.privacy-toggle[aria-pressed="true"] {
    background: #2563eb;
}

.privacy-toggle[aria-pressed="true"] span {
    transform: translateX(18px);
}

.footer-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.footer-modal-primary,
.footer-modal-secondary {
    min-height: 40px;
    padding: 0 17px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.footer-modal-primary {
    border: 0;
    background: #151515;
    color: #fff;
}

.footer-modal-primary:hover {
    opacity: .86;
}

.footer-modal-secondary {
    border: 1px solid rgba(21,21,21,.14);
    background: #fff;
    color: #444;
}

.footer-modal-secondary:hover {
    background: #f5f5f3;
}

.footer-language-panel {
    width: min(440px, 100%);
}

.language-option {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 13px;
    padding: 15px;
    border: 1px solid #2563eb;
    border-radius: 12px;
    background: #f8faff;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.language-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 18px;
}

.language-option span:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.language-option small {
    color: #777;
    font-size: 12px;
}

.language-check {
    color: #2563eb;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .footer-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .footer-modal-panel {
        max-height: calc(100vh - 28px);
        padding: 28px 22px;
        border-radius: 18px 18px 14px 14px;
    }

    .footer-modal-actions {
        flex-direction: column-reverse;
    }

    .footer-modal-primary,
    .footer-modal-secondary {
        width: 100%;
    }
}


/* =========================================================
   LEGAL PAGES
========================================================= */

.legal-page {
    width: 100%;
    padding: 90px 50px 110px;
    background: #fff;
    color: #151515;
}

.legal-page-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.legal-page h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.legal-updated {
    margin: 0 0 58px;
    color: #777;
    font-size: 14px;
}

.legal-page h2 {
    margin: 42px 0 13px;
    font-size: 21px;
    line-height: 1.3;
}

.legal-page p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 900px) {
    .legal-page {
        padding: 60px 20px 80px;
    }

    .legal-page h1 {
        font-size: 34px;
    }
}

/* =========================================================
   FOOTER LEGAL ACTIONS
========================================================= */

.site-footer-legal {
    align-items: center;
    flex-wrap: wrap;
}

.footer-choice-button,
.footer-language-button {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #666;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-choice-button:hover,
.footer-language-button:hover {
    color: #151515;
}

.privacy-choice-icon {
    display: inline-flex;
    align-items: center;
    height: 18px;
    border: 1px solid #d7d7d5;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.privacy-choice-check,
.privacy-choice-x {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
}

.privacy-choice-check {
    color: #2563eb;
    background: #fff;
}

.privacy-choice-x {
    color: #fff;
    background: #2563eb;
}

.footer-globe {
    font-size: 17px;
}

/* =========================================================
   FOOTER MODALS
========================================================= */

.footer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.footer-modal.is-open {
    display: flex;
}

.footer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    backdrop-filter: blur(3px);
}

.footer-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    color: #151515;
    box-shadow: 0 24px 80px rgba(0,0,0,.20);
}

.footer-modal-card h2 {
    margin: 0 40px 10px 0;
    font-size: 25px;
    letter-spacing: -.02em;
}

.footer-modal-card > p {
    margin: 0 0 25px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer-modal-close {
    position: absolute;
    top: 17px;
    right: 19px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f0;
    color: #444;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.footer-modal-close:hover {
    background: #e8e8e6;
}

.privacy-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #ececea;
}

.privacy-setting strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.privacy-setting span {
    color: #777;
    font-size: 12px;
    line-height: 1.4;
}

.privacy-status {
    white-space: nowrap;
    color: #777;
}

.privacy-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex: 0 0 auto;
}

.privacy-toggle input {
    position: absolute;
    opacity: 0;
}

.privacy-toggle span {
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #d6d6d4;
    cursor: pointer;
}

.privacy-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.privacy-toggle input:checked + span {
    background: #2563eb;
}

.privacy-toggle input:checked + span::after {
    transform: translateX(18px);
}

.footer-modal-primary {
    width: 100%;
    min-height: 44px;
    margin-top: 22px;
    border: 0;
    border-radius: 9px;
    background: #151515;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.footer-modal-primary:hover {
    opacity: .86;
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid #151515;
    border-radius: 10px;
    background: #fff;
    color: #151515;
    text-align: left;
    cursor: pointer;
}

.language-option .material-symbols-outlined {
    color: #555;
}

.language-option small {
    display: block;
    margin-top: 3px;
    color: #777;
}

.language-check {
    margin-left: auto;
    color: #2563eb;
    font-weight: 700;
}

@media (max-width: 700px) {
    .site-footer-bottom {
        align-items: flex-start;
    }

    .site-footer-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-modal-card {
        padding: 26px 22px;
    }
}

