/* MARKSWELL shared page + footer styles — V10 */
:root {
  --mw-navy: #071d36;
  --mw-navy-2: #12345f;
  --mw-burgundy: #7d1f2d;
  --mw-gold: #c79a3b;
  --mw-cream: #fffaf0;
  --mw-ink: #172033;
  --mw-muted: #697386;
  --mw-line: #e3e7ed;
  --mw-bg: #ffffff;
  --mw-soft: #f7f8fa;
  --mw-max: 1180px;
}

/* Unified site footer — V10B7 */
.site-footer {
  padding: 0 !important;
  background: linear-gradient(135deg, #06192f 0%, var(--mw-navy) 52%, #143a67 100%) !important;
  color: var(--mw-cream) !important;
  border-top: 1px solid rgba(199, 154, 59, .42) !important;
  font-size: 14px !important;
}
.site-footer .footer-inner {
  width: min(var(--mw-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid !important;
  grid-template-columns: minmax(300px, 1.35fr) minmax(260px, .95fr) minmax(190px, .7fr);
  align-items: start;
  gap: 36px 64px !important;
}
.footer-brand, .footer-contact, .footer-links { min-width: 0; }
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 790;
  letter-spacing: -.015em;
}
.footer-brand span {
  display: block;
  max-width: 430px;
  margin-top: 10px;
  color: rgba(255, 250, 240, .72);
  font-size: 15px;
  line-height: 1.55;
}
.footer-heading {
  display: block;
  margin: 1px 0 15px;
  color: rgba(230, 199, 119, .94);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.footer-contact {
  display: grid;
  gap: 15px;
}
.footer-contact-item { display: grid; gap: 4px; }
.footer-meta {
  color: rgba(255, 250, 240, .48);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.3;
}
.site-footer .footer-contact a {
  width: fit-content;
  max-width: 100%;
  color: rgba(255,250,240,.92) !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.site-footer .footer-contact a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  gap: 10px;
}
.footer-links .footer-heading { margin-bottom: 5px; }
.site-footer .footer-links a {
  color: rgba(255, 250, 240, .84) !important;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  padding: 1px 0;
}
.site-footer .footer-links a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 4px; }
.footer-bottom {
  width: min(var(--mw-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,250,240,.5);
  font-size: 11.5px;
  line-height: 1.45;
}
.footer-copyright { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.footer-company::before { content: "·"; margin-right: 12px; color: rgba(255,250,240,.28); }
.site-footer .footer-cookie-link {
  flex: 0 0 auto;
  padding: 0 !important;
  color: rgba(255,250,240,.58) !important;
  background: transparent !important;
  border: 0 !important;
  font: inherit !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255,250,240,.28) !important;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .footer-cookie-link:hover { color: #fff !important; text-decoration-color: rgba(230,199,119,.9) !important; }
.legal-updated {
  display: inline-block;
  margin: 0 0 24px !important;
  padding: 7px 11px;
  border: 1px solid var(--mw-line);
  border-radius: 7px;
  background: var(--mw-soft);
  color: #647184 !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

/* Standalone content pages */
.mw-page {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mw-ink);
  background: var(--mw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mw-page *, .mw-page *::before, .mw-page *::after { box-sizing: border-box; }
.mw-page a { color: inherit; }
.mw-page img { max-width: 100%; display: block; }
.mw-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(7, 29, 54, .1);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(16px);
}
.mw-nav {
  width: min(var(--mw-max), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mw-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--mw-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.mw-brand img { width: 52px; height: 40px; object-fit: contain; }
.mw-nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mw-nav-links a {
  color: #4c596c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.mw-nav-links a:hover { color: var(--mw-navy); }
.mw-nav-cta {
  padding: 10px 15px;
  color: #fff !important;
  background: var(--mw-navy);
  border-radius: 7px;
}
.mw-hero {
  background:
    radial-gradient(circle at 85% 18%, rgba(125,31,45,.18), transparent 35%),
    linear-gradient(135deg, #061b33, #12345f 62%, #7d1f2d);
  color: #fff;
}
.mw-hero-inner {
  width: min(var(--mw-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 58px;
}
.mw-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #e6c777;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mw-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.mw-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  line-height: 1.65;
}
.mw-breadcrumbs {
  width: min(var(--mw-max), calc(100% - 40px));
  margin: 20px auto 0;
  color: var(--mw-muted);
  font-size: 13px;
}
.mw-breadcrumbs a { color: var(--mw-navy); text-decoration: none; }
.mw-content-shell {
  width: min(var(--mw-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 94px;
  padding: 18px 0 18px 18px;
  border-left: 2px solid var(--mw-line);
}
.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--mw-navy);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.legal-toc a {
  display: block;
  margin: 7px 0;
  color: var(--mw-muted);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.4;
}
.legal-toc a:hover { color: var(--mw-navy); }
.legal-document {
  min-width: 0;
  max-width: 820px;
}
.legal-document > h1 { display: none; }
.legal-document h2 {
  margin: 48px 0 14px;
  padding-top: 2px;
  color: var(--mw-navy);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.legal-document h2:first-of-type { margin-top: 28px; }
.legal-document h3 {
  margin: 30px 0 10px;
  color: #273850;
  font-size: 18px;
}
.legal-document p,
.legal-document li {
  color: #48556a;
  font-size: 15px;
  line-height: 1.76;
}
.legal-document p { margin: 0 0 15px; }
.legal-document ul, .legal-document ol { padding-left: 24px; }
.legal-document strong { color: #26364e; }
.legal-document a { color: #185d9d; }
.legal-document table {
  width: 100%;
  margin: 22px 0 28px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.legal-document th,
.legal-document td {
  padding: 11px 12px;
  border: 1px solid var(--mw-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.legal-document th { background: #f0f4f8; color: var(--mw-navy); }
.legal-date-card {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--mw-line);
  border-radius: 10px;
  background: var(--mw-soft);
}
.legal-date-card p { margin: 4px 0; }

/* Contact page */
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 46px;
  align-items: stretch;
}
.contact-card,
.contact-form-card {
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 29, 54, .06);
}
.contact-form-card { padding: 30px; }
.contact-card { padding: 30px; background: linear-gradient(180deg, #f8fafc, #fff); }
.contact-form-card h2,
.contact-card h2 { margin: 0 0 9px; color: var(--mw-navy); font-size: 24px; }
.contact-intro { margin: 0 0 24px; color: var(--mw-muted); line-height: 1.65; }
.contact-form { display: grid; gap: 16px; }
.contact-form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; color: #344258; font-size: 13px; font-weight: 700; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--mw-ink);
  background: #fff;
  border: 1px solid #ccd4df;
  border-radius: 8px;
  font: inherit;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #356a9e; box-shadow: 0 0 0 3px rgba(53,106,158,.12); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-submit {
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--mw-navy);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-form-note,
.form-status { color: var(--mw-muted); font-size: 12.5px; line-height: 1.55; }
.form-status { min-height: 20px; margin: 0; color: #1b694d; font-weight: 700; }
.contact-details { display: grid; gap: 20px; }
.detail-block { padding-bottom: 18px; border-bottom: 1px solid var(--mw-line); }
.detail-block:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-label { display: block; margin-bottom: 5px; color: var(--mw-muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail-value { color: #26364e; font-size: 14px; line-height: 1.65; }
.detail-value a { color: #185d9d; text-decoration: none; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 13px;
  color: var(--mw-navy);
  border: 1px solid #bfc9d6;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.map-panel {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  background: var(--mw-soft);
}
.map-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 22px 18px;
  background: #fff;
  border-bottom: 1px solid var(--mw-line);
}
.map-panel-head h2 { margin: 4px 0 0; color: var(--mw-navy); font-size: 22px; }
.map-eyebrow { display: block; color: var(--mw-muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.map-tabs { display: inline-flex; gap: 6px; padding: 4px; background: #eef2f6; border-radius: 10px; }
.map-tab {
  min-height: 38px;
  padding: 8px 14px;
  color: #536178;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.map-tab:hover { color: var(--mw-navy); }
.map-tab.is-active { color: #fff; background: var(--mw-navy); box-shadow: 0 5px 14px rgba(7,29,54,.14); }
.map-frame-wrap { background: #e9eef4; }
.map-panel iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-caption { padding: 14px 18px; color: var(--mw-muted); font-size: 13px; line-height: 1.5; background: #fff; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1.15fr .85fr; gap: 30px 48px !important; padding: 38px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links { grid-column: 1; }
  .footer-contact { grid-column: 2; }
  .legal-layout { grid-template-columns: 1fr; gap: 18px; }
  .legal-toc { position: static; border-left: 0; border-bottom: 1px solid var(--mw-line); padding: 0 0 16px; columns: 2; }
  .legal-toc strong { column-span: all; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
  .mw-nav { width: min(var(--mw-max), calc(100% - 24px)); min-height: 64px; }
  .mw-brand img { width: 44px; height: 36px; }
  .mw-nav-links a:not(.mw-nav-cta) { display: none; }
  .mw-hero-inner, .mw-content-shell, .mw-breadcrumbs, .site-footer .footer-inner { width: min(var(--mw-max), calc(100% - 32px)); }
  .mw-hero-inner { padding: 48px 0 44px; }
  .mw-hero h1 { font-size: clamp(34px, 12vw, 48px); }
  .mw-hero p { font-size: 15px; }
  .mw-content-shell { padding: 28px 0 54px; }
  .legal-toc { columns: 1; }
  .legal-document h2 { margin-top: 38px; font-size: 22px; }
  .legal-document p, .legal-document li { font-size: 14px; line-height: 1.7; }
  .legal-document table { display: block; overflow-x: auto; white-space: normal; }
  .contact-form-card, .contact-card { padding: 22px; }
  .contact-form .two-col { grid-template-columns: 1fr; }
  .map-panel-head { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .map-tabs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .map-tab { padding: 9px 10px; font-size: 12.5px; }
  .map-panel iframe { height: 280px; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 28px !important; padding: 34px 0 28px; }
  .footer-brand, .footer-contact, .footer-links { grid-column: auto; }
  .footer-brand strong { font-size: 22px; }
  .footer-brand span { max-width: 100%; margin-top: 8px; font-size: 14px; line-height: 1.55; }
  .footer-heading { margin-bottom: 12px; }
  .footer-contact { gap: 14px; }
  .footer-links { gap: 11px; }
  .site-footer .footer-links a { font-size: 15px; }
  .footer-bottom { width: min(var(--mw-max), calc(100% - 32px)); padding: 16px 0 24px; display: grid; gap: 12px; }
  .footer-copyright { display: grid; gap: 3px; }
  .footer-company::before { content: none; }
  .site-footer .footer-cookie-link { justify-self: start; }
}
