/* ===================================================================
   Bloom&blush - Boutique Gifting & Floral Studio
   Legal, Terms & Privacy Policy Stylesheet (Editorial Luxury)
   =================================================================== */

/* Hero Banner */
.legal-hero {
  background: linear-gradient(135deg, #1C0A10 0%, #2A0E1A 55%, #15060C 100%);
  padding: 7rem 0 4.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(128, 35, 54, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.7);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.legal-breadcrumb a {
  color: var(--color-champagne-gold, #D4AF37);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-breadcrumb a:hover {
  text-decoration: underline;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #FDFBF7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.legal-hero-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #D4AF37;
  border-radius: 50%;
  box-shadow: 0 0 8px #D4AF37;
}

.legal-title {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: #FDFBF7;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.legal-lead {
  color: rgba(253, 251, 247, 0.88);
  max-width: 820px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.7);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(253, 251, 247, 0.12);
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-meta-item svg {
  color: #D4AF37;
  flex-shrink: 0;
}

/* Page Main Container */
.legal-page-body {
  background: #FDFBF7;
}

.legal-main-section {
  padding: 4.5rem 0 6rem;
}

.legal-grid-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Sticky Sidebar Table of Contents */
.legal-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.legal-toc-card {
  background: #FFFFFF;
  border: 1px solid rgba(107, 30, 58, 0.12);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.legal-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(107, 30, 58, 0.1);
}

.legal-toc-title {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.3rem;
  color: #2A0E1A;
  font-weight: 700;
  margin: 0;
}

.legal-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc-link {
  display: block;
  font-size: 0.88rem;
  color: #5E474C;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  background: rgba(128, 35, 54, 0.06);
  color: #5E1624;
  font-weight: 600;
  border-left-color: #802336;
  transform: translateX(3px);
}

.legal-sidebar-cta {
  background: linear-gradient(135deg, #2A0E1A 0%, #4A0E1A 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 14px;
  padding: 1.75rem;
  color: #FDFBF7;
  text-align: center;
  box-shadow: 0 10px 30px rgba(74, 14, 26, 0.2);
}

.legal-sidebar-cta h4 {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.35rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.legal-sidebar-cta p {
  font-size: 0.85rem;
  color: rgba(253, 251, 247, 0.8);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.legal-sidebar-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-sidebar-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Main Legal Content Column */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Legal Cards */
.legal-card {
  background: #FFFFFF;
  border: 1px solid rgba(107, 30, 58, 0.12);
  border-radius: 16px;
  padding: 2.75rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
  scroll-margin-top: 110px;
  position: relative;
  transition: border-color 0.2s ease;
}

.legal-card:hover {
  border-color: rgba(128, 35, 54, 0.25);
}

.legal-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(128, 35, 54, 0.08);
  color: #802336;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.legal-section-title {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.95rem;
  color: #2A0E1A;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(107, 30, 58, 0.08);
}

.legal-body-text {
  font-size: 1rem;
  color: #4A3A3E;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.legal-body-text:last-child {
  margin-bottom: 0;
}

.legal-list {
  padding-left: 1.5rem;
  margin: 1.25rem 0;
  color: #4A3A3E;
  line-height: 1.75;
}

.legal-list li {
  margin-bottom: 0.75rem;
  position: relative;
}

.legal-list li strong {
  color: #2A0E1A;
}

/* Callout Highlight Boxes */
.legal-callout-gold {
  background: #FFFDF9;
  border: 1px solid #E6D2B5;
  border-left: 4px solid #D4AF37;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.legal-callout-gold h4 {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.25rem;
  color: #7A5B20;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-callout-gold p {
  font-size: 0.94rem;
  color: #554433;
  line-height: 1.65;
  margin: 0;
}

.legal-callout-burgundy {
  background: rgba(128, 35, 54, 0.04);
  border: 1px solid rgba(128, 35, 54, 0.2);
  border-left: 4px solid #802336;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}

.legal-callout-burgundy h4 {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.25rem;
  color: #5E1624;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-callout-burgundy p {
  font-size: 0.94rem;
  color: #4A2830;
  line-height: 1.65;
  margin: 0;
}

/* Product Policy Feature Grid */
.product-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.product-policy-box {
  background: #FAF7F2;
  border: 1px solid rgba(107, 30, 58, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-policy-box:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}

.product-policy-icon {
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid rgba(107, 30, 58, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #802336;
  margin-bottom: 1rem;
}

.product-policy-box h4 {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.15rem;
  color: #2A0E1A;
  margin-bottom: 0.4rem;
}

.product-policy-box p {
  font-size: 0.86rem;
  color: #5E474C;
  line-height: 1.55;
  margin: 0;
}

/* Product Comparison / Terms Matrix Table */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid rgba(107, 30, 58, 0.12);
  border-radius: 12px;
}

.legal-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.legal-matrix-table th {
  background: #2A0E1A;
  color: #FDFBF7;
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.legal-matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(107, 30, 58, 0.08);
  color: #4A3A3E;
  vertical-align: middle;
}

.legal-matrix-table tr:last-child td {
  border-bottom: none;
}

.legal-matrix-table tr:nth-child(even) {
  background: rgba(250, 247, 242, 0.5);
}

.legal-pill-yes {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.legal-pill-no {
  display: inline-block;
  background: #FFEBEE;
  color: #C62828;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.legal-pill-custom {
  display: inline-block;
  background: #FFF8E1;
  color: #F57F17;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

/* Studio Guarantee Seal Box */
.studio-seal-box {
  background: linear-gradient(135deg, #FFFDF9 0%, #F5EFEB 100%);
  border: 1px solid #D4AF37;
  border-radius: 16px;
  padding: 2.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.12);
}

.studio-seal-emblem {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: #5E1624;
  color: #D4AF37;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.6rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(94, 22, 36, 0.25);
}

.studio-seal-text h4 {
  font-family: var(--font-cormorant, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.4rem;
  color: #2A0E1A;
  margin-bottom: 0.4rem;
}

.studio-seal-text p {
  font-size: 0.92rem;
  color: #5E474C;
  line-height: 1.6;
  margin: 0;
}

/* Quick Switch Bar between Terms & Privacy */
.legal-switcher-banner {
  background: #FFFFFF;
  border: 1px solid rgba(107, 30, 58, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.legal-switcher-label {
  font-size: 0.9rem;
  color: #5E474C;
}

.legal-switcher-label strong {
  color: #2A0E1A;
}

.legal-switcher-pills {
  display: flex;
  gap: 0.5rem;
}

.legal-switch-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-switch-btn.active {
  background: #5E1624;
  color: #FFFFFF;
}

.legal-switch-btn:not(.active) {
  background: rgba(107, 30, 58, 0.06);
  color: #5E1624;
}

.legal-switch-btn:not(.active):hover {
  background: rgba(107, 30, 58, 0.14);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .legal-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .legal-sidebar {
    position: static;
  }
  
  .legal-card {
    padding: 2rem 1.5rem;
  }
  
  .studio-seal-box {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

@media (max-width: 576px) {
  .legal-hero {
    padding: 5.5rem 0 3rem;
  }
  
  .legal-card {
    padding: 1.5rem 1.2rem;
  }
  
  .legal-section-title {
    font-size: 1.6rem;
  }
}
