/* Shared by privacy.html and cookies.html. Fonts, tokens, base, nav and footer are copied verbatim from index.html's
   inline <style> so the legal pages match the homepage; the rules after LEGAL PAGES are new. */
/* Self-hosted Google Fonts files (OFL), byte-identical to fonts.gstatic.com, same @font-face rules */
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/dm-serif-display-italic-latin-ext-v17.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'DM Serif Display';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/dm-serif-display-italic-latin-v17.woff2) format('woff2');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:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/dm-serif-display-normal-latin-ext-v17.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'DM Serif Display';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/dm-serif-display-normal-latin-v17.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/inter-normal-latin-ext-v20.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/inter-normal-latin-v20.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-normal-latin-ext-v20.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-normal-latin-v20.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-normal-latin-ext-v20.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-normal-latin-v20.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-normal-latin-ext-v20.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-normal-latin-v20.woff2) format('woff2');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:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-normal-latin-ext-v20.woff2) format('woff2');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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-normal-latin-v20.woff2) format('woff2');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}
/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES — Mapstones Brand
   ═══════════════════════════════════════ */
:root {
  --ms-blue: #2D5A7B;
  --ms-blue-dark: #1E3F58;
  --ms-blue-light: #3A7BA8;
  --ms-midnight: #0F1C2E;
  --ms-midnight-light: #162538;
  --ms-sand: #D4A574;
  --ms-sand-light: #E8C9A8;
  --ms-sand-pale: #F0DCC8;
  --ms-sand-dark: #B8884E;
  --ms-coral: #E8734A;
  --ms-coral-light: #F0936E;
  --ms-coral-dark: #D4603A;
  --ms-cream: #FAF8F5;
  --ms-cream-warm: #F2EDE7;
  --ms-charcoal: #1A2332;
  --ms-slate: #3A4553;
  --ms-warm-grey: #6B7280;
  --ms-white: #FFFFFF;

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 12px rgba(45, 90, 123, 0.06);
  --shadow-md: 0 8px 32px rgba(45, 90, 123, 0.08);
  --shadow-lg: 0 20px 60px rgba(45, 90, 123, 0.12);
  --shadow-xl: 0 32px 80px rgba(15, 28, 46, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ms-cream);
  color: var(--ms-slate);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
picture { display: contents; }
picture source { display: none; }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: var(--ms-white); color: var(--ms-blue-dark);
  padding: 12px 20px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }
::selection { background: var(--ms-blue); color: var(--ms-white); }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 48px;
  box-shadow: 0 1px 20px rgba(45, 90, 123, 0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--ms-white);
  letter-spacing: 0.01em;
  transition: color 0.5s var(--ease);
}
.nav.scrolled .nav-logo { color: var(--ms-blue-dark); }
.nav-logo-icon {
  width: clamp(60px, 8vw, 90px); height: clamp(60px, 8vw, 90px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--ms-warm-grey); }
.nav-links a:hover { color: var(--ms-sand); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--ms-sand);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--ms-coral) !important;
  color: var(--ms-white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  transition: all 0.3s var(--ease) !important;
  box-shadow: 0 2px 12px rgba(232, 115, 74, 0.3);
}
.nav-cta:hover {
  background: var(--ms-coral-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 115, 74, 0.4);
}
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--ms-blue-dark); }

/* ═══════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════ */
.section { padding: 100px 48px; }
.section-dark { background: var(--ms-midnight); }
.section-alt { background: var(--ms-white); }
.container { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ms-blue);
  margin-bottom: 12px;
}
.section-dark .section-label { color: var(--ms-sand); }
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--ms-charcoal);
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-dark .section-title { color: var(--ms-cream); }
.section-title em {
  font-style: italic;
  color: var(--ms-blue);
}
.section-dark .section-title em { color: var(--ms-sand); }
.section-desc {
  font-size: 1.05rem;
  color: var(--ms-warm-grey);
  max-width: 600px;
  line-height: 1.8;
  font-weight: 300;
}
.section-dark .section-desc { color: rgba(250, 248, 245, 0.75); }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--ms-midnight);
  padding: 60px 48px 30px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 360px;
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--ms-cream);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-sand);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.65);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--ms-cream); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(250, 248, 245, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.6);
}
.footer-bottom a {
  color: var(--ms-sand);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.footer-bottom a:hover { color: var(--ms-sand-light); }
.powered-by {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.6);
}
.powered-by a {
  color: var(--ms-sand);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   LEGAL PAGES (privacy.html, cookies.html)
   ═══════════════════════════════════════ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ms-midnight) 0%, var(--ms-blue-dark) 50%, var(--ms-blue) 100%);
  overflow: hidden;
  padding: clamp(150px, 18vw, 200px) 48px 72px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212, 165, 116, 0.12) 0%, transparent 70%);
}
.page-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.page-hero .section-label { color: var(--ms-sand); }
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ms-cream);
}
.page-hero h1 em { font-style: italic; color: var(--ms-sand); }
.page-hero .updated {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(250, 248, 245, 0.75);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 48px 100px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ms-slate);
}
.legal-body > p:first-child { font-size: 1.1rem; color: var(--ms-charcoal); }
.legal-body h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.2;
  color: var(--ms-charcoal);
  margin: 56px 0 14px;
}
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body .table-wrap + p { margin-top: 14px; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li { margin-top: 8px; }
.legal-body li::marker { color: var(--ms-sand-dark); }
.legal-body strong { color: var(--ms-charcoal); font-weight: 600; }
.legal-body a {
  color: var(--ms-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.legal-body a:hover { color: var(--ms-coral-dark); }
.legal-body a:focus-visible, .footer a:focus-visible, .nav a:focus-visible {
  outline: 2px solid var(--ms-sand);
  outline-offset: 3px;
  border-radius: 4px;
}
.table-wrap {
  margin-top: 18px;
  background: var(--ms-white);
  border: 1px solid rgba(45, 90, 123, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.6; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 14px 18px; }
.legal-body thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ms-blue);
  background: var(--ms-cream-warm);
}
.legal-body tbody tr + tr td, .legal-body tbody tr + tr th { border-top: 1px solid rgba(45, 90, 123, 0.08); }
.legal-body tbody th { font-weight: 600; color: var(--ms-charcoal); width: 42%; }

/* Footer legal links: a 44px tap target with no visual change to the row */
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8rem; }
.footer-legal a[aria-current="page"] { color: var(--ms-cream); }

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active a { color: var(--ms-slate) !important; font-size: 1rem; }
  .nav-links.active .nav-cta {
    text-align: center;
    display: block;
    padding: 14px 28px;
  }
  .nav-toggle { display: flex; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .footer { padding: 48px 24px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 140px 24px 56px; }
  .legal-body { padding: 56px 24px 80px; }
  .legal-body th, .legal-body td { padding: 12px 14px; }
}
@media (max-width: 480px) {
  .legal-body tbody th { width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
