/* =========================================
   RANTHAMBORE SAFARI BOOKING
   Shared Policy & 404 Page Styles
========================================= */

.policy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf9f6;
  color: #26332c;
  font-family: "Manrope", sans-serif;
}

.policy-header {
  background: #1b4332;
  color: #ffffff;
  padding: 18px 0;
}

.policy-header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
}

.policy-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.policy-home-link {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.policy-home-link:hover {
  color: #f4b183;
}

.policy-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
  flex: 1;
}

.policy-eyebrow {
  margin: 0 0 12px;
  color: #d35400;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-title {
  margin: 0 0 14px;
  color: #1b4332;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.policy-updated {
  margin: 0 0 36px;
  color: #68756d;
  font-size: 0.88rem;
}

.policy-content {
  padding: clamp(22px, 5vw, 44px);
  background: #ffffff;
  border: 1px solid #e5e9e4;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(27, 67, 50, 0.05);
}

.policy-content h2 {
  margin: 32px 0 12px;
  color: #1b4332;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  margin: 24px 0 10px;
  color: #1b4332;
  font-size: 1.05rem;
  font-weight: 800;
}

.policy-content p,
.policy-content li {
  color: #48564d;
  font-size: 0.96rem;
  line-height: 1.85;
}

.policy-content p {
  margin: 0 0 16px;
}

.policy-content ul,
.policy-content ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.policy-content li {
  padding-left: 4px;
  margin-bottom: 8px;
}

.policy-content a {
  color: #1b6a49;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.policy-content a:hover {
  color: #d35400;
}

.policy-note {
  padding: 16px 18px;
  margin: 24px 0;
  border-left: 4px solid #e67e22;
  border-radius: 0 8px 8px 0;
  background: #fff5eb;
}

.policy-note p:last-child {
  margin-bottom: 0;
}

.policy-footer {
  padding: 24px 20px;
  background: #142f24;
  color: #dce7df;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.policy-footer p {
  margin: 4px 0;
}

.policy-footer a {
  color: #ffffff;
  text-underline-offset: 3px;
}

.policy-footer a:hover {
  color: #f4b183;
}

.policy-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 12px;
}

.policy-footer-nav a {
  text-decoration: none;
}

.policy-footer-nav a:hover {
  text-decoration: underline;
}

.policy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #e67e22;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.policy-button:hover {
  background: #d35400;
  transform: translateY(-2px);
}

.policy-button:focus-visible,
.policy-header a:focus-visible,
.policy-footer a:focus-visible,
.policy-content a:focus-visible {
  outline: 3px solid #e67e22;
  outline-offset: 4px;
}

.policy-404 {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 100px;
}

.policy-404-code {
  margin: 0;
  color: #e67e22;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: 1;
}

.policy-404 .policy-title {
  margin-top: 20px;
}

.policy-404-description {
  max-width: 560px;
  margin: 0 auto 28px;
  color: #59675e;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .policy-header-inner {
    width: calc(100% - 28px);
    gap: 12px;
  }

  .policy-brand {
    gap: 8px;
    font-size: 0.88rem;
  }

  .policy-brand img {
    width: 34px;
    height: 34px;
  }

  .policy-home-link {
    font-size: 0.82rem;
    text-align: right;
  }

  .policy-main {
    width: calc(100% - 28px);
    padding: 42px 0 52px;
  }

  .policy-content {
    padding: 22px 18px;
    border-radius: 12px;
  }

  .policy-content p,
  .policy-content li {
    font-size: 0.92rem;
  }

  .policy-footer-nav {
    gap: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .policy-button {
    transition: none;
  }

  .policy-button:hover {
    transform: none;
  }
}