/* SailMOB static-subpage shared styles.
 * Source of truth: packages/brand/src/{tokens,SailMobLogo,SpinnakerMark,LifeRingO}.tsx
 * Consumers: apps/landing/public/{glossary,privacy,terms}.html
 *            apps/game/public/{privacy,eula}.html (duplicated — see /docs/brand/static-subpages.md)
 *
 * Wordmark markup pattern is inlined in each consumer between
 *   <!-- BRAND-MARK-V2 begin --> ... <!-- BRAND-MARK-V2 end -->
 * markers so the sync script can propagate updates. Do not hand-edit the
 * markers' contents — edit the canonical partial in
 *   apps/landing/_partials/brand-mark.html
 * and run `pnpm sync:subpages`.
 */

/* Fonts ------------------------------------------------------------------
 * Self-hosted, so no page asks Google for a stylesheet before the cookie
 * choice (#2655). The files are @fontsource-variable/{inter,outfit}'s Latin
 * subsets, copied to public/fonts/; both apps carry the same four.
 */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Reset + body ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0F1F33;
  color: #E2E8F0;
  line-height: 1.65;
  padding: 2rem 1.25rem 5rem;
}
.container { max-width: 900px; margin: 0 auto; }
.container--narrow { max-width: 720px; }

/* Brand mark + wordmark --------------------------------------------------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  /* Brand container: the lockup never sits bare. Inlined twins of
     --sm-radius-container / --sm-border-hairline (packages/brand sm-tokens.css). */
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 0.75rem;
}
.brand-mark svg.spinnaker { display: block; flex-shrink: 0; }
.wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark .sail { color: #FFFFFF; font-style: italic; margin-right: 0.16em; }
.wordmark .mob  { color: #FB923C; font-style: normal; }
.wordmark .ringo {
  display: inline-block;
  vertical-align: -0.18em;
  margin: 0 -0.06em;
  transform-origin: 50% 50%;
  animation:
    sm-ring-heave 1.8s ease-in-out infinite alternate,
    sm-ring-roll 1.8s ease-in-out -0.9s infinite alternate;
}
.wordmark .ringo svg { display: block; overflow: visible; }
/* The O bobs like a ring on a swell. Mirrors wordmark.bob* in
   packages/brand/src/tokens.ts and BOB_CSS in LifeRingO.tsx. The animation is
   on the span, not the svg: Safari pivots an animated svg round its left edge. */
@keyframes sm-ring-heave { from { translate: 0 0.05em; } to { translate: 0 -0.05em; } }
@keyframes sm-ring-roll { from { rotate: 4deg; } to { rotate: -4deg; } }
@media (prefers-reduced-motion: reduce) { .wordmark .ringo { animation: none; } }

/* Top nav ----------------------------------------------------------------- */
header.subpage-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: #2563EB;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.nav-cta:hover { background: #3B82F6; }

/* Typography -------------------------------------------------------------- */
h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 2.5rem;
  color: #F8FAFC;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FB923C;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1E293B;
}
h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #F1F5F9;
  margin: 1.25rem 0 0.5rem;
}
p { color: #CBD5E1; margin-bottom: 0.75rem; }
ul, ol { color: #CBD5E1; padding-left: 1.5rem; margin-bottom: 0.75rem; }
li { margin-bottom: 0.4rem; }
a { color: #6FA3D6; text-decoration: none; border-bottom: 1px solid rgba(111,163,214,0.4); }
a:hover { border-bottom-color: #6FA3D6; }
.meta, .note, .status {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 2rem;
}
.divider { border: none; border-top: 1px solid #1E293B; margin: 2rem 0; }
hr { border: none; border-top: 1px solid #1E293B; margin: 2rem 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #1E293B;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.85em;
}
table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #1E293B; color: #CBD5E1; vertical-align: top; }
th { color: #F1F5F9; font-weight: 600; }

/* Footer ------------------------------------------------------------------ */
footer.subpage-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748B;
}
footer.subpage-footer a { color: #6FA3D6; border-bottom: 0; }
footer.subpage-footer a:hover { color: #93C5FD; }
footer.subpage-footer .links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
footer.subpage-footer .cookie-settings { background: none; border: 0; padding: 0; font: inherit; color: #6FA3D6; cursor: pointer; }
footer.subpage-footer .cookie-settings:hover { color: #93C5FD; }
