/* ===== TERMS ACCEPTANCE STEP: BEGIN (js/logic/terms.js, the <dialog id="qwf-terms-dialog">) =====
   Loaded by index.html and async.html. Every rule is under .qwf-terms, so nothing else is styled. */
.qwf-terms {
    box-sizing: border-box;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow: auto;
    border: 1px solid #4a3470;
    border-radius: 20px;
    background: #1a0f2e;
    color: #f6f0fc;
    font: 16px/1.45 Figtree, Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
    text-align: left;
    box-shadow: 0 24px 80px #000a;
}
.qwf-terms::backdrop { background: #0b0616cc; }
.qwf-terms * { box-sizing: border-box; }
.qwf-terms h2 {
    margin: 0 0 10px;
    color: #fff;
    font: 800 24px/1.15 "Bricolage Grotesque", Figtree, Outfit, system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
.qwf-terms p { margin: 0 0 12px; color: #f6f0fc; font-size: 16px; }
.qwf-terms .qwf-terms-detail { color: #d6c8e6; font-size: 14px; }
.qwf-terms .qwf-terms-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 16px; }
.qwf-terms a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #d8ff36;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.qwf-terms .qwf-terms-error { min-height: 0; margin: 0; color: #ffb4a8; font-size: 14px; font-weight: 700; }
.qwf-terms .qwf-terms-error:not(:empty) { margin-bottom: 12px; }
.qwf-terms .qwf-terms-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.qwf-terms button {
    flex: 1 1 160px;
    min-height: 48px;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: 14px;
    font: 800 16px/1.2 Figtree, Outfit, system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.qwf-terms .qwf-terms-accept { background: #d8ff36; color: #1a0f2e; }
.qwf-terms .qwf-terms-later { background: transparent; border-color: #8d79ad; color: #f6f0fc; }
.qwf-terms button:disabled { opacity: .6; cursor: default; }
.qwf-terms a:focus-visible,
.qwf-terms button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 14px; }
.qwf-terms .qwf-terms-note { margin: 0; color: #d6c8e6; font-size: 13px; }
@media (max-width: 480px) {
    .qwf-terms { padding: 20px 18px; }
    .qwf-terms h2 { font-size: 22px; }
    .qwf-terms .qwf-terms-actions { flex-direction: column; }
    .qwf-terms button { flex: 0 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
    .qwf-terms[open] { animation: qwf-terms-in .16s ease-out; }
    @keyframes qwf-terms-in { from { opacity: 0; transform: translateY(8px); } }
}
/* ===== TERMS ACCEPTANCE STEP: END ===== */
