/* ==========================================================================
   HIPA MASALAS — LEGAL POLICIES & SUPPORT PAGES STYLES
   ========================================================================== */

.legal-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1214 50%, #4a1518 100%);
  color: #ffffff;
  padding: 60px 0 45px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-primary, #b82329);
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(217, 119, 6, 0.15) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(253, 230, 138, 0.3);
}

.legal-hero h1 {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.legal-hero-desc {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 680px;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Page Layout Grid */
.legal-layout-section {
  padding: 48px 0 80px;
  background: #f8fafc;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Sidebar Navigation */
.legal-sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 90px;
}

.legal-sidebar-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-nav-link:hover {
  background: #fef2f2;
  color: var(--color-primary, #b82329);
  padding-left: 18px;
}

.legal-nav-link.active {
  background: var(--color-primary, #b82329);
  color: #ffffff;
}

.legal-nav-link.active svg {
  stroke: #ffffff;
}

.legal-sidebar-help {
  margin-top: 24px;
  padding: 16px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 10px;
  font-size: 0.8125rem;
  color: #92400e;
}

.legal-sidebar-help strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: #78350f;
}

.legal-sidebar-help a {
  color: var(--color-primary, #b82329);
  font-weight: 700;
  text-decoration: underline;
}

/* Legal Content Body */
.legal-content-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  line-height: 1.75;
  color: #334155;
}

@media (max-width: 640px) {
  .legal-content-card {
    padding: 24px 18px;
  }
}

.legal-content-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.legal-content-card h2:first-of-type {
  margin-top: 0;
}

.legal-content-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content-card p {
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.legal-content-card ul, .legal-content-card ol {
  margin: 0 0 18px 24px;
  padding: 0;
}

.legal-content-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Callout Boxes */
.legal-callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 22px 0;
  font-size: 0.9rem;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.legal-callout.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.legal-callout.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.legal-callout.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.legal-callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* FAQ Accordion */
.faq-filter-bar {
  margin-bottom: 24px;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--color-primary, #b82329);
  box-shadow: 0 0 0 3px rgba(184, 35, 41, 0.12);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.is-open {
  border-color: rgba(184, 35, 41, 0.35);
  box-shadow: 0 4px 12px rgba(184, 35, 41, 0.05);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: #64748b;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary, #b82329);
}

.faq-answer-panel {
  display: none;
  padding: 0 22px 20px 22px;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.7;
  border-top: 1px dashed #f1f5f9;
  padding-top: 14px;
}

.faq-item.is-open .faq-answer-panel {
  display: block;
}

/* Cookie Consent Banner */
.hipa-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  z-index: 999999;
  display: none;
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCookie {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hipa-cookie-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.hipa-cookie-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.hipa-cookie-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.hipa-cookie-text {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.hipa-cookie-text a {
  color: var(--color-primary, #b82329);
  text-decoration: underline;
  font-weight: 600;
}

.hipa-cookie-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hipa-cookie-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hipa-cookie-btn-accept {
  background: var(--color-primary, #b82329);
  color: #ffffff;
}

.hipa-cookie-btn-accept:hover {
  background: #961b20;
}

.hipa-cookie-btn-decline {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.hipa-cookie-btn-decline:hover {
  background: #e2e8f0;
}

@media (max-width: 480px) {
  .hipa-cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
  }
  .hipa-cookie-actions {
    flex-direction: column-reverse;
  }
  .hipa-cookie-btn {
    width: 100%;
    text-align: center;
  }
}
