/* =========================================
   CERTIBIOCIDE – Global Styles 2026
   ========================================= */

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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --orange: #ea580c;
  --teal: #0d9488;
  --red: #dc2626;
  --dark: #0f172a;
  --mid: #334155;
  --muted: #64748b;
  --light: #f8faff;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(15,23,42,.08);
  --shadow-md: 0 8px 40px rgba(15,23,42,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========== BUTTONS =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .22s ease;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-secondary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-secondary:hover { background: #15803d; border-color: #15803d; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,163,74,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: #eff6ff; }
.btn-full { width: 100%; justify-content: center; }

/* =========== HEADER =========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 12px 20px;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 20px 0 16px;
  box-shadow: 0 4px 24px rgba(15,23,42,.08);
  transition: box-shadow .25s, border-color .25s;
  pointer-events: all;
}
header.scrolled .header-inner {
  box-shadow: 0 8px 40px rgba(15,23,42,.14);
  border-color: #c7d2fe;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--dark);
  white-space: nowrap;
}
.logo span { color: var(--blue); }

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
nav a {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
nav a:hover { color: var(--blue); background: var(--blue-light); }
nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 18px;
  font-weight: 600;
  border-radius: 8px;
}
nav a.nav-cta:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .25s;
  display: block;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; border-radius: 8px; font-size: 15px; }
}

/* =========== HERO =========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  color: #fff;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Hero real photo — right side, faded into gradient */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  right: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-img-overlay img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center top;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 30%, rgba(0,0,0,.75) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 30%, rgba(0,0,0,.75) 100%);
  mix-blend-mode: luminosity;
  opacity: .45;
}
@media (max-width: 768px) {
  .hero-img-overlay img { width: 100%; opacity: .25; }
}
.hero-content { position: relative; text-align: center; }

/* =========== CARDS WITH IMAGE =========== */
.card.card-img {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.card.card-img:hover .card-thumb img { transform: scale(1.05); }
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.card-body .card-link { font-size: .9rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.card-body .card-link:hover { text-decoration: underline; }

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; }
.stat span { font-size: .85rem; opacity: .7; }

.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; }

