/* ==========================================================================
   Honeyvia - Legal & Compliance Hub & Cookie Banner Styles
   Corporate Entity: Vansh Naturals Private Limited
   ========================================================================== */

.legal-page-stage {
  min-height: 80vh;
  background-color: #faf7f2;
  padding-bottom: 80px;
}

/* Hero Header */
.legal-hero-banner {
  background: linear-gradient(135deg, #1a1005 0%, #291a0c 60%, #3d2612 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #ea580c;
}

.legal-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.legal-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #d1b89d;
  margin-bottom: 18px;
}

.legal-breadcrumbs a {
  color: #fbd38d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.6;
}

.breadcrumb-active {
  color: #ffffff;
  font-weight: 600;
}

.legal-hero-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid rgba(234, 88, 12, 0.6);
  color: #ffedd5;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.legal-hero-title {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  margin: 0 0 14px;
}

.legal-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e2d3c2;
  max-width: 780px;
  margin: 0 0 20px;
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #c4b09b;
  flex-wrap: wrap;
}

.legal-meta-bar strong {
  color: #fef3c7;
}

/* Main Layout Grid */
.legal-body-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  margin-top: 40px;
  align-items: flex-start;
}

/* Sidebar Navigation */
.legal-sidebar {
  position: sticky;
  top: 100px;
}

.legal-nav-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1.5px solid #e7ded4;
  box-shadow: 0 6px 20px rgba(26, 16, 5, 0.05);
  padding: 24px 20px;
}

.legal-nav-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c735d;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0e6dc;
}

.legal-tabs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-tab-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #2b1f13;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.22s ease;
  border: 1.5px solid transparent;
}

.legal-tab-link .tab-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.legal-tab-link:hover {
  background: #fff7ed;
  color: #c2410c;
  transform: translateX(4px);
}

.legal-tab-link.active {
  background: #1a1005;
  color: #ffffff;
  border-color: #1a1005;
  box-shadow: 0 4px 14px rgba(26, 16, 5, 0.15);
}

.legal-tab-link.active .tab-icon {
  filter: drop-shadow(0 0 2px rgba(254, 203, 46, 0.8));
}

.legal-sidebar-help-box {
  background: #fefce8;
  border: 1.5px dashed #ca8a04;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.help-box-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.legal-sidebar-help-box h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #713f12;
  margin: 0 0 6px;
}

.legal-sidebar-help-box p {
  font-size: 0.82rem;
  color: #854d0e;
  line-height: 1.45;
  margin: 0 0 14px;
}

.legal-help-btn {
  display: inline-block;
  background: #ea580c;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.legal-help-btn:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Document Card Viewer */
.legal-content-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e7ded4;
  box-shadow: 0 8px 28px rgba(26, 16, 5, 0.06);
  padding: 44px 48px;
}

.policy-header {
  border-bottom: 2px solid #f4ece2;
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.policy-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.policy-title {
  font-family: var(--font-serif, 'Fraunces', Georgia, serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: #1a1005;
  margin: 0 0 8px;
  line-height: 1.25;
}

.policy-effective-date {
  font-size: 0.9rem;
  color: #786553;
  margin: 0;
  font-weight: 500;
}

/* Policy Content Sections */
.policy-section {
  margin-bottom: 34px;
}

.policy-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1005;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-section p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: #3b2e21;
  margin: 0 0 14px;
}

.policy-section ul,
.policy-section ol {
  margin: 0 0 16px 22px;
  padding: 0;
  color: #3b2e21;
  font-size: 0.98rem;
  line-height: 1.75;
}

.policy-section li {
  margin-bottom: 8px;
}

.policy-section li strong {
  color: #1a1005;
}

.policy-alert-note {
  background: #fff7ed;
  border-left: 4px solid #ea580c;
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  font-size: 0.92rem;
  color: #9a3412;
  line-height: 1.55;
  margin: 18px 0;
}

.legal-callout-box {
  background: #fdfbf7;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 24px;
}

.grievance-contact-details {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #f3e8de;
  margin-top: 14px;
}

.grievance-contact-details p {
  margin-bottom: 8px;
  font-size: 0.93rem;
}

.grievance-contact-details a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
}

