/* =========================================================
   PetCoverGurus - styles.css
   Layout, color palette and typography inspired by the clean,
   card-based comparison layout of petinsurancegurus.com:
   - Font: Montserrat
   - Primary blue: #0272E4 (pill buttons, links, highlights)
   - Bold black headings, generous whitespace
   - Rounded, bordered cards with soft shadows
   - Numbered rank badges
   ========================================================= */

:root {
  --color-primary: #0272e4;
  --color-primary-dark: #0159b4;
  --color-ink: #0b0b0c;
  --color-text: #1c1d21;
  --color-muted: #61646b;
  --color-border: #e4e6ea;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f6f8;
  --color-highlight-bg: #fdf3d7;
  --color-highlight-border: #f2dfa4;
  --color-success: #1b9c63;
  --color-badge-bg: #0b0b0c;
  --radius-pill: 99px;
  --radius-card: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 4px rgba(15, 15, 20, 0.04), 0 12px 24px -12px rgba(15, 15, 20, 0.12);
  --shadow-card-hover: 0 6px 12px rgba(15, 15, 20, 0.06), 0 20px 36px -16px rgba(15, 15, 20, 0.18);
  --max-width: 1120px;
  --font-base: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   Icons
   --------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}

button .icon,
a .icon {
  vertical-align: -0.125em;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(2, 114, 228, 0.6);
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-ink);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.brand .paw {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  transform: rotate(-8deg);
}

.brand .brand-uk {
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-ink);
  align-items: center;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 56px 0 40px;
}

.hero-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-updated .icon {
  width: 16px;
  height: 16px;
}

.hero-updated strong {
  color: var(--color-ink);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  max-width: 720px;
}

.hero h1 mark {
  background: #cfe6fb;
  color: var(--color-ink);
  padding: 0 6px;
  border-radius: 4px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  margin-top: 8px;
}

.trust-strip .trust-label {
  font-size: 14px;
  color: var(--color-muted);
  width: 100%;
  margin-bottom: 8px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-ink);
}

.trust-item .trust-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* ---------------------------------------------------------
   Stats bar
   --------------------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 8px;
}

.stat-card {
  background: var(--color-surface-alt);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 760px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------
   Filters
   --------------------------------------------------------- */
.filter-bar-wrap {
  position: sticky;
  top: 68px;
  z-index: 50;
  padding: 14px 0 0;
  margin: 32px 0 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 82%, rgba(255, 255, 255, 0));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.filter-bar-wrap.is-stuck .filter-bar {
  box-shadow: 0 10px 28px -14px rgba(15, 15, 20, 0.22), 0 3px 8px rgba(15, 15, 20, 0.07);
}

.pill-group {
  display: flex;
  gap: 10px;
  background: var(--color-surface-alt);
  padding: 6px;
  border-radius: var(--radius-pill);
}

.pill-btn {
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.pill-btn .icon {
  width: 15px;
  height: 15px;
}

.pill-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.filter-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 600;
}

.filter-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-search .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  width: 16px;
  height: 16px;
}

.sort-select {
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 13.5px;
  background: #fff;
  cursor: pointer;
}

.results-count {
  font-size: 13.5px;
  color: var(--color-muted);
  font-weight: 600;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

/* ---------------------------------------------------------
   Provider cards
   --------------------------------------------------------- */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.provider-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 24px 64px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.provider-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.rank-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-badge-bg);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.provider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.provider-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.provider-logo {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.provider-name-wrap h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-ink);
}

.provider-tagline {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 600;
  max-width: 480px;
}

.provider-score {
  text-align: right;
  min-width: 150px;
}

.stars {
  color: #f2a900;
  display: inline-flex;
  gap: 2px;
}

.stars .icon-star {
  width: 15px;
  height: 15px;
}

.score-caption {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.provider-badge {
  display: inline-block;
  margin-top: 8px;
  background: #eaf3fe;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.provider-desc {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 12px 0 16px;
}

.provider-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0 0 20px;
}

.provider-features li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.provider-features li .icon-check {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--color-success);
  flex-shrink: 0;
}

.provider-features.collapsed li:nth-child(n + 5) {
  display: none;
}

.provider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.toggle-features {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toggle-features .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.toggle-features.expanded .icon {
  transform: rotate(180deg);
}

.get-quote-btn .icon {
  width: 14px;
  height: 14px;
}

.animal-tags {
  display: flex;
  gap: 6px;
}

.animal-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .provider-card {
    padding: 26px 18px 20px 18px;
  }
  .rank-badge {
    top: -14px;
    left: 16px;
  }
  .provider-features {
    grid-template-columns: 1fr;
  }
  .provider-score {
    text-align: left;
  }
}