/* =========== TRUST BAR =========== */
.trust-bar {
  background: var(--white);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.trust-inner .divider { color: var(--border); padding: 0 16px; }

/* =========== SECTIONS =========== */
.section { padding: 80px 0; }
.bg-light { background: var(--light); }
.bg-blue { background: linear-gradient(135deg, #0f172a, #1d4ed8); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-label.light { color: #93c5fd; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}
.section-title.white { color: #fff; }

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* =========== CARDS GRID =========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-blue { border-top-color: var(--blue); }
.card-green { border-top-color: var(--green); }
.card-purple { border-top-color: var(--purple); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.6; margin-bottom: 20px; }
.card-link { font-size: .9rem; font-weight: 600; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* =========== PRICING =========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular { border-color: var(--blue); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-icon { font-size: 2.5rem; margin-bottom: 16px; }
.pricing-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--dark); }
.price-vat { font-size: .85rem; color: var(--muted); }
.price-subtitle { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: .95rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }

.cpf-banner {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cpf-icon { font-size: 2.5rem; flex-shrink: 0; }
.cpf-banner strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cpf-banner p { font-size: .9rem; color: var(--muted); }
.cpf-banner > div { flex: 1; min-width: 200px; }

/* =========== STEPS =========== */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 180px;
  flex: 1;
  min-width: 140px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  flex-shrink: 0;
}
.step-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.step-arrow {
  font-size: 1.6rem;
  color: var(--blue);
  padding: 0 4px;
  margin-top: 14px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .step-arrow { display: none; }
  .steps { gap: 24px; }
  .step { max-width: 100%; min-width: 0; flex-direction: row; align-items: flex-start; text-align: left; }
  .step-num { margin-bottom: 0; margin-right: 16px; flex-shrink: 0; }
}

/* =========== ADVANTAGES =========== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.advantage {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.advantage:hover { transform: translateY(-3px); }
.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.adv-icon.blue { background: #eff6ff; }
.adv-icon.green { background: #f0fdf4; }
.adv-icon.purple { background: #f5f3ff; }
.adv-icon.orange { background: #fff7ed; }
.adv-icon.teal { background: #f0fdfa; }
.adv-icon.red { background: #fef2f2; }
.advantage h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.advantage p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* =========== PROFILES =========== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.profile-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .22s, border-color .22s;
}
.profile-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.profile-emoji { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.profile-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.profile-card p { font-size: .8rem; color: var(--muted); }

/* =========== TESTIMONIALS =========== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
}
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.t-text { font-style: italic; color: var(--mid); font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.t-author strong { font-size: .95rem; }
.t-author small { color: var(--muted); font-size: .8rem; }

/* =========== FAQ =========== */
.faq-container { max-width: 760px; }
.faq-list { margin-top: 8px; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--blue); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: .95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue);
  font-weight: 700;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 24px 18px;
  color: var(--mid);
  font-size: .9rem;
  line-height: 1.7;
}

/* =========== CONTACT =========== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) { .contact-wrapper { grid-template-columns: 1fr; gap: 40px; } }

.contact-info .section-title { color: #fff; }
.white-sub { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; margin-bottom: 28px; }

.contact-details { list-style: none; margin-bottom: 24px; }
.contact-details li { padding: 8px 0; font-size: .95rem; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 10px; }
.contact-details a { color: #93c5fd; }
.contact-details a:hover { text-decoration: underline; }

.contact-guarantees { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-guarantees span { background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 999px; font-size: .8rem; color: rgba(255,255,255,.9); font-weight: 500; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
  width: 100%;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-legal { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* =========== FOOTER =========== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 { color: #e2e8f0; font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .85rem; color: #94a3b8; transition: color .2s; }
.footer-col a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 24px; text-align: center; font-size: .8rem; }
.footer-bottom a { color: #60a5fa; }

/* =========== SESSIONS =========== */
.sessions-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.session-tab {
  padding: 10px 22px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--mid);
  font-family: inherit;
}
.session-tab:hover { border-color: var(--blue); color: var(--blue); }
.session-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.session-table-wrap { display: none; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.session-table-wrap.active { display: block; }

.session-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: .9rem;
}
.session-table thead tr {
  background: var(--blue);
  color: #fff;
}
.session-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.session-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: middle;
}
.session-table td strong { color: var(--dark); font-size: .92rem; }
.session-table td small { color: var(--muted); font-size: .78rem; }
.session-table tbody tr:last-child td { border-bottom: none; }
.session-table tbody tr:nth-child(even) { background: var(--light); }
.session-table tbody tr:hover { background: #eff6ff; }

.btn-reserve {
  display: inline-block;
  background: #f97316;
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-reserve:hover { background: #ea580c; transform: translateY(-1px); }

@media (max-width: 768px) {
  .session-table th:nth-child(1),
  .session-table td:nth-child(1) { display: none; }
  .session-table th, .session-table td { padding: 10px 12px; }
}

/* =========== LEGAL PAGES =========== */
.legal-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 80px 0 50px;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-top: 16px;
}

.legal-body {
  background: #f8faff;
  padding: 60px 0;
}
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
  border-left: 4px solid var(--blue);
}
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 8px;
}
.legal-section p {
  color: var(--mid);
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  margin: 8px 0 14px 20px;
  color: var(--mid);
  font-size: .93rem;
  line-height: 1.75;
}
.legal-section li { margin-bottom: 4px; }
.legal-section a { color: var(--blue); }
.legal-section a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-section { padding: 22px 20px; }
}

/* =========== BACK TO TOP =========== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: var(--shadow-md);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); }

/* =========== BLOG STYLES =========== */
.blog-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.blog-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.blog-hero p { font-size: 1.05rem; opacity: .8; max-width: 560px; margin: 0 auto 28px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 60px 0;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-thumb-link { display: block; overflow: hidden; flex-shrink: 0; }
.blog-card-thumb-img {
  height: 200px;
  display: block;
}
.blog-card-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-thumb-img img { transform: scale(1.06); }
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.blog-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 12px; margin-bottom: 14px; }
.blog-card a.read-more { font-size: .88rem; font-weight: 600; color: var(--blue); }
.blog-card a.read-more:hover { text-decoration: underline; }

/* =========== ARTICLE STYLES =========== */
.article-hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  padding: 70px 0 50px;
  overflow: hidden;
}
/* Photo overlay on article heroes */
.article-hero-img {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .18;
  mix-blend-mode: luminosity;
  display: block;
}
.article-hero .container { max-width: 800px; position: relative; }
.article-hero .blog-tag { background: rgba(255,255,255,.15); color: #fff; }
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.25; margin: 16px 0 12px; }
.article-hero .article-meta { font-size: .85rem; opacity: .75; }

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.article-body h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; color: var(--dark); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; color: var(--dark); }
.article-body p { color: var(--mid); line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; color: var(--mid); line-height: 1.8; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--dark); }
.article-body .highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.article-body .highlight-box p { margin: 0; }

.related-articles {
  background: var(--light);
  padding: 60px 24px;
}
.related-articles h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; }
.related-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.related-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .22s;
}
.related-card:hover { transform: translateY(-3px); }
.related-card .blog-tag { margin-bottom: 8px; }
.related-card h4 { font-size: .9rem; font-weight: 700; line-height: 1.4; color: var(--dark); }
.related-card a { display: flex; flex-direction: column; gap: 6px; }

/* =========== BREADCRUMB =========== */
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }
