/* ==========================================================================
   GiftAcross / Gifting Marketplace â€” Legal & Compliance Policy Pages Styles
   Palette: Royal Navy (#1C396E), Deep Navy (#12264B), Marigold (#FFA500),
            Festive Green (#15803D), Crisp White (#FFFFFF), Soft Slate (#F6F7F9)
   Craft Floor: Clean Title Case, Minimum 12px Font Floor, No AI Trope Blobs
   ========================================================================== */

.policy-page-wrapper {
  background-color: var(--bg-section-gray, #F6F7F9);
  padding: 32px 0 64px 0;
  min-height: 80vh;
}

.policy-breadcrumb {
  margin-bottom: 24px;
  font-size: 0.8125rem;
  color: var(--text-muted, #6B7280);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.policy-breadcrumb a {
  color: var(--text-muted, #6B7280);
  transition: color 0.15s ease;
}

.policy-breadcrumb a:hover {
  color: var(--brand-navy, #1C396E);
  text-decoration: underline;
}

.policy-breadcrumb-sep {
  color: #D1D5DB;
}

.policy-breadcrumb-current {
  color: var(--text-dark, #111827);
  font-weight: 600;
}

/* Header Banner */
.policy-header-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 32px 36px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.policy-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.policy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.policy-pill-navy {
  background: var(--brand-navy-soft, #EEF3FA);
  color: var(--brand-navy, #1C396E);
  border: 1px solid #D6E4F7;
}

.policy-pill-green {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.policy-last-updated {
  font-size: 0.8125rem;
  color: var(--text-muted, #6B7280);
  font-variant-numeric: tabular-nums;
}

.policy-main-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand-navy-dark, #12264B);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.policy-header-lead {
  font-size: 0.9375rem;
  color: var(--text-body, #374151);
  line-height: 1.6;
  max-width: 860px;
}

/* Layout Grid: Sticky Sidebar + Main Article */
.policy-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar Nav */
.policy-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.policy-nav-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.policy-nav-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted, #6B7280);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light, #E5E7EB);
}

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

.policy-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--text-body, #374151);
  transition: all 0.15s ease;
  text-decoration: none;
}

.policy-nav-link:hover {
  background: var(--brand-navy-soft, #EEF3FA);
  color: var(--brand-navy, #1C396E);
}

.policy-nav-link.active {
  background: var(--brand-navy, #1C396E);
  color: #FFFFFF;
  font-weight: 600;
}

.policy-nav-link.active svg {
  stroke: #FFFFFF;
}

.policy-help-box {
  background: #FFF8EB;
  border: 1px solid #FDE6B8;
  border-radius: 12px;
  padding: 20px;
}

.policy-help-box h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 6px;
}

.policy-help-box p {
  font-size: 0.8125rem;
  color: #78350F;
  line-height: 1.5;
  margin-bottom: 12px;
}

.policy-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #B45309;
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.policy-help-btn:hover {
  background: #92400E;
}

/* Article Body */
.policy-content-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.policy-highlights-box {
  background: var(--brand-navy-soft, #EEF3FA);
  border-left: 4px solid var(--brand-navy, #1C396E);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}

.policy-highlights-box h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-navy-dark, #12264B);
  margin-bottom: 8px;
}

.policy-highlights-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84375rem;
  color: var(--text-body, #374151);
  line-height: 1.6;
}

.policy-highlights-box li {
  margin-bottom: 4px;
}

.policy-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light, #E5E7EB);
}

.policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy-dark, #12264B);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark, #111827);
  margin: 18px 0 8px 0;
}

.policy-section p {
  font-size: 0.875rem;
  color: var(--text-body, #374151);
  line-height: 1.7;
  margin-bottom: 14px;
}

.policy-section ul, .policy-section ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--text-body, #374151);
  line-height: 1.7;
}

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

/* Callout Box Variants */
.policy-callout-green {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid #16A34A;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
}

.policy-callout-green strong {
  color: #15803D;
}

.policy-callout-amber {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
}

.policy-callout-amber strong {
  color: #B45309;
}

/* Structured Matrix Table */
.policy-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 8px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  text-align: left;
}

.policy-table th {
  background: #F8FAFC;
  color: var(--brand-navy-dark, #12264B);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light, #E5E7EB);
}

.policy-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--text-body, #374151);
  vertical-align: top;
}

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

.policy-table tr:hover td {
  background: #FAFBFD;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .policy-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .policy-sidebar {
    position: static;
  }

  .policy-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .policy-header-card {
    padding: 24px 20px;
  }

  .policy-main-title {
    font-size: 1.5rem;
  }

  .policy-content-card {
    padding: 24px 18px;
  }

  .policy-nav-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   2. Contact Us Channels & Form Styling
   ========================================================================== */
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.channel-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover, 0 14px 30px rgba(28, 57, 110, 0.10));
}

.channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-icon-green {
  background: #DCFCE7;
  color: #15803D;
}

.channel-icon-navy {
  background: var(--brand-navy-soft, #EEF3FA);
  color: var(--brand-navy, #1C396E);
}

.channel-icon-orange {
  background: #FFF7E8;
  color: #D97706;
}

.channel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy-dark, #12264B);
}

.channel-desc {
  font-size: 0.8125rem;
  color: var(--text-muted, #6B7280);
  line-height: 1.5;
}

.channel-action-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease;
  width: fit-content;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: #1EBE5D;
}

.btn-navy-outline {
  border: 1px solid var(--brand-navy, #1C396E);
  color: var(--brand-navy, #1C396E);
  background: transparent;
}

.btn-navy-outline:hover {
  background: var(--brand-navy-soft, #EEF3FA);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dark, #111827);
  margin-bottom: 6px;
}

.form-label .required {
  color: #DC2626;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.875rem;
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 8px;
  background: var(--bg-white, #FFFFFF);
  color: var(--text-dark, #111827);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--brand-navy, #1C396E);
  box-shadow: 0 0 0 3px rgba(28, 57, 110, 0.10);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.alert-success-banner {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.btn-submit-primary {
  background: var(--brand-orange, #FFA500);
  color: #111827;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-submit-primary:hover {
  background: var(--brand-orange-hover, #E69500);
  transform: translateY(-1px);
}

/* ==========================================================================
   3. About Us Metrics & Narrative
   ========================================================================== */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.stat-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy, #1C396E);
  margin-bottom: 4px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted, #6B7280);
  font-weight: 500;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0;
}

.pillar-card {
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(17, 24, 39, 0.04));
}

.pillar-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-navy-soft, #EEF3FA);
  color: var(--brand-navy, #1C396E);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-navy-dark, #12264B);
  margin: 0;
}

.pillar-card p {
  font-size: 0.84375rem;
  color: var(--text-body, #374151);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   4. Error Pages (404 & 500)
   ========================================================================== */
.error-page-wrapper {
  background-color: var(--bg-section-gray, #F6F7F9);
  padding: 64px 0 88px 0;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.error-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-white, #FFFFFF);
  border: 1px solid var(--border-light, #E5E7EB);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-card-hover, 0 14px 30px rgba(28, 57, 110, 0.10));
}

.error-code-badge {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--brand-navy, #1C396E);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark, #111827);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: var(--text-body, #374151);
  line-height: 1.6;
  margin-bottom: 28px;
}

.error-actions-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.error-pills-row {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light, #E5E7EB);
}

.error-pills-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted, #6B7280);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.error-quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.error-chip {
  background: var(--brand-navy-soft, #EEF3FA);
  color: var(--brand-navy, #1C396E);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.error-chip:hover {
  background: #D6E4F7;
}

@media (max-width: 991px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}