/* ---------------------------------------------------------
   Highlight banner (social proof / CTA strips)
   --------------------------------------------------------- */
.highlight-banner {
  background: var(--color-highlight-bg);
  border: 1px solid var(--color-highlight-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 48px;
}

/* ---------------------------------------------------------
   Info / content sections (used on index + about)
   --------------------------------------------------------- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-surface-alt);
}

.section-heading {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 0 0 12px;
}

.section-sub {
  color: var(--color-muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 36px;
  line-height: 1.6;
}

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

.why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.why-card .why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card .why-icon .icon {
  width: 22px;
  height: 22px;
}

.why-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
}

.why-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Methodology list
   --------------------------------------------------------- */
.method-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}

.method-list li {
  padding-left: 30px;
  position: relative;
  font-size: 15px;
  line-height: 1.55;
}

.method-list li::before {
  content: counter(m);
  counter-increment: m;
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-list {
  counter-reset: m;
}

@media (max-width: 700px) {
  .method-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--color-ink);
}

.faq-question .chev {
  transition: transform 0.2s ease;
  color: var(--color-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-item.open .faq-question .chev {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0 0 20px;
  padding: 0 4px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   About page specific
   --------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.about-hero img {
  border-radius: 24px;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.about-hero h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.12;
}

.about-hero p {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
}

@media (max-width: 860px) {
  .about-hero {
    grid-template-columns: 1fr;
  }
  .about-hero .about-hero-media {
    order: -1;
  }
}

.about-block {
  max-width: 760px;
  margin: 0 auto 56px;
}

.about-block h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
}

.about-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 16px;
}

.charity-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
}

.charity-chip {
  background: var(--color-surface-alt);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.charity-chip .icon {
  width: 15px;
  height: 15px;
  color: var(--color-primary);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  background: #fff;
}

.value-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.value-card p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.stat-row .stat {
  min-width: 140px;
}

.stat-row .stat .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-primary);
}

.stat-row .stat .lbl {
  font-size: 13.5px;
  color: var(--color-muted);
  font-weight: 700;
  margin-top: 4px;
}

/* ---------------------------------------------------------
   Final CTA
   --------------------------------------------------------- */
.cta-band {
  background: var(--color-ink);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
  margin: 0 24px 64px;
}

.cta-band h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
}

.cta-band p {
  color: #c9cbd1;
  font-size: 15.5px;
  margin: 0 0 24px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 16px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-muted);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.15s ease;
}

.social-circle:hover {
  background: var(--color-primary);
}

.social-circle .icon {
  width: 16px;
  height: 16px;
}

.company-info {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 900px;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
}

.footer-disclaimer {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 900px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Back to top
   --------------------------------------------------------- */
.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  padding: 18px;
  border-radius: var(--radius-pill);
  margin: 0 24px 40px;
  cursor: pointer;
  border: none;
  width: calc(100% - 48px);
  font-family: var(--font-base);
  font-size: 15px;
}

.back-to-top .icon {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------
   Cookie consent banner
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--color-ink);
  color: #fff;
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.cookie-banner-icon .icon {
  width: 20px;
  height: 20px;
}

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-size: 14px;
  line-height: 1.55;
  color: #d7d9de;
}

.cookie-banner-text strong {
  color: #fff;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner .btn-outline:hover {
  border-color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* ---------------------------------------------------------
   Legal pages (Privacy / Terms / Cookies)
   --------------------------------------------------------- */
.legal-hero {
  padding: 48px 0 8px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero .legal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.legal-hero .legal-icon .icon {
  width: 26px;
  height: 26px;
}

.legal-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.15;
}

.legal-updated {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.legal-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 12px;
}

.legal-body h2:first-of-type {
  margin-top: 32px;
}

.legal-body h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 24px 0 10px;
}

.legal-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 16px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body ul li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
}

.legal-body a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin: 24px 0 16px;
}

.legal-contact-card p {
  margin: 0 0 6px;
}

.legal-contact-card p:last-child {
  margin-bottom: 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.cookie-table th {
  font-weight: 800;
  color: var(--color-ink);
  background: var(--color-surface-alt);
}

.cookie-table td {
  color: var(--color-text);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .cookie-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* utility */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}
