.policy-check {
    position: relative; display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; line-height: 1.45; cursor: pointer;
}
.policy-check input {
    position: absolute; width: 20px; height: 20px; margin: 0; opacity: 0;
    cursor: inherit; accent-color: #3b8bf5;
}
.policy-box {
    display: grid; flex: 0 0 20px; place-items: center; height: 20px;
    border: 1px solid #747f96; border-radius: 6px; background: #181c25;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.policy-box::after {
    content: ""; width: 5px; height: 9px; margin-top: -2px; opacity: 0;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.75);
    transition: opacity 140ms ease, transform 160ms ease;
}
.policy-check:hover .policy-box { border-color: #9cc4ff; }
.policy-check input:checked + .policy-box {
    border-color: #629cff; background: #326ddb; box-shadow: 0 0 0 3px #458aff24;
}
.policy-check input:checked + .policy-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.policy-check input:focus-visible + .policy-box { outline: 2px solid #9cc4ff; outline-offset: 3px; }
.policy-check a, .policy-prompt a { color: #9cc4ff; text-underline-offset: 2px; }
.policy-signup { margin: 12px 0; color: var(--text-2); }
.policy-prompt {
    width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto;
    padding: clamp(18px, 5vw, 26px); border: 1px solid var(--line-strong, #38383c);
    border-radius: 16px; background: var(--panel, #1c1c1f); color: var(--text, #eee);
    font: 15px/1.5 system-ui, sans-serif; box-shadow: 0 18px 60px #0008;
}
.policy-prompt[open] { animation: policy-enter 260ms cubic-bezier(.2,.75,.25,1) both; }
.policy-prompt::backdrop { background: #08080bb8; animation: policy-dim 220ms ease-out both; }
@keyframes policy-enter {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@keyframes policy-dim { from { opacity: 0; } to { opacity: 1; } }
.policy-prompt h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.policy-prompt p { margin: 10px 0 15px; color: var(--text-2, #c4c4cc); }
.policy-prompt .policy-check {
    padding: 12px; border: 1px solid var(--line-soft, #303034); border-radius: 9px;
    transition: background-color 160ms ease, border-color 160ms ease;
}
.policy-prompt .policy-check:has(input:checked) { background: #3b8bf512; border-color: #5184d68c; }
.policy-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.policy-actions button {
    min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong, #38383c); border-radius: 8px;
    color: var(--text, #eee); background: transparent; font: 600 14px system-ui, sans-serif;
}
.policy-actions button:enabled { cursor: pointer; }
.policy-actions button:focus-visible { outline: 2px solid #9cc4ff; outline-offset: 3px; }
.policy-actions button[type="submit"] {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(170deg, #3978db, #2859bd); border-color: #6097f1;
    transition: box-shadow 180ms ease, filter 180ms ease;
}
.policy-actions button:disabled { opacity: .55; }
@media (hover: hover) {
    .policy-actions button[type="submit"]:enabled:hover {
        filter: brightness(1.1); box-shadow: 0 3px 14px #3b8bf550;
    }
    .policy-actions button[type="submit"]:enabled:hover::after {
        content: ""; position: absolute; inset: 0 auto 0 -60%; width: 55%; pointer-events: none;
        background: linear-gradient(105deg, transparent, #fff6, transparent);
        animation: policy-shine 600ms ease-out both;
    }
}
@keyframes policy-shine { to { transform: translateX(320%); } }
.policy-prompt .policy-error { color: #ff9292; }
.policy-error:empty { display: none; }
.policy-signup[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .policy-prompt[open], .policy-prompt::backdrop { animation: none; }
    .policy-check, .policy-box, .policy-box::after, .policy-actions button[type="submit"] { transition: none; }
    .policy-actions button[type="submit"]:enabled:hover::after { content: none; }
}
@media (forced-colors: active) {
    .policy-check input { opacity: 1; }
    .policy-box { visibility: hidden; }
}
