/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --coral: #FF6B4A;
  --coral-dark: #E85A3A;
  --coral-light: #FFF0ED;
  --dark: #1A1A2E;
  --dark-mid: #2D2D44;
  --grey-800: #333;
  --grey-600: #555;
  --grey-400: #999;
  --grey-200: #E5E5E5;
  --grey-100: #F5F5F7;
  --white: #FFFFFF;
  --green: #22C55E;
  --red: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 40px rgba(0,0,0,0.08);
  --max-width: 1120px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-dark); }

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

/* ===== Header ===== */
/* Affiliate disclosure banner */
.affiliate-banner {
  background: #f5f5f3; text-align: center; padding: 6px 16px;
  font-size: 12px; color: #888; line-height: 1.4;
}
.affiliate-banner a { color: #888; text-decoration: underline; }
.affiliate-banner a:hover { color: var(--coral); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.logo { margin-right: 48px; flex-shrink: 0; }
.logo-dot { color: var(--coral); }

/* Search bar */
.search-wrap {
  position: relative; flex: 1; max-width: 440px;
}
.search-input {
  width: 100%; height: 32px; font-size: 12px; font-family: inherit;
  border: 1.5px solid #eee; border-radius: 8px; background: #fafaf8;
  padding: 0 28px 0 30px; outline: none; transition: all 0.15s;
}
.search-input:focus { border-color: #FF6B4A; background: #fff; }
.search-input::placeholder { color: #bbb; }
.search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 16px; color: #bbb; cursor: pointer;
  display: none; padding: 0 4px; line-height: 1;
}
.search-clear.visible { display: block; }
.search-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 4px; background: #fff; border: 1px solid #eee; border-radius: 10px;
  max-height: 400px; overflow-y: auto; z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.search-dropdown.open { display: block; }
.search-result {
  padding: 10px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer;
  transition: background 0.1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: #fff5f3; }
.search-result-name {
  font-size: 13px; font-weight: 500; color: #1a1a1a;
}
.search-result-name mark {
  background: none; color: #FF6B4A; font-weight: 600;
}
.search-result-crumb {
  font-size: 11px; color: #999; margin-top: 2px;
}
.search-empty {
  padding: 14px; font-size: 12px; color: #999; text-align: center;
}
@media (max-width: 767px) {
  .site-header .container {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 56px;
    padding: 10px 16px 10px !important;
    align-items: center;
  }
  .logo {
    margin-right: auto !important;
    flex-shrink: 0;
  }
  .nav-toggle {
    display: block !important;
    flex-shrink: 0;
    order: 2;
  }
  .search-wrap {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 10;
    padding: 6px 0 4px;
    box-sizing: border-box;
    margin-top: 0;
  }
  .search-wrap .search-input {
    width: 100% !important;
    font-size: 16px;
    height: 36px;
  }
  .nav-links { display: none !important; }
}

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; margin-left: auto; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-400);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--coral); }

/* Mobile nav toggle — hidden on desktop */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0;
  transition: var(--transition); border-radius: 2px;
}

