/* ============================================================
   Kangnengxing — Design System
   Clean white + medical blue, image-driven product grid
   ============================================================ */

:root {
  --primary: #1B66E0;
  --primary-dark: #1450B5;
  --primary-deep: #0E3F8C;
  --primary-soft: #1B66E014;
  --primary-50: #EAF2FF;
  --primary-100: #D6E6FF;
  --ink: #0E2A5C;
  --text: #1F2937;
  --muted: #6B7280;
  --muted-2: #9AA3B2;
  --bg: #ffffff;
  --bg-soft: #F7F9FC;
  --bg-tint: #F2F6FC;
  --border: #E5E9F0;
  --border-strong: #D1D8E3;
  --dark: #0E2A5C;
  --dark-hover: #0a1f44;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 92, 0.06);
  --shadow: 0 4px 16px rgba(14, 42, 92, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 42, 92, 0.12);
  --container: 1200px;
  --surface: #F2F6FC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--white { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; border: 2px solid transparent; transition: all .18s ease; white-space: nowrap; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }

/* Top bar */
.topbar { background: var(--ink); color: #C8D2E2; font-size: 13px; padding: 9px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #D6E6FF; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }

/* Logo row (standalone, left-floating logo + two-line brand text) */
.header-top { background: #fff; border-bottom: 1px solid var(--border); }
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--surface); border: 1px solid var(--border); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-name { font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: .2px; white-space: nowrap; }
.brand-sub { font-size: 13px; color: var(--muted); letter-spacing: .5px; white-space: nowrap; }

/* Navigation bar (standalone row below logo) */
.nav-bar { background: #fff; border-bottom: 1px solid var(--border); }
.nav-bar-inner { display: flex; align-items: center; }
.nav { display: flex; align-items: center; gap: 4px; padding: 10px 0; }
.nav a { padding: 9px 18px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--primary-dark); background: var(--primary-50); }
.nav a.active { color: var(--primary-dark); background: var(--primary-50); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; }
.lang-toggle:hover { border-color: var(--primary); color: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 20px; }

/* Sticky collapse: on scroll, collapse topbar + logo row, keep only the nav bar */
.topbar, .header-top { overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.topbar { max-height: 60px; }
.header-top { max-height: 120px; }
.site-header.scrolled .topbar,
.site-header.scrolled .header-top { max-height: 0; opacity: 0; border-bottom-color: transparent; }
.site-header.scrolled .nav-bar { box-shadow: 0 6px 20px rgba(14, 42, 92, 0.08); }

/* Hero */
.hero { background: radial-gradient(900px 400px at 90% 10%, var(--primary-50), transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.02em; margin: 8px 0 20px; line-height: 1.12; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-bullets { margin-top: 32px; display: grid; gap: 12px; }
.hero-bullets li { list-style: none; display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); font-weight: 500; }
.hero-bullets li .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-top: 1px; }
.hero-bullets li .tick svg { width: 12px; height: 12px; }

.hero-visual { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--border); aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual img { width: 86%; height: 86%; object-fit: contain; }
.hero-badge { position: absolute; top: 20px; left: 20px; background: var(--primary-50); color: var(--primary-dark); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .5px; text-transform: uppercase; }
.hero-floating { position: absolute; right: -12px; bottom: 24px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.hero-floating b { display: block; font-size: 18px; color: var(--ink); }
.hero-floating span { font-size: 12.5px; color: var(--muted); }
.hero-floating .dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #16a34a20; }

/* Stats */
.stats { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 36px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Product card */
.pcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.pcard .thumb { aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; position: relative; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .thumb img { transform: scale(1.04); }
.pcard .cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--primary-dark); font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: .3px; }
.pcard .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard h3 { font-size: 16.5px; }
.pcard .desc { color: var(--muted); font-size: 13.5px; flex: 1; line-height: 1.55; }
.pcard .price { color: var(--primary); font-weight: 800; font-size: 18px; }
.pcard .foot { display: flex; gap: 8px; margin-top: 4px; }
.pcard .foot .btn { flex: 1; padding: 10px 12px; font-size: 13px; }

/* Hot sales */
.hot-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 48px 0; }
.hot-row.reverse { grid-template-columns: .95fr 1.05fr; }
.hot-row.reverse .hot-media { order: 2; }
.hot-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 1/1; display: grid; place-items: center; border: 1px solid var(--border); }
.hot-media img { width: 100%; height: 100%; object-fit: cover; }
.hot-info .eyebrow { color: var(--primary); }
.hot-info h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.hot-info .price-line { margin: 8px 0 14px; }
.hot-info .price-line .price { color: var(--primary); font-weight: 800; font-size: 22px; }
.hot-info .price-line .from { color: var(--muted); font-size: 14px; margin-right: 6px; }
.hot-info p.lead { color: var(--muted); margin-bottom: 18px; }
.hot-list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.hot-list li { display: flex; gap: 8px; font-size: 14.5px; color: var(--text); }
.hot-list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 800; flex: none; font-size: 11px; display: grid; place-items: center; }
.hot-list li { align-items: center; }
.hot-list li::before { content: "✓"; }
.hot-info .btn { padding: 13px 26px; }

/* Feature card */
.fcard { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.fcard .icon { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.fcard .icon svg { width: 24px; height: 24px; }
.fcard h3 { font-size: 17px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 14.5px; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-split .media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.about-split .media img { width: 100%; height: 100%; object-fit: cover; }
.about-split h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.about-split p { color: var(--text); margin-bottom: 14px; font-size: 15.5px; }
.about-split .btn { margin-top: 14px; }

/* Filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.chip { padding: 9px 20px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Page hero */
.page-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 64px 0 44px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

/* Product detail */
.pd-grid { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: start; }
.pd-info { grid-column: 1 / -1; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 540px; overflow-y: auto; padding: 2px; scroll-behavior: smooth; }
.pd-thumbs::-webkit-scrollbar { width: 3px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.pd-thumbs::-webkit-scrollbar-track { background: transparent; }
.pd-thumb { padding: 0; background: var(--bg-soft); border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .18s ease, border-color .18s ease; border: 2px solid transparent; }
.pd-thumb:hover { opacity: .9; }
.pd-thumb.active { opacity: 1; border-color: var(--primary); }
.pd-thumb img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.pd-main { background: var(--bg-soft); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.pd-main-img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 720px) {
  .pd-grid { grid-template-columns: 68px 1fr; gap: 16px; }
}
@media (min-width: 1024px) {
  .pd-grid { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .pd-info { grid-column: auto; }
}
.pd-info .cat { color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
.pd-info h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 8px 0 14px; }
.pd-info .price { color: var(--primary); font-weight: 800; font-size: 26px; margin-bottom: 18px; }
.pd-info .desc { color: var(--text); font-size: 16px; margin-bottom: 22px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pd-tags span { background: var(--primary-50); color: var(--primary-dark); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.feature-list { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: 800; flex: none; margin-top: 1px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--bg-soft); color: var(--muted); font-weight: 600; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label .req { color: #DC2626; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 15px; color: var(--ink); padding: 13px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-success { display: none; background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; }
.form-success.show { display: block; }
.form-error { color: #DC2626; font-size: 13px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: 56px 32px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.cta-band p { opacity: .92; max-width: 560px; margin: 0 auto 26px; font-size: 16px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 22px; font-size: 15.5px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .ar { color: var(--primary); font-size: 20px; transition: transform .2s; flex: none; }
.faq-item.open .faq-q .ar { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-methods { display: grid; gap: 18px; }
.cmethod { display: flex; gap: 14px; align-items: flex-start; }
.cmethod .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.cmethod .ic svg { width: 20px; height: 20px; }
.cmethod b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.cmethod span, .cmethod a { color: var(--muted); font-size: 14px; }
.cmethod a:hover { color: var(--primary-dark); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.gallery .g-main { grid-row: span 2; aspect-ratio: 4/5; }
.gallery .g { aspect-ratio: 1/1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* Footer */
.site-footer { background: var(--ink); color: #C8D2E2; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.site-footer a { color: #C8D2E2; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-brand .brand-name { color: #fff; font-size: 22px; }
.footer-brand p { font-size: 14.5px; opacity: .85; margin: 14px 0 18px; max-width: 300px; line-height: 1.6; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #C8D2E2; }
.footer-socials a:hover { background: var(--primary); color: #fff; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8a96ad; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 20px; box-shadow: var(--shadow-lg); display: none; }
.to-top.show { display: block; }
.to-top:hover { background: var(--primary-dark); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .pd-grid, .contact-grid { grid-template-columns: 1fr; }
  .hot-row, .hot-row.reverse { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; }
  .hot-row.reverse .hot-media { order: 0; }
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 2px; }
}
@media (max-width: 720px) {
  .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .site-header.scrolled .topbar,
  .site-header.scrolled .header-top { max-height: none; opacity: 1; }
  .brand-logo { width: 44px; height: 44px; border-radius: 12px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 11.5px; }
  .header-top-inner { padding: 14px 0; }
  .nav-bar-inner { display: block; }
  .nav { display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .header-actions .btn--primary { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-main { grid-row: auto; aspect-ratio: 16/10; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .hero-floating { display: none; }
}

/* ============================================================
   Legal pages (Privacy Policy / Terms)
   ============================================================ */
html[lang="zh"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="zh"] { display: none !important; }

.legal { max-width: 800px; margin: 0 auto; }
.legal .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 28px; }
.legal h2 {
  font-size: 19px; font-weight: 600; color: var(--ink);
  margin: 36px 0 12px; padding-top: 22px; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 15.5px; font-weight: 600; color: var(--ink); margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--primary-dark); }
.legal strong { color: var(--text); font-weight: 600; }

/* ============================================================
   Cookie consent banner (Google Consent Mode v2)
   ============================================================ */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(14, 42, 92, 0.1);
  padding: 16px 0;
}
.cc-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.cc-text { flex: 1 1 420px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.cc-text a { color: var(--primary-dark); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex: none; }
.cc-btn {
  border: 1px solid var(--border-strong); background: #fff; color: var(--ink);
  border-radius: var(--radius-sm); padding: 9px 18px; font-size: 13.5px;
  font-family: var(--font); cursor: pointer; font-weight: 500;
}
.cc-btn:hover { border-color: var(--primary); color: var(--primary); }
.cc-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cc-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
@media (max-width: 600px) {
  .cc-inner { flex-direction: column; align-items: stretch; }
  .cc-actions { width: 100%; }
  .cc-btn { flex: 1; }
}
