.wt-legal-entry { display: inline-block; margin-inline-start: .8rem; border: 0; border-bottom: 1px solid rgba(213,190,142,.65); background: none; color: #d5be8e; font: inherit; cursor: pointer; }
.wt-legal-overlay[hidden], .wt-legal-reader[hidden] { display: none !important; }
.wt-legal-overlay [hidden] { display: none !important; }
.wt-legal-overlay { position: fixed; inset: 0; z-index: 100040; display: grid; place-items: center; padding: 12px; background: rgba(2,10,14,.84); }
.wt-legal-card { box-sizing: border-box; width: min(720px,100%); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden; padding: clamp(16px,3vw,30px); border: 1px solid rgba(217,190,136,.44); border-radius: 18px; background: #0b1a20; color: #eee8d9; box-shadow: 0 18px 60px rgba(0,0,0,.38); font-size: .95rem; line-height: 1.65; }
.wt-legal-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; padding: .5rem .25rem; }
.wt-legal-head,.wt-legal-actions { flex-shrink: 0; }
#wtLegalChanges p { white-space: pre-wrap; }
#wtLegalIdentity { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: 1rem; }
#wtLegalIdentity input { min-width: 0; max-width: 100%; min-height: 44px; font: inherit; background: #10282a; color: #eee8d9; border: 1px solid #bca675; border-radius: 8px; }
html.wt-legal-pending body > :not(#wtLegalOverlay):not(script):not(style):not(link) { pointer-events: none; user-select: none; }
.wt-legal-read-links a { color: #e9d4a9; text-decoration: underline; text-underline-offset: .22em; padding-block: .6rem; min-height: 44px; }
.wt-legal-read-links a{display:inline-flex;align-items:center;white-space:nowrap;min-width:0;background:none;border:0;border-radius:0;letter-spacing:0}
.wt-legal-read-links a + a::before { content: '｜'; color: #8f9c92; margin-inline: .35rem; }
.wt-legal-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: baseline; }
.wt-legal-head h2 { margin: 0; color: #ead6aa; font-size: 1.4rem; line-height: 1.35; }
.wt-legal-head span { color: #b9ad96; font-size: .75rem; }
.wt-legal-card p { margin: .7rem 0; }
.wt-legal-card ul { margin: .5rem 0 1rem; padding-left: 1.4em; }
#wtLegalDraft { padding: .7rem; border: 1px solid rgba(217,190,136,.32); border-radius: 9px; color: #e4c791; }
.wt-legal-read-links, .wt-legal-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.wt-legal-read-links { align-items: center; gap: .35rem; flex-wrap: nowrap; }
.wt-legal-card .wt-legal-read-links button { flex: 0 1 auto; min-width: 0; padding-inline: .1rem; border: 0; border-radius: 0; background: none; color: #e9d4a9; text-decoration: underline; text-underline-offset: .22em; white-space: nowrap; }
.wt-legal-card .wt-legal-read-links button:hover, .wt-legal-card .wt-legal-read-links button:focus-visible { border: 0; color: #f6e4bd; }
.wt-legal-read-links button + button::before { content: '｜'; display: inline-block; margin-inline-end: .35rem; color: #8f9c92; text-decoration: none; }
.wt-legal-card button { min-height: max(44px,2.35rem); max-width: 100%; padding: .45rem .85rem; border: 1px solid rgba(217,190,136,.45); border-radius: 999px; background: rgba(20,38,39,.9); color: #eee8d9; font: inherit; cursor: pointer; white-space: normal; }
.wt-legal-card button:hover, .wt-legal-card button:focus-visible { border-color: #e8d09b; }
.wt-legal-card button:disabled { opacity: .48; cursor: not-allowed; }
.wt-legal-reader { margin-block: 1rem; padding: .75rem; border: 1px solid rgba(217,190,136,.3); border-radius: 12px; background: rgba(0,0,0,.22); }
.wt-legal-reader > div:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.wt-legal-reader article { box-sizing: border-box; max-height: min(40dvh,400px); overflow-y: auto; padding: .8rem; overflow-wrap: anywhere; border-radius: 8px; background: rgba(0,0,0,.25); line-height: 1.8; }
.wt-legal-reader article h2 { margin: 1.1rem 0 .4rem; color: #edd4a3; font-size: 1.16em; line-height: 1.55; }
.wt-legal-reader article h3 { margin: 1rem 0 .35rem; color: #e6d7b8; font-size: 1.07em; line-height: 1.55; }
.wt-legal-reader article :is(.wt-legal-bullet,.wt-legal-numbered) { padding-inline-start: 1.2em; text-indent: -1.2em; }
.wt-legal-checks { display: grid; gap: .5rem; margin-block: 1rem; }
.wt-legal-checks label { display: flex; align-items: flex-start; gap: .6rem; overflow-wrap: anywhere; }
.wt-legal-checks input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .3em; accent-color: #a9bd88; }
#wtLegalOptional { display: grid; gap: .5rem; }
#wtLegalStatus { flex-shrink:0;line-height:1.5;color:#e9cc91 }#wtLegalStatus:empty{display:none}
.wt-legal-actions { position: static; margin-top: .5rem; padding-block: .5rem; background: #0b1a20; border-top: 1px solid #c3ad7744; }
.wt-legal-actions button:last-child { background: linear-gradient(135deg,#25443b,#4c5540); border-color: #d5be8e; }
.wt-legal-support { color: #b9b2a3; font-size: .76rem; }
.wt-legal-card :is(button,input,article):focus-visible, .wt-legal-entry:focus-visible { outline: 2px solid #e9d099; outline-offset: 2px; }
@media(max-width:430px) { .wt-legal-overlay { padding: 6px; } .wt-legal-card { max-height: calc(100dvh - 12px); padding: 14px; } .wt-legal-read-links { gap: .1rem; font-size: .78rem; } .wt-legal-read-links a + a::before{margin-inline:.1rem} .wt-legal-actions button { flex: 1 1 45%;min-width:0;padding-inline:.5rem } }
