/* The apex Privacy Policy (/privacy) and Terms of Service (/terms): static documents in the apex page's first-login
   canvas grammar (index.html's inline style) — one wide node on the dotted canvas, DARK tokens, LIGHT under a light
   OS preference. Same CSP as the page: no external URL, font or CSS import; the dot mask is a data: URL. */
:root {
  --fl-bg: #0D1117; --fl-node: #161D29; --fl-text: #D9E0EA; --fl-text-2: #B4BFCE; --fl-muted: #7E8B9E;
  --fl-hair: rgba(151,170,196,.22); --fl-hair-strong: rgba(151,170,196,.36); --fl-dot: #97AAC4; --fl-dot-alpha: .22;
  --fl-accent: #6fe3c2; --fl-action: #3DC9E0; --fl-handle-ring: #131822; --fl-shadow: none;
  --font-ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --fl-bg: #F2F5F9; --fl-node: #FFFFFF; --fl-text: #131A24; --fl-text-2: #3A4657; --fl-muted: #5E6D83;
    --fl-hair: rgba(19,26,36,.14); --fl-hair-strong: rgba(19,26,36,.26); --fl-dot-alpha: .55;
    --fl-accent: #179299; --fl-action: #0A7C8C; --fl-handle-ring: #F2F5F9;
    --fl-shadow: 0 1px 2px rgba(19,26,36,.06), 0 8px 24px rgba(19,26,36,.06);
    color-scheme: light;
  }
}
html, body { margin: 0; background: var(--fl-bg); color: var(--fl-text); font: 15px/1.6 var(--font-ui); }
body { min-height: 100vh; padding: 48px 24px; box-sizing: border-box; position: relative; overflow-x: hidden; }
body::before {  /* the canvas dot grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: var(--fl-dot-alpha); background-color: var(--fl-dot);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 20px 20px; mask-size: 20px 20px;
}
a { color: var(--fl-action); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: none; border-radius: 4px; box-shadow: 0 0 0 2px var(--fl-node), 0 0 0 4px var(--fl-accent); }

main.doc {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto; background: var(--fl-node); border: 1.5px solid var(--fl-accent);
  border-radius: 12px; box-shadow: var(--fl-shadow); animation: fl-in .5s cubic-bezier(.65,0,.25,1) both;
}
.fl-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--fl-hair);
  font-size: 15px; font-weight: 600; color: var(--fl-accent); }
.fl-head::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--fl-accent); }
.fl-head a.home { margin-left: auto; font-weight: 400; font-size: 13px; }
.fl-handle { display: none; position: absolute; left: 0; top: 40px; transform: translate(-50%, -50%); width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; background: var(--fl-accent); border: 3px solid var(--fl-handle-ring); }
.doc-body { padding: 28px 32px 32px; }
.eyebrow { margin: 0 0 6px; font: 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fl-muted); }
h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.lead { margin: 0 0 8px; color: var(--fl-text-2); }
h2 { margin: 32px 0 8px; padding-top: 20px; border-top: 1px solid var(--fl-hair); font-size: 17px; font-weight: 600; }
h2 .n { margin-right: 8px; font: 12px var(--font-mono); color: var(--fl-accent); vertical-align: 2px; }
p, li { color: var(--fl-text-2); }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin: 0 0 6px; }
li::marker { color: var(--fl-muted); }
strong { color: var(--fl-text); font-weight: 600; }
.table { width: 100%; margin: 4px 0 12px; border: 1px solid var(--fl-hair-strong); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--fl-hair); color: var(--fl-text-2); }
.table tr:first-child th, .table tr:first-child td { border-top: 0; }
.table th { width: 34%; color: var(--fl-text); font-weight: 600; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 32px 18px; border-top: 1px solid var(--fl-hair); font-size: 13px; color: var(--fl-muted); }
.doc-foot .sp { margin-left: auto; }
@keyframes fl-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 640px) {
  body { padding: 16px 12px; }
  .doc-body { padding: 22px 18px 24px; }
  .doc-foot { padding: 14px 18px 16px; }
  .fl-handle { display: none; }
  .table th, .table td { display: block; width: auto; }
  .table td { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { main.doc { animation: none; } }
@media print { body::before, .fl-handle { display: none; } main.doc { border: 0; box-shadow: none; } }
