/* Scoped extensions of existing TEHIX components. Existing account/auth styling is unchanged. */
.tehix-legal-checkout[hidden] {display:none!important}
.tehix-legal-checkout {margin:20px 24px; padding-block:16px; border-block:1px solid var(--tehix-ui-border,#38343f); color:var(--mda-text-primary,#f0edf5); font:inherit; font-size:14px; line-height:1.55; text-align:left; overflow-wrap:anywhere}
.tehix-legal-checkout p {margin:8px 0; color:var(--tehix-ui-muted,#b9b5c3); font:inherit}
.tehix-legal-links {display:flex; flex-wrap:wrap; gap:8px 16px; margin-block:12px 16px}
.tehix-legal-link {color:var(--tehix-ui-focus,#c5acee); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere}
.tehix-legal-link:hover {color:#d2bff3}
.tehix-legal-link:focus-visible {outline:2px solid #b49bdf; outline-offset:4px; border-radius:3px}
.tehix-legal-checkout .mda-checkbox {display:flex; align-items:flex-start; min-height:44px; margin-block:12px; gap:10px; white-space:normal; cursor:pointer}
.tehix-legal-checkout .mda-checkbox-custom {flex:0 0 20px; margin-top:2px}
.tehix-legal-checkout .mda-checkbox-label {font:inherit; min-width:0; line-height:1.5; white-space:normal}
.tehix-legal-checkout input:focus-visible + .mda-checkbox-custom {outline:2px solid #b49bdf; outline-offset:3px}
.mda-payment-container.tehix-legal-payment {max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain}
.tehix-legal-payment .mda-payment-actions .mda-core-btn {min-width:0; min-height:44px; white-space:normal; line-height:1.4}
.tehix-legal-document {display:flex; flex-direction:column; gap:8px; padding-block:16px; border-bottom:1px solid var(--tehix-ui-border,#38343f); overflow-wrap:anywhere}
.tehix-legal-document span {color:var(--tehix-ui-muted,#b9b5c3); font-size:.9em}
[data-legal-panel] .tehix-profile-layout {max-width:860px; width:100%; min-width:0}
@media(max-width:480px) {.tehix-legal-checkout {font-size:13px; margin-inline:18px}.tehix-legal-links {flex-direction:column}}