.grievance-contact-details a:hover {
  text-decoration: underline;
}

/* Shipping Zones Grid */
.shipping-zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.shipping-zone-card {
  background: #fffdf9;
  border: 1.5px solid #f0e6dc;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.shipping-zone-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1005;
  margin: 0 0 6px;
}

.zone-days {
  color: #ea580c !important;
  font-weight: 800;
  font-size: 1.05rem !important;
  margin: 0 0 8px !important;
}

.zone-desc {
  font-size: 0.8rem;
  color: #735f4d;
  line-height: 1.4;
  display: block;
}

/* Refund Steps List */
.refund-steps-list {
  counter-reset: refund-counter;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.refund-steps-list li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.refund-steps-list li::before {
  counter-increment: refund-counter;
  content: counter(refund-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: #ea580c;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.86rem;
}

/* Cookie Types Grid */
.cookie-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.cookie-type-card {
  background: #fffdf9;
  border: 1.5px solid #f0e6dc;
  border-radius: 14px;
  padding: 18px;
}

.cookie-type-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #1a1005;
  margin: 0 0 8px;
}

.cookie-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  margin-bottom: 10px;
}

.cookie-badge.essential {
  background: #dcfce7;
  color: #166534;
}

.cookie-type-card p {
  font-size: 0.85rem !important;
  color: #5c4a39 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ==========================================================================
   Long Horizontal Cookie Consent Banner
   ========================================================================== */
.cookie-card-floating,
.cookie-banner-long {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 36px);
  max-width: 1220px;
  width: calc(100% - 48px);
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
  border: 2px solid #1a1005;
  border-radius: 20px;
  box-shadow: 4px 6px 0px #1a1005, 0 16px 36px rgba(26, 16, 5, 0.16);
  padding: 14px 24px;
  z-index: 99999;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  user-select: none;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  box-sizing: border-box;
}

.cookie-card-floating.cookie-banner-visible,
.cookie-banner-long.cookie-banner-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.cookie-banner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-honey-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1.5px solid #1a1005;
  box-shadow: 1.5px 1.5px 0px #1a1005;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cookie-title-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.cookie-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #1a1005;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.cookie-card-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  white-space: nowrap;
}

.cookie-banner-text,
.cookie-card-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #524233;
  margin: 0;
  font-weight: 500;
  flex: 1;
  padding: 0 10px;
}

.cookie-banner-actions,
.cookie-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cookie-card-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #1a1005;
  background: #faf7f2;
  color: #1a1005;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 1px 1px 0px #1a1005;
}

.cookie-card-close-btn:hover {
  background: #fee2e2;
  transform: scale(1.08);
}

.cookie-accept-pill {
  background: #ea580c;
  color: #ffffff;
  border: 1.5px solid #1a1005;
  box-shadow: 2px 2.5px 0px #1a1005;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-accept-pill:hover {
  background: #c2410c;
  transform: translateY(-1px);
  box-shadow: 3px 3.5px 0px #1a1005;
}

.cookie-accept-pill:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0px #1a1005;
}

.cookie-policy-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1a1005;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cookie-policy-link:hover {
  color: #ea580c;
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .legal-body-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-tabs-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-tab-link {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .legal-content-card {
    padding: 30px 24px;
  }

  .shipping-zones-grid,
  .cookie-types-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cookie-card-floating,
  .cookie-banner-long {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px;
    padding: 16px 18px;
    bottom: 14px;
    width: calc(100% - 28px);
    border-radius: 16px;
    transform: translate(-50%, 20px);
  }

  .cookie-banner-text,
  .cookie-card-text {
    padding: 0;
  }

  .cookie-banner-actions,
  .cookie-card-actions {
    width: 100%;
    justify-content: space-between;
  }
}
