/* =========================================================
   OnlineWorker shared foundation
   Identical file in Main, Studio and Library. Edit one, copy to all.
   Shared: typefaces, neutrals, accent palette, shape scale, network bar.
   Not shared: each site picks its own lead accent and shape language
   by overriding --ow-accent* after this file loads.
   ========================================================= */
:root {
  /* typefaces: Instrument Sans (display) + Inter (text) */
  --ow-display: "Instrument Sans", "Inter", system-ui, -apple-system, sans-serif;
  --ow-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ow-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* neutrals */
  --ow-navy: #0e1a33;
  --ow-navy-deep: #0a1426;
  --ow-navy-soft: #16264a;
  --ow-ink: #10182b;
  --ow-ink-soft: #4a5468;
  --ow-ink-faint: #7a8397;
  --ow-paper: #f6f3ee;
  --ow-paper-deep: #efebe2;
  --ow-card: #fffdfa;
  --ow-line: #e2dfd6;
  --ow-line-on-navy: rgba(255, 255, 255, 0.14);
  --ow-text-on-navy: #c9d1e6;

  /* the four family hues: base / light (on navy) / text (on paper) */
  --ow-cobalt: #2c4bdb;     --ow-cobalt-l: #8fa6ff;    --ow-cobalt-t: #1f37a8;
  --ow-vermilion: #e8632c;  --ow-vermilion-l: #ff9060; --ow-vermilion-t: #b8400f;
  --ow-gold: #c99a1e;       --ow-gold-l: #e9c14f;      --ow-gold-t: #8a6606;
  --ow-teal: #12907f;       --ow-teal-l: #3fcbb5;      --ow-teal-t: #0c6b5e;

  /* each site overrides these three */
  --ow-accent: var(--ow-cobalt);
  --ow-accent-l: var(--ow-cobalt-l);
  --ow-accent-t: var(--ow-cobalt-t);

  /* shape + motion scale */
  --ow-radius-sm: 8px;
  --ow-radius: 12px;
  --ow-radius-lg: 20px;
  --ow-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::selection { background: var(--ow-accent); color: #fff; }

/* Network bar: the same strip at the top of every OnlineWorker site */
.ow-bar { background: var(--ow-navy-deep); color: var(--ow-text-on-navy); font: 500 0.78rem/1 var(--ow-sans); letter-spacing: 0.02em; }
.ow-bar-in { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ow-bar-lead { font-family: var(--ow-display); font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.ow-bar nav { display: flex; gap: 4px; }
.ow-bar a { color: var(--ow-text-on-navy); text-decoration: none; padding: 11px 10px; border-radius: 4px; transition: color 0.2s var(--ow-ease); }
.ow-bar a:hover { color: #fff; }
.ow-bar a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--ow-accent-l); }
.ow-bar a:focus-visible { outline: 2px solid var(--ow-accent-l); outline-offset: -2px; }
@media (max-width: 480px) { .ow-bar-lead { display: none; } .ow-bar-in { justify-content: center; } }

/* Legal pages (Privacy, Terms, Cookies, Disclaimer) and footer legal links */
.legal-wrap { max-width: 1120px; margin: 0 auto; padding: 48px clamp(20px, 5vw, 56px) 96px; }
.legal { max-width: 720px; font-family: var(--ow-sans); font-size: 1rem; line-height: 1.7; color: var(--ow-ink); }
.legal-title { font: 700 clamp(2rem, 5vw, 2.8rem)/1.1 var(--ow-display); letter-spacing: -0.02em; margin: 0 0 8px; max-width: none; color: var(--ow-ink); }
.legal-meta { font-size: 0.9rem; color: var(--ow-ink-faint); margin: 0 0 20px; }
.legal h2 { font: 600 1.3rem/1.3 var(--ow-display); letter-spacing: -0.01em; max-width: none; margin: 2.2em 0 0.6em; color: var(--ow-ink); }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; color: var(--ow-ink-soft); max-width: none; margin: 0 0 1em; }
.legal li { margin-bottom: 0.6em; }
.legal ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.legal strong { color: var(--ow-ink); font-weight: 600; }
.legal a { color: var(--ow-accent-t); text-underline-offset: 3px; }
.legal code { font-family: var(--ow-mono); font-size: 0.9em; background: var(--ow-paper-deep); padding: 1px 5px; border-radius: 4px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ow-line); font: 600 0.9rem var(--ow-display); }
.legal-nav a { color: var(--ow-ink-soft); text-decoration: none; }
.legal-nav a:hover { color: var(--ow-ink); }
.legal-nav a[aria-current] { color: var(--ow-accent-t); box-shadow: inset 0 -2px 0 var(--ow-accent); }
.ow-legal-links a { color: inherit; text-underline-offset: 3px; }