/* Mobile drawer content styling */
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px; border-bottom: 1px solid #f0f0f0; margin-bottom: 4px;
}
.drawer-logo { font-size: 1.25rem; font-weight: 800; color: var(--dark); letter-spacing: -0.03em; }
.drawer-logo span { color: var(--coral); }
.drawer-close {
  background: none; border: none; font-size: 24px; color: #999; cursor: pointer;
  padding: 0 4px; line-height: 1;
}
.drawer-close:hover { color: var(--dark); }
.drawer-cats { list-style: none; padding: 0; margin: 0; }
.drawer-item { border-bottom: 1px solid #f0f0f0; }
.drawer-item.muted { opacity: 0.35; }
.drawer-row {
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-pname {
  flex: 1; display: block;
  font-size: 16px; font-weight: 500; color: var(--dark);
  padding: 14px 0 14px 16px; text-decoration: none;
  transition: background 0.15s;
}
a.drawer-pname:hover { background: #fff5f3; }
.drawer-arrow {
  font-size: 14px; color: var(--coral); padding: 14px 16px; cursor: pointer;
  transition: transform 0.2s; user-select: none;
}
.drawer-item.open .drawer-arrow { transform: rotate(90deg); }
.drawer-subs {
  display: none; list-style: none; padding: 0 0 8px; margin: 0;
}
.drawer-item.open .drawer-subs { display: block; }
.drawer-subs li a {
  display: block; font-size: 14px; font-weight: 400; color: #666;
  padding: 10px 16px 10px 32px; text-decoration: none;
  transition: background 0.15s;
}
.drawer-subs li a:hover { background: #fff5f3; color: var(--coral); }
.drawer-footer {
  padding: 16px; border-top: 1px solid #f0f0f0; margin-top: 8px;
  display: flex; gap: 16px;
}
.drawer-footer a {
  font-size: 13px; font-weight: 500; color: #999; text-decoration: none;
}
.drawer-footer a:hover { color: var(--coral); }

@media (min-width: 768px) {
  #mobile-drawer { display: none !important; }
  #drawer-overlay { display: none !important; }
  .nav-toggle { display: none !important; }
}

/* ===== Sidebar Layout (Page Types 2 & 3) ===== */
.page-with-sidebar {
  display: flex; max-width: var(--max-width); margin: 0 auto; min-height: calc(100vh - 56px);
}
.sidebar {
  width: 200px; min-width: 200px; background: var(--white); border-right: 1px solid #eee;
  padding: 16px 12px; position: sticky; top: 56px; height: fit-content;
  max-height: calc(100vh - 56px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #ddd transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* Level 1: Parent categories */
.sb-section { margin-bottom: 1px; }
.sb-parent {
  display: flex; align-items: center; gap: 5px; padding: 8px 12px 8px 14px; border-radius: 6px;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  font-family: inherit; transition: background 0.15s; text-decoration: none; color: inherit;
}
.sb-parent:hover { background: #f5f5f3; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.sb-dot-live { background: #FF6B4A; }
.sb-dot-soon { background: #ddd; }
.sb-arrow {
  font-size: 0.5rem; color: #999; transition: transform 0.15s; flex-shrink: 0; width: 10px; text-align: center;
}
.sb-section.open .sb-arrow { transform: rotate(90deg); }
.sb-pname {
  font-size: 13px; font-weight: 600; color: #1a1a1a; flex: 1; min-width: 0;
  line-height: 1.3;
}
.sb-section.open .sb-pname { color: #FF6B4A; }
.sb-section.open .sb-parent { background: #fff8f6; }

/* Level 1 children container */
.sb-l1-children { list-style: none; padding: 2px 0 6px 0; display: none; }
.sb-section.open .sb-l1-children { display: block; }

/* Level 2: Sub-department section headers */
.sb-l2-section { list-style: none; border-top: 1px solid #f0f0f0; }
.sb-l2-section:first-child { border-top: none; }
.sb-l2-header {
  padding: 7px 12px 5px 26px; transition: background 0.15s;
}
.sb-l2-header:hover { background: #f5f5f3; }
.sb-l2-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: #888; text-decoration: none; display: block; transition: color 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.sb-l2-label:hover { color: #FF6B4A; }
.sb-l2-section.open .sb-l2-label { color: #FF6B4A; }
.sb-l2-label.active { color: #FF6B4A; }

/* Level 2 children container — always visible when parent section is open */
.sb-l2-items { list-style: none; padding: 0 0 4px 0; display: none; }
.sb-l2-section.open > .sb-l2-items { display: block; }

/* Depth 3: Sub-sub-categories (children of depth 2) */
.sb-d3 { margin-bottom: 0; list-style: none; }
.sb-d3 > a, .sb-d3 > .sb-d3-header > a {
  display: block; font-size: 12px; font-weight: 400; color: #555; padding: 5px 12px 5px 36px;
  text-decoration: none; transition: all 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-d3 > a:hover, .sb-d3 > .sb-d3-header > a:hover { background: #f5f5f3; color: #FF6B4A; }
.sb-d3 > a.active, .sb-d3 > .sb-d3-header > a.active {
  color: #FF6B4A; font-weight: 500; background: #fff5f3;
  border-left: 2px solid #FF6B4A; padding-left: 34px;
}
.sb-d3 > .muted, .sb-d3 > .sb-d3-header > .muted {
  display: block; font-size: 12px; color: #555; font-weight: 400; padding: 5px 12px 5px 36px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Depth 3 collapsible group (has depth 4 children) */
.sb-d3-header { cursor: pointer; }
.sb-d3-children { list-style: none; padding: 0; display: none; }
.sb-d3-group.open > .sb-d3-children { display: block; }

/* Depth 4: Leaf sub-categories (children of depth 3) */
.sb-d4 { margin-bottom: 0; list-style: none; }
.sb-d4 a {
  display: block; font-size: 11px; font-weight: 400; color: #555; padding: 4px 12px 4px 46px;
  text-decoration: none; transition: all 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-d4 a:hover { background: #f5f5f3; color: #FF6B4A; }
.sb-d4 a.active {
  color: #FF6B4A; font-weight: 500; background: #fff5f3;
  border-left: 2px solid #FF6B4A; padding-left: 44px;
}
.sb-d4 .muted {
  display: block; font-size: 11px; color: #555; font-weight: 400; padding: 4px 12px 4px 46px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Coming soon message */
.sb-coming-soon {
  font-size: 11px; color: #bbb; font-style: italic; padding: 4px 12px 8px 26px;
}

.page-content { flex: 1; min-width: 0; padding: 0 24px; }

.sidebar-toggle {
  display: none; background: none; border: 1px solid #eee; border-radius: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: #555;
  cursor: pointer; margin: 12px 24px 0;
}
@media (max-width: 768px) {
  .page-with-sidebar { flex-direction: column; }
  .sidebar {
    display: none; width: 100%; min-width: 100%; position: static; max-height: none;
    border-right: none; border-bottom: 1px solid #eee; padding: 12px 16px;
  }
  .sidebar.open { display: block; }
  .sidebar-toggle { display: block; }
  .page-content { padding: 0 24px; }
}

/* ===== Homepage Hero ===== */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 660px;
  margin: 0 auto 16px;
}
.hero h1 .accent { color: var(--coral); }
.hero p {
  font-size: 1.05rem;
  color: var(--grey-600);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Homepage Category Grid ===== */
.section { padding: 48px 0 64px; }
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .dept-grid { grid-template-columns: 1fr; } }

.dept-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  transition: all var(--transition); text-decoration: none; color: inherit;
}
.dept-card-live {
  background: #fff8f6;
  border-left: 3px solid var(--coral);
}
.dept-card-live:hover {
  border-color: var(--coral); border-left-color: var(--coral-dark);
  box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit;
}
.dept-card-live h3 {
  font-size: 15px; font-weight: 700; color: #1a1a1a;
}
.dept-card-soon {
  background: #fafafa;
  opacity: 0.55; pointer-events: none;
}
.dept-card-body { min-width: 0; flex: 1; }
.dept-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.dept-card .dept-meta { font-size: 0.75rem; color: var(--grey-400); display: block; }
.dept-card .dept-live-dot {
  display: inline-block; width: 7px; height: 7px; background: var(--coral);
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.dept-card .dept-soon-tag {
  font-size: 0.65rem; color: var(--grey-400); font-weight: 500;
  background: var(--grey-100); padding: 2px 8px; border-radius: 100px;
}

/* ===== Category Landing (Page Type 2) ===== */
.landing-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--grey-200);
}
.breadcrumb {
  font-size: 0.82rem; color: var(--grey-400); margin-bottom: 10px;
}
.breadcrumb a { color: var(--grey-400); }
.breadcrumb a:hover { color: var(--coral); }
.landing-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800; color: var(--dark); letter-spacing: -0.02em;
}

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 28px 0 64px;
}
@media (max-width: 640px) { .subcat-grid { grid-template-columns: 1fr; } }

.subcat-card {
  display: flex; gap: 14px; padding: 18px; background: var(--white);
  border: 1px solid var(--grey-200); border-radius: var(--radius);
  transition: all var(--transition); text-decoration: none; color: inherit;
}
.subcat-card:hover {
  border-color: var(--coral); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit;
}
.subcat-card.muted { opacity: 0.45; pointer-events: none; }
.subcat-card-thumb {
  width: 64px; height: 64px; min-width: 64px; border-radius: var(--radius-sm);
  background: var(--grey-100); overflow: hidden; display: flex;
  align-items: center; justify-content: center;
}
.subcat-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.subcat-card-body { min-width: 0; flex: 1; }
.subcat-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.subcat-card .subcat-preview {
  font-size: 0.75rem; color: var(--grey-600); display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.subcat-card .subcat-preview strong { color: var(--coral); }
.subcat-card .subcat-cta {
  font-size: 0.75rem; font-weight: 600; color: var(--coral); margin-top: 4px; display: block;
}

/* ===== Sub-category Page (Page Type 3) ===== */
.category-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--grey-200);
}
.category-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800; color: var(--dark); letter-spacing: -0.02em; margin-bottom: 4px;
}
.category-meta { font-size: 0.85rem; color: var(--grey-400); }

/* Product List */
.product-list { padding: 24px 0 64px; }
.product-card {
  display: grid; grid-template-columns: 60px 120px 1fr 140px; gap: 0;
  align-items: center; padding: 20px 0; border-bottom: 1px solid var(--grey-200);
}
.product-rank { width: 60px; text-align: center; }
.rank-number { font-size: 1.75rem; font-weight: 800; color: var(--coral); line-height: 1; letter-spacing: -0.03em; }

.product-image {
  width: 120px; height: 120px; min-width: 120px; min-height: 120px;
  max-width: 120px; max-height: 120px; object-fit: contain;
  background: white; border: 1px solid #eee; border-radius: 4px; display: block;
}
.product-image-link { display: block; width: 120px; height: 120px; flex-shrink: 0; }
.product-image-fallback {
  width: 120px; height: 120px; min-width: 120px; min-height: 120px;
  max-width: 120px; max-height: 120px; background: var(--grey-200);
  border: 1px solid #eee; border-radius: 4px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  font-weight: 800; color: var(--coral); letter-spacing: -0.03em;
}

.product-info { padding: 0 16px; }
.product-info h3 { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; line-height: 1.4; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--coral); }
.product-rating { display: block; font-size: 0.8rem; color: var(--grey-400); margin-top: 2px; }
.product-signals { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.signal {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem;
  font-weight: 600; padding: 3px 10px; border-radius: 100px; line-height: 1; white-space: nowrap;
}
.signal-movement.up { background: #ECFDF5; color: var(--green); }
.signal-movement.down { background: #FEF2F2; color: var(--red); }
.signal-movement.same { background: var(--grey-100); color: var(--grey-400); }
.signal-tenure { background: var(--grey-100); color: var(--grey-600); font-weight: 500; }
.product-explainer { margin-top: 6px; font-size: 0.7rem; color: var(--grey-400); font-style: italic; line-height: 1.4; }

.product-action { width: 140px; text-align: right; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: 0.8rem;
  font-weight: 600; transition: all var(--transition); cursor: pointer;
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,74,0.3); }

@media (max-width: 768px) {
  .product-card {
    display: grid; grid-template-columns: 80px 1fr; grid-template-rows: auto auto auto;
    gap: 0 10px; padding: 16px 0;
  }
  .product-rank {
    grid-column: 1 / -1; width: auto; text-align: left; padding: 0 0 6px;
  }
  .rank-number { font-size: 1.1rem; }
  .product-image, .product-image-link, .product-image-fallback {
    width: 80px; height: 80px; min-width: 80px; min-height: 80px; max-width: 80px; max-height: 80px;
    grid-row: 2;
  }
  .product-info { grid-row: 2; padding: 0; align-self: center; }
  .product-action { grid-column: 1 / -1; width: 100%; text-align: center; margin-top: 8px; }
  .btn { width: 100%; justify-content: center; }
  .product-signals { gap: 6px; }
  .signal { font-size: 0.7rem; padding: 2px 8px; }
}

/* ===== Trending Page ===== */
.trending-hero { padding: 48px 0 24px; text-align: center; }
.trending-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--dark);
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.trending-hero p { font-size: 1rem; color: var(--grey-400); }

.trending-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  padding: 32px 0 64px;
}
@media (max-width: 768px) { .trending-grid { grid-template-columns: 1fr; } }

.trending-card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 20px 24px; transition: all 0.15s;
}
.trending-card:hover { border-color: var(--coral); box-shadow: var(--shadow); }

.trending-dept {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--coral); margin-bottom: 6px;
}
.trending-cat {
  font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px;
}
.trending-cat a { color: var(--dark); text-decoration: none; }
.trending-cat a:hover { color: var(--coral); }

.trending-product {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--grey-100);
}
.trending-product-img {
  width: 48px; height: 48px; min-width: 48px; border-radius: 6px;
  background: var(--grey-100); overflow: hidden;
}
.trending-product-img img { width: 100%; height: 100%; object-fit: contain; }
.trending-product-info { flex: 1; min-width: 0; }
.trending-product-name {
  font-size: 12px; color: var(--grey-600); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trending-rank-change {
  font-size: 13px; font-weight: 700; color: var(--coral); flex-shrink: 0;
}
.trending-cta {
  display: block; margin-top: 12px; font-size: 12px; font-weight: 600;
  color: var(--coral); text-decoration: none;
}
.trending-cta:hover { color: var(--coral-dark); }

/* ===== Footer ===== */
.site-footer {
  background: var(--grey-100); border-top: 1px solid var(--grey-200);
  padding: 24px 0; text-align: center;
}
.site-footer p {
  font-size: 0.78rem; color: var(--grey-400); line-height: 1.8;
}
.site-footer a { color: var(--grey-600); text-decoration: underline; }
.site-footer a:hover { color: var(--coral); }

/* ===== Legal Pages ===== */
.legal-page { padding: 48px 0 80px; max-width: 720px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; letter-spacing: -0.02em; }
.legal-page .last-updated { font-size: 0.875rem; color: var(--grey-400); margin-bottom: 40px; }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.legal-page p, .legal-page li { font-size: 0.95rem; color: var(--grey-600); line-height: 1.75; margin-bottom: 12px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page a { text-decoration: underline; }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 120px 0; }
.not-found h1 { font-size: 6rem; font-weight: 800; color: var(--coral); line-height: 1; margin-bottom: 12px; }
.not-found h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.not-found p { color: var(--grey-600); margin-bottom: 32px; }
