/* ========================================================
   Sabak Harbor - Legal & Policy Pages Modern Stylesheet
   Applies to: Privacy Policy, Refund Policy, Terms & Conditions
   ======================================================== */

.policy-hero {
  background: linear-gradient(135deg, #022f25 0%, #035642 55%, #066b53 100%);
  padding: 55px 0 45px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.policy-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.policy-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.policy-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-breadcrumb a:hover {
  color: #ffffff;
}

.policy-breadcrumb .sep {
  color: rgba(255, 255, 255, 0.4);
}

.policy-breadcrumb .current {
  color: #a7f3d0;
  font-weight: 600;
}

.policy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.5px;
}

.policy-hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Body Area */
.policy-body-area {
  background: #f8fafc;
  padding: 50px 0 80px;
}

.policy-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 45px 50px;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.05);
}

.policy-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #035642;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 35px;
}

.policy-callout-title {
  font-size: 16px;
  font-weight: 700;
  color: #035642;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-callout p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #1e3a34;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

.policy-section {
  margin-bottom: 35px;
  scroll-margin-top: 110px;
}

.policy-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
  letter-spacing: -0.3px;
}

.policy-h2:first-of-type {
  margin-top: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #e6f5f1;
  color: #035642;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.policy-card p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 14px;
}

.policy-card strong {
  color: #0f172a;
  font-weight: 600;
}

.policy-card a {
  color: #035642;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.policy-card a:hover {
  color: #088b6f;
}

.policy-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 20px;
}

.policy-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  font-family: 'Inter', sans-serif;
}

.policy-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #e6f5f1;
  color: #035642;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.policy-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 25px;
}

.policy-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.policy-info-box:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.policy-info-label {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-info-value {
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.policy-info-value a {
  text-decoration: none;
}

.policy-contact-banner {
  background: linear-gradient(135deg, #035642 0%, #066b53 100%);
  border-radius: 14px;
  padding: 28px 32px;
  color: #ffffff;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.policy-contact-banner h4 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-contact-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

.policy-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #035642 !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.policy-contact-btn:hover {
  background: #f0fdf4;
  color: #02362a !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Sidebar Navigation */
.policy-sidebar {
  position: sticky;
  top: 110px;
}

.toc-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
}

.toc-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 420px;
  overflow-y: auto;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #475569;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.15s ease;
  font-family: 'Inter', sans-serif;
}

.toc-link:hover, .toc-link.active {
  background: #e6f5f1;
  color: #035642;
  font-weight: 600;
}

.toc-link span.num {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.toc-link:hover span.num, .toc-link.active span.num {
  background: #035642;
  color: #ffffff;
}

.quick-help-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.quick-help-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.quick-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.quick-help-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-help-icon {
  width: 34px;
  height: 34px;
  background: #e6f5f1;
  color: #035642;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.quick-help-meta h6 {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.quick-help-meta a {
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 600;
  text-decoration: none !important;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}

.quick-help-meta a:hover {
  color: #035642;
}

/* Related Policies Nav */
.related-policies-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.related-policy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155 !important;
  text-decoration: none !important;
  transition: all 0.15s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.related-policy-pill:hover {
  background: #e6f5f1;
  color: #035642 !important;
  border-color: #a7f3d0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .policy-card {
    padding: 30px 24px;
  }
  .policy-hero-title {
    font-size: 28px;
  }
  .policy-sidebar {
    position: static;
    margin-top: 35px;
  }
  .policy-contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

