/* Terms + Privacy consent — loaded by Aphasia_Legal_Compliance wherever a
   guest signup form or the social-login buttons render, including pages
   (e.g. /upgrade-checkout/) that never load memberpress-custom.css. Values
   mirror the .as-tos-consent block there; fallbacks cover pages without the
   fleet tokens. The whole label is the tap target (≥44px). */

.as-tos-consent {
    margin: 6px 0 18px;
    font-size: var(--as-text-base, 1.05rem);
    line-height: var(--as-leading-relaxed, 1.6);
}

.as-tos-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-height: 44px;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--as-text, #1f2937);
}

.as-tos-consent input[type="checkbox"] {
    margin: 4px 0 0;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Checked = visibly checked (UX-STANDARDS 12.3). Scoped :has() on the label
   itself, never on a high-level ancestor (renderer-freeze gotcha). */
.as-tos-consent label:has(input:checked) {
    background: rgba(16, 185, 129, 0.12);
    border-radius: 8px;
}

.as-tos-consent a,
.as-social-consent a {
    color: var(--as-link, #0a6b73);
    text-decoration: underline;
}

/* Sign-in-wrap notice directly under the Google / Facebook buttons. */
.as-social-consent {
    margin: 8px auto 4px;
    max-width: 420px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--as-text-muted, #4b5563);
}

@media (max-width: 380px) {
    .as-social-consent {
        font-size: 0.9rem;
    }
}
