/* Shared styling for /privacy and /terms (and any future legal page). */

.vlx-doc-body {
  background: var(--bg-absolute, #0B1426);
  display: block;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Cookie-consent opt-out control (cookies page). Styled via classes, not an
   inline style="" attribute, so it renders under the strict doc-page CSP
   (style-src 'self'). cookie-prefs.js toggles disabled state via the CSSOM. */
.vlx-analytics-toggle {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}
.vlx-analytics-toggle[disabled] { opacity: 0.6; cursor: default; }
.vlx-analytics-state { margin-left: 12px; font-size: 13px; opacity: 0.85; }
.vlx-doc-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 32px;
}
.vlx-doc-main article {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 36px;
  color: var(--text-strong, #f8fafc);
}
.vlx-doc-main h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.vlx-doc-main h2 {
  margin: 28px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-primary-bright, #3b82f6);
  letter-spacing: 0.02em;
}
.vlx-doc-main p, .vlx-doc-main li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted, #94a3b8);
}
.vlx-doc-main strong { color: var(--text-strong, #f8fafc); }
.vlx-doc-main a {
  color: var(--brand-primary-bright, #3b82f6);
  text-decoration: none;
}
.vlx-doc-main a:hover { text-decoration: underline; }
.vlx-doc-main ul {
  padding-left: 22px;
  margin: 8px 0 14px;
}
.vlx-doc-main code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px;
}
.vlx-doc-lead {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--text-strong, #f8fafc) !important;
  margin: 0 0 20px;
}
/* The governing-language clause. It sits directly above the revision line at
   the foot of every translated legal document. Deliberately more legible than
   the revision stamp - it is a term, not metadata - but quieter than body copy,
   because a reader of the English original does not need to stop on it. */
.vlx-doc-language {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #1e293b);
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--text-dim, #64748b) !important;
}
.vlx-doc-language + .vlx-doc-revision {
  margin-top: 14px;
}
.vlx-doc-revision {
  margin-top: 28px;
  font-size: 12px !important;
  color: var(--text-dim, #64748b) !important;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* ── Account-deletion control ─────────────────────────────────
 * /delete-account/ is the page Google Play and the App Store link
 * for account erasure, and its one actionable control carried three
 * class names that no stylesheet defined: .danger-zone, .btn-danger
 * and .msg. The markup looked styled; the page rendered a raw
 * browser button on a store-compliance surface.
 *
 * Deliberately restrained, and deliberately NOT the primary brand
 * button: this action is destructive, so it should read as
 * considered rather than inviting. The confirm step lives in the
 * page script; this is only the entry point.
 */
.danger-zone {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid rgba(230, 57, 80, 0.32);
  border-radius: 14px;
  background: rgba(230, 57, 80, 0.06);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Never let a longer translation clip or hyphenate the label. */
  white-space: nowrap;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(230, 57, 80, 0.55);
  background: rgba(230, 57, 80, 0.14);
  color: #ff8a97;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn-danger:hover {
  background: rgba(230, 57, 80, 0.22);
  border-color: rgba(230, 57, 80, 0.75);
  color: #ffb3bc;
}
/* Keyboard users must see where they are on a destructive control. */
.btn-danger:focus-visible {
  outline: 2px solid #ff8a97;
  outline-offset: 3px;
}
.btn-danger[disabled] { opacity: 0.55; cursor: default; }

/* The aria-live region beside it. Empty until the script writes to
 * it, so it must not reserve a visible box while it is silent. */
.danger-zone .msg {
  margin: 12px 0 0 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: var(--text-dim, #94a3b8) !important;
}
.danger-zone .msg:empty { display: none; }
