/* The public pages — landing, privacy, terms. Loaded after palette.css, so every
   colour here is a palette token. Two jobs only: the site footer (who runs this,
   how to reach them, the legal links and the trademark line) and long-form legal
   text. Nothing in the signed-in app reads this file. */

/* Header and footer are Intelus's dark navy in both themes with white type. The
   SuperOffice™ wordmark is always "Super" white + "Office" gold on that navy
   (Amit, 2026-10-19), so it only ever sits on these navy grounds. */
:root { --intelus-navy: #071425; --intelus-rule: #3f5a82; --intelus-edge: #3f5a82; --intelus-dim: #b7bdc7; --so-word-gold: #c5a55a; }

.so-mark { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap;
  font: 700 17px/1.2 var(--so-font); letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.so-mark img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 2px var(--intelus-edge); }
.so-mark em { font-style: normal; color: var(--so-word-gold); }
.so-mark sup { font-size: .5em; font-weight: 600; color: #fff; margin-left: 1px; vertical-align: super; line-height: 0; }

.site-top { background: var(--intelus-navy); border-bottom: 1px solid var(--intelus-edge); padding: 14px 20px; }
.site-top-in { max-width: 1040px; margin-inline: auto; display: flex; align-items: center; gap: 16px; }
.site-top .rule, .foot-brand .rule { width: 1px; height: 28px; flex: none; background: var(--intelus-edge); }
.so-by { text-decoration: none; line-height: 1.25; }
.so-by span { font-size: 12px; font-weight: 600; color: var(--intelus-dim); }
.so-by b { font: 700 15px/1.25 var(--so-font); color: #fff; }
.site-top a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
@media (max-width: 420px) { .so-by span { display: block; } }

.site-foot {
  margin-top: 48px; padding: 32px 20px 28px;
  background: var(--intelus-navy); color: #fff; font-size: 13px;
  border-top: 1px solid var(--intelus-edge);
}
.foot-in { max-width: 1040px; margin-inline: auto; }
.land > .site-foot { max-width: none; width: auto; margin-inline: -20px; }
.land > .built + .site-foot { margin-top: 0; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot a.so-mark:hover, .site-foot a.so-by:hover { text-decoration: none; }
.site-foot a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.site-foot .so-by span { color: #fff; }

.foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--intelus-rule);
}
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.foot-brand .so-by { white-space: nowrap; }
.foot-brand .so-mark { font-size: 19px; }
.foot-brand .so-mark img { width: 40px; height: 40px; border-radius: 10px; }
.foot-say { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.6; }
.foot-say a { text-decoration: underline; text-underline-offset: 3px; }

.foot-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 24px; }
.foot-cols h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; margin: 0 0 10px;
}
.foot-cols p { margin: 0 0 6px; }

.foot-base { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--intelus-rule); }
.foot-tm { margin: 12px 0 0; font-size: 12px; line-height: 1.6; max-width: 80ch; text-wrap: pretty; }

/* ---- legal pages ------------------------------------------------------- */

.legal > :not(.site-top):not(.site-foot) { padding-inline: 20px; }
.legal > .site-foot { width: auto; margin-inline: 0; }
.legal { margin: 0; }
.legal-top { max-width: 1040px; margin-inline: auto; padding-block: 22px; }
.legal article { max-width: 70ch; margin: 24px auto 64px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 4px; }
.legal address { font-style: normal; }
.legal article a { color: var(--color-accent-deep); }

/* The legal pages' long-form type must not reach into the footer. */
.legal .site-foot h2 { font-size: 12px; margin: 0 0 10px; }
.legal .site-foot p { font-size: 13px; line-height: 1.6; color: #fff; }
.legal .site-foot .foot-say { font-size: 14px; }
.legal .site-foot .foot-tm { font-size: 12px; }
.site-foot .so-by span, .site-foot .so-by b { display: block; }
@media (max-width: 480px) { .foot-brand .rule { display: none; } }

/* Theme switch in the header. */
.theme-tg { margin-left: auto; flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--intelus-edge); background: transparent; color: #fff; cursor: pointer;
  transition: background .14s, border-color .14s; }
.theme-tg:hover { background: #24406a; border-color: var(--so-word-gold); }
.theme-tg:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.theme-tg .i-sun { display: none; }
[data-theme="dark"] .theme-tg .i-sun { display: block; } [data-theme="dark"] .theme-tg .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-tg .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-tg .i-moon { display: none; }
}

/* Dark mode on the public pages is ONE dark navy (Amit, 2026-10-19): the page,
   the team band and the footer share it, separated by hairlines, not shades. */
[data-theme="dark"] body { background: var(--intelus-navy);
  --card: #0d1f38; --line: #3f5a82; --line-2: #3f5a82; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background: var(--intelus-navy);
    --card: #0d1f38; --line: #3f5a82; --line-2: #3f5a82; }
}

/* The tagline under the wordmark (Amit, 19 Oct 2026) */
.so-wm { display: flex; flex-direction: column; gap: 2px; }
.so-tag { font: 500 11.5px/1.2 var(--so-font); letter-spacing: 0; color: var(--intelus-dim); }
@media (max-width: 600px) { .site-top .so-tag { white-space: normal; max-width: 140px; font-size: 10.5px; } .site-top-in { gap: 12px; } }
