/* ===== Self-hosted fonts (no external requests, no tracking) ===== */

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/inter-300-italic.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(assets/fonts/inter-300.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(assets/fonts/inter-400.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(assets/fonts/inter-500.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(assets/fonts/inter-600.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: 'Sora';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(assets/fonts/sora-300.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: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/sora-400.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: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/sora-500.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: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/sora-600.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;
}

/* ============================================================
   SIMS TRADING V.O.F. — brand stylesheet (light edition)
   Palette from the logo: deep navy, champagne gold, white
   ============================================================ */

:root {
  --navy: #16243e;
  --navy-deep: #0d1830;
  --navy-soft: #1f3050;
  --gold: #b3925c;
  --gold-dark: #96794a;
  --gold-light: #d3b98a;
  --ivory: #f7f5f0;
  --white: #ffffff;
  --ink: #2a3242;
  --ink-soft: #5a6478;
  --line: rgba(22, 36, 62, 0.16);
  --serif: "Sora", "Segoe UI", sans-serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* short pages: footer sticks to the bottom, no white strip below it */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > section, body > header { width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); margin-bottom: 44px; }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 14px;
}
.kicker::after {
  content: "";
  display: inline-block;
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin-left: 14px;
  vertical-align: middle;
}

a { color: var(--gold-dark); text-decoration: none; }

/* ============ NAVIGATION ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 10px 0 28px;
  background: rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.35s ease, padding 0.35s ease;
}
/* two-tone rule: gold on top, navy underneath — always visible, every page */
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(to bottom, var(--gold) 0 50%, var(--navy) 50% 100%);
}
.nav.scrolled,
.nav.solid {
  box-shadow: 0 2px 20px rgba(13, 24, 48, 0.12);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo:hover {
  border-color: var(--gold);
  background: rgba(179, 146, 92, 0.08);
  box-shadow: 0 4px 16px rgba(179, 146, 92, 0.25);
}
.nav-logo img { height: 84px; width: auto; display: block; transition: height 0.35s ease; }
.nav.scrolled .nav-logo img,
.nav.solid .nav-logo img { height: 70px; }

.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links a {
  color: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 16px;
  border: 2px solid var(--line);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-links a:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.nav-links a.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--ivory);
}
.nav-cta {
  background: var(--gold);
  border-color: var(--gold) !important;
  color: var(--navy-deep) !important;
}
.nav-cta:hover {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: var(--white) !important;
}
.nav-cta.active { background: var(--navy) !important; color: var(--ivory) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 102; }
.nav-toggle span {
  display: block;
  width: 28px; height: 3px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  color: var(--navy);
  overflow: hidden;
  /* top padding clears the fixed header (134px) and leaves ~64px of air
     below the rule */
  padding: 198px 24px 48px;
}
.hero-inner { position: relative; max-width: 860px; }

.hero-logo {
  display: block;
  margin: 0 auto;
  width: min(540px, 79vw);
  height: auto;
  animation: heroLogo 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroLogo {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 34px 0 14px;
  opacity: 0;
  animation: rise 1s ease forwards 0.5s;
}
.hero-tagline::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  background: var(--gold);
  margin: 22px auto 0;
}
.hero-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 46px;
  opacity: 0;
  animation: rise 1s ease forwards 0.7s;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s ease forwards 0.9s;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(179, 146, 92, 0.4);
}
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* thin gold reading-progress line above the nav */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 101;
}

/* ============ CORE VALUE STATEMENT ============ */

.statement {
  background: var(--navy);
  padding: 100px 0;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.statement .kicker { color: var(--gold-light); }
.kicker-center::after { display: none; }
.kicker-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.kicker-center::before { content: none; }
.statement-line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.45;
  color: var(--ivory);
  max-width: 780px;
  margin: 0 auto;
}

/* ============ STRENGTH PILLARS ============ */

.pillars { background: var(--white); padding: 96px 0; }
.pillars-kicker { margin-bottom: 44px; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.pillar {
  border-top: 3px solid rgba(179, 146, 92, 0.55);
  padding-top: 30px;
  transition: border-color 0.35s ease;
}
.pillar:hover { border-top-color: var(--gold); }
.pillar svg { width: 50px; height: 50px; color: var(--gold); margin-bottom: 18px; transition: transform 0.35s ease; }
.pillar:hover svg { transform: translateY(-5px) scale(1.08); }
.pillar h3 {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 10px;
}
.pillar p { font-size: 0.89rem; color: var(--ink-soft); }

/* ============ CTA BAND ============ */

.cta-band {
  background: var(--navy);
  color: var(--ivory);
  padding: 96px 0;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.cta-band h2 { color: var(--ivory); margin-bottom: 16px; }
.cta-band p {
  color: rgba(247, 245, 240, 0.85);
  max-width: 600px;
  margin: 0 auto 38px;
  font-size: 1.05rem;
}

/* ============ SUB-PAGE HEADER ============ */

.page-header {
  background: var(--navy);
  padding: 194px 0 56px;
  border-bottom: 3px solid var(--gold);
}
.page-header .kicker { color: var(--gold-light); }
/* pull the first content section closer to the page title (About / What We Do / Contact) */
.page-header + .section { padding-top: 68px; }

.page-header h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  color: var(--ivory);
}

.page-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ============ STORY ============ */

/* about page: tighten gap between the motto and Meet the Founders */
.story.section { padding-bottom: 32px; }

.story-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 70px;
  align-items: center;
}
.story-text p { margin-bottom: 18px; font-size: 1.02rem; }
.story-text strong { font-weight: 500; color: var(--navy); }
.story-text .lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 24px;
}
.story-single { max-width: 680px; }
.story-motto {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  letter-spacing: 0.04em;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin-top: 24px;
}

