/* ============================================================
   JPM MEDIA — THEME D (shared)
   Dark proof hero, light premium body. Scoped to body.theme-d and
   loaded after main.css. Homepage-only sections live in home-d.css.
   Fonts: Sora (display), Public Sans (text), Newsreader (quotes).
   ============================================================ */

.theme-d {
  --bg: #FFFFFF;
  --bg-soft: #F4F5F8;
  --surface: #FFFFFF;
  --ink: #12141A;
  --ink-soft: #545866;
  --ink-faint: #646875;
  --line: #E3E5EA;
  --line-dark: #D3D6DE;
  --accent: #3B4BFF;
  --accent-dark: #2A38E0;
  --accent-soft: #ECEEFF;
  --night: #0B0B10;
  --night-panel: #16161E;
  --night-line: #2A2A36;
  --night-text: #C4C4D0;
  --night-accent: #A9B4FF;
  --hard: none;
  --hard-sm: none;
  --hard-accent: none;
  --hard-hover: none;
  --serif: 'Newsreader', Georgia, serif;
  --display: 'Sora', 'Public Sans', sans-serif;
  background: var(--bg);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* One type system: everything inherits Public Sans unless set below */
.theme-d * { font-family: inherit; }
.theme-d h1, .theme-d h2, .theme-d .hd-display,
.theme-d .nav2-logo, .theme-d .foot2-brand span {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-style: normal;
}
.theme-d h1 { line-height: 0.98; }
.theme-d h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.04; }
.theme-d h3, .theme-d h4 { font-family: 'Public Sans', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.theme-d h1 em, .theme-d h2 em { font-style: normal; color: var(--accent); }
.theme-d .section-head p { color: var(--ink-soft); }

/* No eyebrow labels in this theme: headings carry the section */
.theme-d .eyebrow { display: none; }
.theme-d .section-head h2 { margin-top: 0; }

/* ---------- Buttons and links ---------- */
.hd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 600; font-size: 1.02rem;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease-out);
}
.hd-btn:active { transform: scale(0.97); }
.hd-btn-primary { background: var(--accent); color: #fff; }
.hd-btn-primary:hover { background: var(--accent-dark); }
.hd-btn-ghost { border: 1.5px solid #3A3A48; color: #fff; }
.hd-btn-ghost:hover { border-color: #fff; }
.hd-btn-line { border: 1.5px solid var(--line-dark); color: var(--ink); }
.hd-btn-line:hover { border-color: var(--ink); }
.theme-d .btn { border-radius: 999px; box-shadow: none; border-width: 1.5px; font-weight: 600; }
.theme-d .btn:hover, .theme-d .btn:active { transform: none; box-shadow: none; }
.theme-d .btn-primary { border-color: var(--accent); }
.theme-d .btn-outline { border-color: var(--line-dark); }
.theme-d .btn-outline:hover { border-color: var(--ink); }

.hd-link {
  font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px;
}
.hd-link:hover { color: var(--accent-dark); }

/* ---------- Nav (dark bar on every themed page) ---------- */
body.theme-d .nav2, body.theme-d .nav2.scrolled { background: rgba(11, 11, 16, 0.86); }
.theme-d .nav2::after { background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0)); }
.theme-d .nav2-logo { color: #fff; font-size: 1.15rem; letter-spacing: -0.02em; }
.theme-d .nav2-links a { color: var(--night-text); font-weight: 500; }
.theme-d .nav2-links a:hover, .theme-d .nav2-links a.active { color: #fff; }
/* The Behind the Funnel button keeps its original filled look and its link to btf.jpmmedia.ca */
.theme-d .nav2-links a.nav2-hot { font-weight: 700; }
.theme-d .nav2-cta .btn,
.theme-d .nav2-cta .btn-primary { background: transparent; border: 1.5px solid #fff; color: #fff; }
.theme-d .nav2-cta .btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.theme-d .nav2-burger { border: 0; }
@media (prefers-reduced-transparency: reduce) {
  body.theme-d .nav2, body.theme-d .nav2.scrolled { background: var(--night); }
}
@media (prefers-contrast: more) {
  body.theme-d .nav2, body.theme-d .nav2.scrolled { background: var(--night); border-bottom-color: #fff; }
}

/* ---------- Dark page hero (inner pages) ---------- */
.hd-page-hero { background: var(--night); color: #fff; padding: 168px 0 96px; }
.hd-page-hero h1 { color: #fff; font-size: clamp(2.8rem, 6vw, 5.6rem); max-width: 14em; text-wrap: balance; }
.hd-page-hero h1 span { color: var(--night-accent); }
.hd-page-hero .hd-kicker { margin-top: 26px; font-size: 1.18rem; line-height: 1.55; color: var(--night-text); max-width: 34em; }
.hd-page-hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 56px; align-items: center; }
.hd-page-hero-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.hd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hd-hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; border-top: 1px solid var(--night-line); }
.hd-hero-facts > div { padding: 28px 0 0 28px; border-left: 1px solid var(--night-line); }
.hd-hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.hd-hero-facts b { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; color: #fff; }
.hd-hero-facts span { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--night-text); }

/* ---------- Section rhythm ---------- */
.hd-section { padding: 120px 0; }
.hd-section-soft { background: var(--bg-soft); }
.hd-section-tight { padding: 24px 0 120px; }
.hd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; margin-bottom: 48px; }
.hd-head h2 { max-width: 12em; }
.hd-head p { max-width: 28em; font-size: 1.08rem; line-height: 1.55; }
.hd-pending { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* ---------- Testimonials (shared) ---------- */
.hd-quotes { background: var(--bg-soft); border-radius: 28px; padding: clamp(36px, 5vw, 72px); }
.hd-quotes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.hd-quotes-head h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 13em; }
.hd-quotes-head h2 span { display: block; color: var(--accent); }
.hd-video {
  display: flex; align-items: center; gap: 16px;
  background: var(--night); color: #fff; border-radius: 18px; padding: 16px 24px 16px 16px;
  max-width: 400px; transition: transform 0.15s var(--ease-out), background 0.2s var(--ease);
}
.hd-video:hover { background: #1C1C26; }
.hd-video:active { transform: scale(0.98); }
.hd-video-play { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.hd-video-play svg { width: 18px; height: 18px; margin-left: 3px; fill: #fff; }
.hd-video b { display: block; font-weight: 600; font-size: 1rem; color: #fff; }
.hd-video small { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--night-text); }
.hd-quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; margin-top: 48px; }
.hd-quote { margin: 0; display: flex; flex-direction: column; gap: 22px; justify-content: space-between; }
.hd-quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.42rem; line-height: 1.38; color: var(--ink); }
.hd-quote figcaption { display: flex; align-items: center; gap: 14px; }
.hd-quote figcaption b { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.hd-quote figcaption span span { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.hd-avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em;
  overflow: hidden;
}
.hd-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Existing components, calmer ---------- */
.theme-d .value-card, .theme-d .res-card, .theme-d .mx-card, .theme-d .logo-tile {
  border: 1px solid var(--line); border-radius: 20px; box-shadow: none;
}
.theme-d .value-card:hover, .theme-d .res-card:hover, .theme-d .logo-tile:hover {
  transform: none; box-shadow: none; border-color: var(--line-dark);
}
.theme-d .value-card .vnum { font-family: var(--display); font-style: normal; font-weight: 800; font-size: 1rem; letter-spacing: 0; color: var(--accent); }
.theme-d .team-photo { border: 0; border-radius: 20px; box-shadow: none; }
.theme-d .team-card .role { color: var(--ink-soft); font-weight: 500; }
.theme-d .otl::before { background: var(--line); }
.theme-d .otl-year { font-family: 'Public Sans', sans-serif; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.theme-d .origin-photo img { border: 0; border-radius: 20px; box-shadow: none; }
.theme-d .promo2 { background: var(--night); border-radius: 28px; }
.theme-d .promo2::before { display: none; }
.theme-d .promo2 .big-line { font-family: var(--serif); font-weight: 400; }
.theme-d .promo2 .big-line em { color: var(--night-accent); font-style: italic; }
.theme-d .promo2 .quote-mark { color: var(--night-accent); font-family: var(--serif); }
.theme-d .client-stamp { transform: none; border: 1px solid var(--line-dark); font-weight: 600; font-size: 0.92rem; }
.theme-d .client-stamp:hover { transform: none; }
.theme-d .logo-tile span { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.theme-d .tag { border-radius: 999px; }
.theme-d .free-badge { display: none; } /* the card tag already says it's free */
.theme-d .partner-row-label, .theme-d .clients-band-label { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.95rem; }

/* ---------- Dark closing CTA ---------- */
.hd-contact { background: var(--night); color: #fff; padding: 112px 0 96px; margin-top: 96px; }
.hd-cta { text-align: center; max-width: 780px; margin: 0 auto 48px; }
.hd-cta h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 0.98; }
.hd-cta p { margin-top: 20px; font-size: 1.12rem; color: var(--night-text); }
.hd-cta .hd-hero-actions { justify-content: center; }
.hd-contact-solo .hd-cta { margin-bottom: 0; }
.theme-d .home-cal { background: #fff; border-radius: 20px; padding: 8px; box-shadow: none; }
.theme-d .home-cal-alt { color: var(--ink-soft); padding-bottom: 8px; }

/* ---------- Footer ---------- */
.theme-d .foot2 { background: var(--night); border-top: 1px solid var(--night-line); }
.theme-d .foot2-col h2 { font-family: 'Public Sans', sans-serif; letter-spacing: 0; text-transform: none; font-size: 0.95rem; font-weight: 600; }

/* ---------- Podcast page: same palette and type, dark throughout ---------- */
.theme-d .btfpod {
  --bg: #0B0B10; --bg2: #0B0B10; --card: #16161E; --card-solid: #16161E;
  --line: #2A2A36; --line-soft: #2A2A36;
  --text: #FFFFFF; --muted: #C4C4D0;
  --p: #3B4BFF; --p2: #A9B4FF; --lav: #A9B4FF; --pink: #3B4BFF; --gold: #A9B4FF;
  --grad: linear-gradient(90deg, #A9B4FF, #A9B4FF);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.theme-d.btf-page { background: var(--night); }
.theme-d .btfpod .mesh, .theme-d .btfpod .grain { display: none; }
.theme-d .btfpod h1, .theme-d .btfpod h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.theme-d .btfpod h3, .theme-d .btfpod h4 { font-family: 'Public Sans', sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.theme-d .btfpod .hero { text-align: left; }
.theme-d .btfpod .hero h1 { margin-left: 0; font-size: clamp(2.8rem, 6.4vw, 5.8rem); line-height: 0.98; max-width: 12em; }
.theme-d .btfpod .hero .sub { margin-left: 0; }
.theme-d .btfpod .hero .ctas { justify-content: flex-start; }
.theme-d .btfpod .bp-eyebrow { display: none; }
.theme-d .btfpod .head { text-align: left; margin-left: 0; }
.theme-d .btfpod .head h2 { margin-top: 0; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.theme-d .btfpod .bp-btn-p { background: var(--accent); box-shadow: none; }
.theme-d .btfpod .bp-btn-p:hover { background: var(--accent-dark); box-shadow: none; transform: none; }
.theme-d .btfpod .bp-btn-g:hover { transform: none; border-color: #fff; }
.theme-d .btfpod .stats { margin-left: 0; gap: 0; border-top: 1px solid var(--night-line); }
.theme-d .btfpod .stat { background: none; border: 0; border-left: 1px solid var(--night-line); border-radius: 0; padding: 28px 24px 0; backdrop-filter: none; }
.theme-d .btfpod .stat:first-child { border-left: 0; padding-left: 0; }
.theme-d .btfpod .stat .n { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.theme-d .btfpod .yt .play { background: var(--accent); box-shadow: none; }
.theme-d .btfpod .ep:hover { transform: none; }
.theme-d .btfpod .listen a:hover { transform: none; }
.theme-d .btfpod .host-photo { box-shadow: none; }
.theme-d .btfpod .card .bp-num { font-family: var(--display); color: var(--night-accent); }
@media (max-width: 760px) {
  .theme-d .btfpod .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}


/* ---------- Who We Work With: fit, two ways in, process ---------- */
.ww-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ww-fit-col { border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.ww-fit-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.ww-fit-col h3 svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.ww-fit-col.is-no h3 svg { background: var(--ink-faint); }
.ww-fit-col ul { list-style: none; margin: 20px 0 0; padding: 0; }
.ww-fit-col li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.ww-fit-col.is-no li { color: var(--ink-soft); }
.ww-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ww-path { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ww-path-tag { font-size: 0.84rem; font-weight: 600; color: var(--accent); }
.ww-path h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: 1.8rem; }
.ww-path p { line-height: 1.6; }
.ww-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.ww-steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.ww-step-n { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.ww-steps h3 { margin-top: 16px; font-size: 1.15rem; }
.ww-steps p { margin-top: 8px; line-height: 1.6; }
.theme-d .client-others-head { font-family: 'Public Sans', sans-serif; font-weight: 600; }
@media (max-width: 900px) {
  .ww-fit, .ww-paths { grid-template-columns: 1fr; }
  .ww-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ww-steps { grid-template-columns: 1fr; gap: 32px; }
  .ww-fit-col, .ww-path { padding: 26px 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hd-page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hd-page-hero-grid img { max-width: 360px; }
  .hd-quote-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hd-page-hero { padding: 124px 0 72px; }
  .hd-page-hero .hd-kicker { font-size: 1.06rem; }
  .hd-hero-actions .hd-btn { flex: 1 1 100%; }
  .hd-hero-facts { grid-template-columns: 1fr; margin-top: 48px; }
  .hd-hero-facts > div, .hd-hero-facts > div:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--night-line); }
  .hd-hero-facts > div:first-child { border-top: 0; }
  .hd-section { padding: 80px 0; }
  .hd-section-tight { padding: 8px 0 80px; }
  .hd-quote-grid { grid-template-columns: 1fr; gap: 36px; }
  .hd-quote blockquote { font-size: 1.28rem; }
  .hd-contact { padding: 80px 0 64px; margin-top: 64px; }
  .theme-d .home-cal { padding: 2px; border-radius: 14px; }
}

/* ---------- Small fixes ---------- */
.theme-d .btfpod .head { margin-left: 0 !important; }
.theme-d .btfpod .ticks { padding: 0; }
.theme-d .text-btf-purple { color: var(--accent); }
.theme-d .r2-pop.in { transform: none; }

/* ---------- Book a Call ---------- */
.hd-book-hero { padding-bottom: 72px; }
.hd-book-hero .book-path { background: var(--night-panel); color: var(--night-accent); border: 1px solid var(--night-line); font-weight: 600; }
.theme-d .book-wrap { padding-top: 72px; padding-bottom: 120px; }
.theme-d .book-side-title { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; }
.theme-d .book-steps li::before { font-family: var(--display); background: var(--accent); }
.theme-d .book-person { border: 1px solid var(--line); border-radius: 16px; }
.theme-d .book-cal, .theme-d .home-cal { border: 1px solid var(--line); box-shadow: none; border-radius: 20px; }
@media (max-width: 900px) {
  .theme-d .book-cal, .theme-d .home-cal { box-shadow: none; }
}

/* ---------- Book a Call qualifier (js/qualify.js) ---------- */
.bq { padding: clamp(20px, 3vw, 36px); color: var(--ink); text-align: left; }
.bq h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; color: var(--ink); }
.bq h3:focus { outline: none; }
.bq-head p, .bq-yes > p, .bq-no > p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.bq-form { margin-top: 24px; }
.bq-head[hidden], .bq-form[hidden], .bq-yes[hidden], .bq-no[hidden] { display: none; }
.bq-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bq-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.35s var(--ease-out); }
.bq-count { margin-top: 14px; font-size: 0.84rem; font-weight: 600; color: var(--ink-faint); }
.bq-q { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
.bq-q legend { padding: 0; font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.bq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.bq-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bq-opt {
  display: flex; align-items: center; min-height: 56px; padding: 12px 18px;
  border: 1.5px solid var(--line-dark); border-radius: 14px; cursor: pointer;
  font-weight: 500; color: var(--ink); background: var(--surface);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.12s var(--ease-out);
}
.bq-opt:hover { border-color: var(--ink); }
.bq-opt:active { transform: scale(0.98); }
.bq-opts input:checked + .bq-opt { border-color: var(--accent); background: var(--accent-soft); }
.bq-opts input:focus-visible + .bq-opt { outline: 3px solid var(--accent); outline-offset: 2px; }
.bq-back { margin-top: 18px; padding: 8px 0; border: 0; background: none; font-weight: 600; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.bq-back[hidden] { display: none; }
.bq-yes iframe { margin-top: 18px; display: block; }
.bq-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.bq-small { margin-top: 18px !important; font-size: 0.9rem !important; }
.bq-small a { color: var(--accent); text-decoration: underline; }
.theme-d .book-cal { padding: 0; }
.theme-d .home-cal { padding: 0; }
.theme-d .home-cal .home-cal-alt { padding: 0 0 18px; }
@media (max-width: 560px) {
  .bq-opts { grid-template-columns: 1fr; }
  .bq-actions .hd-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bq-bar i, .bq-opt { transition: none; }
}

/* ---------- Older page templates (contact, blog, legal): map their colour names to the theme ---------- */
.theme-d {
  --navy: var(--ink);
  --gray-100: var(--line);
  --gray-200: var(--line-dark);
  --gray-600: var(--ink-soft);
  --gray-800: var(--ink);
  --blue-dark: var(--accent);
  --blue-mid: var(--accent);
  --blue-mist: var(--accent-soft);
  --blue-pale: #D6DAFF;
  --off-white: var(--bg);
  --font-serif: var(--display);
}

/* ---------- Contact ---------- */
.theme-d .contact-page { padding: 88px 0 120px; background: var(--bg); }
.theme-d .contact-intro p:first-child { margin-top: 0; }
.theme-d .cform { border-radius: 20px; box-shadow: none; border-color: var(--line); }
.theme-d .cform-done h2 { font-family: var(--display); letter-spacing: -0.03em; }

/* ---------- Legal pages ---------- */
.hd-legal-hero { padding-bottom: 72px; }
.hd-legal-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.hd-legal { padding: 80px 0 120px; }
.hd-legal .container { max-width: 820px; }
.hd-legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 44px 0 14px; letter-spacing: -0.03em; }
.hd-legal p, .hd-legal li { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.hd-legal p { margin: 0 0 14px; }
.hd-legal ul, .hd-legal ol { margin: 0 0 16px; padding-left: 22px; }
.hd-legal li { margin-bottom: 6px; }
.hd-legal strong { color: var(--ink); }
.hd-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hd-legal .legal-divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0 0; }

/* ---------- Blog ---------- */
.bl-feature { max-width: 860px; }
.bl-feature h2 { margin-top: 14px; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.bl-feature > p:not(.bl-meta) { margin-top: 16px; font-size: 1.1rem; line-height: 1.6; max-width: 40em; }
.bl-cat { display: inline-block; font-size: 0.84rem; font-weight: 600; color: var(--accent); }
.bl-meta { margin-top: 10px; font-size: 0.9rem; color: var(--ink-faint); }
.bl-soon { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; }
.bl-card h3 { margin-top: 12px; font-size: 1.2rem; line-height: 1.3; }
.bl-card > p:not(.bl-meta) { margin-top: 12px; font-size: 0.98rem; line-height: 1.6; flex: 1; }
.bl-card .bl-soon { margin-top: 20px; }
@media (max-width: 1000px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .bl-grid { grid-template-columns: 1fr; }
  .hd-legal { padding: 56px 0 80px; }
  .theme-d .contact-page { padding: 56px 0 80px; }
}
