:root {
  --amigoe-espresso: #23130f;
  --amigoe-brown: #71341f;
  --amigoe-gold: #d5ad69;
  --amigoe-ivory: #fbf7ef;
  --amigoe-rule: rgba(213, 173, 105, .28);
}

.amigoe-legal-ai-lock { overflow: hidden; }
.amigoe-legal-ai { position: fixed; z-index: 2147483000; right: 24px; bottom: 24px; font-family: "Plus Jakarta Sans", "DM Sans", Arial, sans-serif; color: var(--amigoe-ivory); }
.amigoe-legal-ai--left { right: auto; left: 24px; }
.amigoe-legal-ai__launcher { display: inline-flex; align-items: center; gap: 11px; min-height: 64px; max-width: 310px; padding: 8px 14px 8px 9px; color: var(--amigoe-ivory); background: linear-gradient(135deg, #321a13, var(--amigoe-espresso)); border: 1px solid var(--amigoe-rule); border-radius: 13px; box-shadow: 0 14px 34px rgba(31, 14, 9, .28); cursor: pointer; text-align: left; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.amigoe-legal-ai__launcher:hover, .amigoe-legal-ai__launcher:focus-visible { transform: translateY(-2px); border-color: rgba(213, 173, 105, .72); box-shadow: 0 18px 42px rgba(31, 14, 9, .34); }
.amigoe-legal-ai__launcher-mark, .amigoe-legal-ai__header-mark { display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(213, 173, 105, .58); border-radius: 50%; background: #0f192b; overflow: hidden; }
.amigoe-legal-ai__launcher-mark { width: 45px; height: 45px; }
.amigoe-legal-ai__launcher-mark img, .amigoe-legal-ai__header-mark img { width: 100%; height: 100%; object-fit: cover; }
.amigoe-legal-ai__launcher-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.amigoe-legal-ai__launcher-copy strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.amigoe-legal-ai__launcher-copy small { color: #e5d6bf; font-size: 10px; line-height: 1.35; }
.amigoe-legal-ai__backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(20, 12, 9, .42); backdrop-filter: blur(3px); }
.amigoe-legal-ai__panel { position: fixed; right: 24px; bottom: 100px; display: flex; flex-direction: column; width: min(480px, calc(100vw - 32px)); height: min(760px, calc(100vh - 124px)); min-height: 500px; padding: 0; border: 1px solid rgba(213, 173, 105, .4); border-radius: 18px; background: var(--amigoe-ivory); color: #2d1b14; box-shadow: 0 26px 70px rgba(25, 11, 7, .32); overflow: hidden; animation: amigoe-legal-ai-in .2s ease-out; }
.amigoe-legal-ai--left .amigoe-legal-ai__panel { right: auto; left: 24px; }
.amigoe-legal-ai__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--amigoe-ivory); background: linear-gradient(135deg, #2c1812, #1e100d); border-bottom: 1px solid var(--amigoe-rule); }
.amigoe-legal-ai__identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.amigoe-legal-ai__identity > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.amigoe-legal-ai__identity small { color: var(--amigoe-gold); font-size: 8px; letter-spacing: .16em; }
.amigoe-legal-ai__identity strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.amigoe-legal-ai__header-mark { width: 42px; height: 42px; }
.amigoe-legal-ai__close { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(251, 247, 239, .25); border-radius: 50%; background: transparent; color: var(--amigoe-ivory); font-size: 24px; line-height: 1; cursor: pointer; }
.amigoe-legal-ai__close:hover, .amigoe-legal-ai__close:focus-visible { border-color: var(--amigoe-gold); color: var(--amigoe-gold); }
.amigoe-legal-ai__notice { padding: 10px 16px; color: #6f523c; background: #f4eadb; border-bottom: 1px solid #e7d7bf; font-size: 10px; line-height: 1.5; }
.amigoe-legal-ai__frame { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--amigoe-ivory); }
.amigoe-legal-ai__footer { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid #eadfce; color: #91745c; background: #fffaf4; font-size: 9px; letter-spacing: .04em; }
.amigoe-legal-ai__footer a { color: var(--amigoe-brown); font-weight: 700; text-decoration: none; }
.amigoe-legal-ai__footer a:hover { text-decoration: underline; }
.amigoe-legal-ai__launcher:focus-visible, .amigoe-legal-ai__close:focus-visible, .amigoe-legal-ai__footer a:focus-visible { outline: 3px solid #e9bd73; outline-offset: 3px; }
@keyframes amigoe-legal-ai-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 640px) {
  .amigoe-legal-ai, .amigoe-legal-ai--left { right: 12px; left: 12px; bottom: 12px; }
  .amigoe-legal-ai__launcher { width: 100%; max-width: none; justify-content: flex-start; }
  .amigoe-legal-ai__panel, .amigoe-legal-ai--left .amigoe-legal-ai__panel { inset: auto 0 0; width: 100%; height: min(92vh, 760px); min-height: 0; border-radius: 18px 18px 0 0; }
  .amigoe-legal-ai__footer { padding-bottom: max(9px, env(safe-area-inset-bottom)); }
}