.story-card {
  background: var(--white);
  border: 2px solid rgba(179, 146, 92, 0.55);
  outline: 2px solid rgba(179, 146, 92, 0.25);
  outline-offset: 8px;
  padding: 54px 40px;
  text-align: center;
  box-shadow: 0 26px 54px rgba(13, 24, 48, 0.12);
}
.story-card img { width: 100%; max-width: 280px; height: auto; }
.story-card-sub {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid rgba(179, 146, 92, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============ SERVICES ============ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.service {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 30px 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(13, 24, 48, 0.12);
}
.service-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
}
.service h3 { color: var(--navy); font-size: 1.4rem; margin: 12px 0 10px; }
.service p { color: var(--ink-soft); font-size: 0.98rem; }

/* ============ FOUNDERS ============ */

/* keep the gap above "Meet the Founders" in step with other section transitions */
.founders.section { padding-top: 68px; }
.founders-intro { margin-bottom: 26px; }

.founder-grid { display: grid; gap: 70px; margin-top: 10px; }

.founder {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.founder:nth-child(even) { grid-template-columns: 1fr 300px; }
.founder:nth-child(even) .founder-photo { order: 2; }

.founder-photo {
  aspect-ratio: 4 / 5;
  background: var(--ivory);
  border: 2px solid var(--navy);
  outline: 2px solid rgba(179, 146, 92, 0.45);
  outline-offset: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.founder h3 { font-size: 1.9rem; color: var(--navy); }
.founder-role {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin: 6px 0 20px;
}
.founder-info { max-width: 660px; }
.founder-info p { margin-bottom: 16px; }
/* side-by-side layout: lift the text so the visible top of the name lines up
   with the top edge of the portrait (compensates the heading's line leading) */
@media (min-width: 901px) {
  .founder-info { margin-top: -10px; }
}

.founder-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.founder-tags li {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 2px solid rgba(22, 36, 62, 0.3);
  padding: 5px 15px;
  border-radius: 999px;
}

/* ============ CONTACT ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.contact-intro h2 { margin-bottom: 20px; }
.contact-intro p { color: var(--ink-soft); font-size: 1.02rem; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.contact-card {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 22px 24px;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 24, 48, 0.12);
}
.contact-card h4 {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 12px;
}
.contact-card p { color: var(--ink); font-size: 0.98rem; }

/* ============ FOOTER ============ */

.footer {
  background: var(--navy);
  padding: 52px 0;
  border-top: 3px solid var(--gold);
  /* on short pages the footer's navy stretches to the bottom of the window,
     so the white space above it stays equal to the other sections */
  flex-grow: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ivory);
}
.footer-wordmark em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--gold-light);
  font-weight: 400;
}
.footer-brand p {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 300;
  color: rgba(247, 245, 240, 0.6);
  margin-top: 6px;
}
.footer-links { display: flex; gap: 42px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(247, 245, 240, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-legal { color: rgba(247, 245, 240, 0.45); font-size: 0.85rem; }

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* gentle stagger so cards ripple in one after another */
.pillar:nth-child(2), .service:nth-child(2) { transition-delay: 0.15s; }
.pillar:nth-child(3), .service:nth-child(3) { transition-delay: 0.3s; }
.pillar:nth-child(4) { transition-delay: 0.45s; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1020px) {
  .nav-links a { padding: 8px 13px; font-size: 0.74rem; }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .pillar-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid { grid-template-columns: 1fr; }
  .founder, .founder:nth-child(even) { grid-template-columns: 1fr; }
  .founder:nth-child(even) .founder-photo { order: 0; }
  .founder-photo { max-width: 300px; }
  .page-header { padding: 164px 0 46px; }
  .page-header + .section { padding-top: 54px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; width: min(300px, 76vw); text-align: center; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 540px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .btn { padding: 9px 20px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .nav-logo img { height: 64px; }
  .nav.scrolled .nav-logo img, .nav.solid .nav-logo img { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-logo, .hero-tagline, .hero-copy, .hero-actions, .reveal { opacity: 1; transform: none; }
}

/* ============ LEGAL OVERLAY (privacy / cookies) ============ */

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.footer-legal-links button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(247, 245, 240, 0.55);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer-legal-links button:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.footer-legal-links span { color: rgba(247, 245, 240, 0.35); font-size: 0.8rem; }

body.legal-open { overflow: hidden; }

.legal-overlay { position: fixed; inset: 0; z-index: 200; }
.legal-overlay[hidden] { display: none; }
.legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 48, 0.6);
  animation: legalFade 0.25s ease;
}
.legal-panel {
  position: relative;
  max-width: 720px;
  width: calc(100% - 40px);
  max-height: 84vh;
  margin: 8vh auto 0;
  overflow-y: auto;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 30px 70px rgba(13, 24, 48, 0.35);
  padding: 44px 48px 48px;
  animation: legalRise 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes legalRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.legal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.3s ease;
}
.legal-close:hover { color: var(--navy); }
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid rgba(179, 146, 92, 0.4);
}
.legal-body h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin: 26px 0 8px;
}
.legal-body p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 12px; }
.legal-body a { color: var(--gold-dark); border-bottom: 1px solid rgba(179, 146, 92, 0.5); }
.legal-body .legal-meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

@media (max-width: 540px) {
  .legal-panel { padding: 38px 24px 34px; margin-top: 5vh; max-height: 90vh; }
}
