/* COPY DETERRENT — policy pages only. Loaded by inc/legal-deterrent.php and by nothing else.
 *
 * If this file is ever reachable from a non-policy page, that is a bug: a `user-select: none` on
 * the checkout would stop a customer copying the IBAN they were asked to pay.
 *
 * Scoped to .legal-body — the policy prose — and NOT to the page. The header, the nav and the
 * footer stay selectable, because the deterrent is about the policy wording and nothing else.
 */

.legal-body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* Safari/iOS also offer their own long-press callout and drag; both are copy affordances. */
  -webkit-touch-callout: none;
}

/* SELECTION STAYS ON WHEREVER SOMEBODY IS TYPING. A form field a customer cannot select inside is
 * broken, not protected — they cannot correct a typo, double-click a word, or paste over a value.
 * This covers a contact form or newsletter input if one is ever placed inside a policy page. */
.legal-body input,
.legal-body textarea,
.legal-body select,
.legal-body [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Links keep their pointer and focus behaviour; user-select never governed either, and the mailto /
 * contact links at the foot of every policy page must stay clickable and keyboard-reachable. */
.legal-body a { -webkit-user-drag: none; }
