/* Legal, contact and account deletion pages; layout comes from guides.css. */
.legal-updated { margin-top: 28px; font-size: 14px; color: var(--muted); }
.legal-form { display: grid; gap: 12px; max-width: 640px; margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-form label, #receipt > label { font-size: 14px; font-weight: 600; color: var(--text); }
.legal-form input, .legal-form textarea, #receiptLink { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--text); font: inherit; }
.legal-form textarea { resize: vertical; min-height: 160px; }
.legal-form input:focus-visible, .legal-form textarea:focus-visible, #receiptLink:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.legal-form .button { justify-self: start; cursor: pointer; }
#deleteForm { display: grid; gap: 12px; }
.legal-form .legal-danger { background: #a32632; color: #fff; border-color: #a32632; }
.legal-form .legal-danger:hover { background: #84202a; }
.legal-form button:disabled { opacity: .6; cursor: wait; }
#legalStatus { min-height: 1.5em; }
.support #legalStatus:empty { min-height: 0; margin: 0; }
.receipt-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
/* Support conversations: the account's list and one conversation, laid out like the chat. */
.support-mine, .support-thread { max-width: 720px; margin-top: 28px; }
.support-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.support-head h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.support-head .button { cursor: pointer; flex: none; }
.support-back { display: inline-block; margin-bottom: 12px; padding: 0; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; }
.support-back:hover { color: var(--text); }
.support [hidden] { display: none !important; }
.support-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.support-list li + li { border-top: 1px solid var(--line); }
.support-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 16px 20px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.support-row:hover { background: var(--nav); }
.support-row b { overflow-wrap: anywhere; }
.support-row small { color: var(--muted); }
.support-badge { grid-row: span 2; align-self: center; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.support-badge.answered { background: var(--text); border-color: var(--text); color: #fff; }
.support-empty { padding: 20px; color: var(--muted); }
#checkReceipt, #copyReceipt { flex: none; padding: 8px 14px; background: var(--nav); border: 1px solid var(--line2); border-radius: 999px; color: var(--text); cursor: pointer; font: inherit; }
#receiptBox { display: grid; gap: 8px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
#receiptBox label { font-size: 14px; font-weight: 600; }
.support-note { margin: 0; font-size: 14px; color: var(--muted); }
.support-link { display: flex; gap: 8px; }
#receiptLink { width: 100%; min-width: 0; border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; background: #fff; color: var(--text); font: inherit; font-size: 14px; }
#receiptLink:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.support-messages { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.support-message { max-width: 85%; padding: 12px 16px; border-radius: 18px; }
.support-message small { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.from-user { align-self: flex-end; background: var(--nav); border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.from-support { align-self: flex-start; background: #fff; border: 1px solid var(--line2); border-bottom-left-radius: 6px; }
.support-waiting { align-self: center; font-size: 13px; color: var(--muted); }
.support-reply { display: flex; align-items: flex-end; gap: 8px; margin-top: 20px; padding: 8px; border: 1px solid var(--line2); border-radius: 20px; background: #fff; }
.support-reply label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.support-reply textarea { flex: 1; min-height: 44px; max-height: 240px; padding: 10px 12px; border: 0; background: none; color: var(--text); font: inherit; resize: none; }
.support-reply textarea:focus-visible { outline: none; }
.support-reply:focus-within { outline: 2px solid var(--text); outline-offset: 2px; }
.support-reply .button { flex: none; cursor: pointer; }
.support-reply button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 600px) {
  .legal-form { padding: 20px; } .legal-form .button { width: 100%; } .legal-form input, .legal-form textarea, .support-reply textarea { font-size: 16px; }
  .support-message { max-width: 92%; } .support-row { padding: 14px 16px; }
  .support-head { flex-wrap: wrap; }
}
