/* ============================================
   PREMIER INN VILLA — Privacy Policy Styles
   Color palette derived from brand logo:
   - Navy Blue: #0B2D6E
   - Deep Navy: #091E4A
   - Gold: #C9982C
   - Light Gold: #E7C66A
   - Cream: #F5EDD6
   - White: #FFFFFF
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #2D3748;
  background-color: #F8F9FC;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(160deg, #091E4A 0%, #0B2D6E 50%, #12356E 100%);
  padding: 3rem 1.5rem 2.8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 152, 44, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #C9982C, #E7C66A, #C9982C);
}

.header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 18px;
  filter: drop-shadow(0 4px 20px rgba(201, 152, 44, 0.35));
  position: relative;
  z-index: 1;
}

.header-app-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 1;
}

.header-app-name span {
  color: #E7C66A;
}

.header-page-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(231, 198, 106, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ---------- Main Content ---------- */
.policy-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Effective date badge */
.effective-date {
  display: inline-block;
  background: linear-gradient(135deg, #0B2D6E, #12356E);
  color: #E7C66A;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(11, 45, 110, 0.15);
}

/* ---------- Section Block ---------- */
.policy-section {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(11, 45, 110, 0.06), 0 4px 16px rgba(11, 45, 110, 0.03);
  border: 1px solid rgba(11, 45, 110, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.policy-section:hover {
  box-shadow: 0 2px 8px rgba(11, 45, 110, 0.08), 0 8px 28px rgba(11, 45, 110, 0.06);
  transform: translateY(-1px);
}

/* Section heading */
.policy-section h2 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0B2D6E;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(201, 152, 44, 0.25);
  position: relative;
}

.policy-section h2 .section-number {
  color: #C9982C;
  margin-right: 0.3rem;
}

/* Sub-headings */
.policy-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #12356E;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

/* Paragraphs */
.policy-section p {
  font-size: 0.975rem;
  color: #3D4A5C;
  line-height: 1.85;
  margin-bottom: 0.85rem;
}

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

/* Lists */
.policy-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.85rem;
}

.policy-section ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.975rem;
  color: #3D4A5C;
  line-height: 1.75;
}

.policy-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #C9982C, #E7C66A);
  border-radius: 50%;
}

/* Contact info styling */
.contact-highlight {
  display: inline-block;
  background: linear-gradient(135deg, rgba(11, 45, 110, 0.06), rgba(201, 152, 44, 0.08));
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border-left: 3px solid #C9982C;
  margin-top: 0.5rem;
}

.contact-highlight a {
  color: #0B2D6E;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 45, 110, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-highlight a:hover {
  color: #C9982C;
  border-bottom-color: #C9982C;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, #091E4A 0%, #0B2D6E 100%);
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #C9982C, #E7C66A, #C9982C);
}

.footer-company {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.footer-email a {
  color: #E7C66A;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-email a:hover {
  color: #FFFFFF;
}

.footer-updated {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: rgba(201, 152, 44, 0.4);
  margin: 1rem auto;
  border-radius: 2px;
}

/* ---------- Back to Top Button ---------- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0B2D6E, #12356E);
  color: #E7C66A;
  border: 2px solid rgba(201, 152, 44, 0.35);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.25s ease;
  box-shadow: 0 4px 16px rgba(11, 45, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, #C9982C, #E7C66A);
  color: #091E4A;
  border-color: #C9982C;
  box-shadow: 0 6px 24px rgba(201, 152, 44, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 2.25rem 1.25rem 2rem;
  }

  .header-logo {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }

  .header-app-name {
    font-size: 1.5rem;
  }

  .header-page-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .policy-container {
    padding: 1.75rem 1rem 3rem;
  }

  .policy-section {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.15rem;
  }

  .policy-section h2 {
    font-size: 1.2rem;
  }

  .policy-section p,
  .policy-section ul li {
    font-size: 0.935rem;
  }

  #back-to-top {
    width: 42px;
    height: 42px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 1.75rem 1rem 1.5rem;
  }

  .header-logo {
    width: 68px;
    height: 68px;
    border-radius: 12px;
  }

  .header-app-name {
    font-size: 1.3rem;
  }

  .policy-section {
    padding: 1.25rem 1rem;
  }

  .policy-section h2 {
    font-size: 1.1rem;
  }

  .contact-highlight {
    padding: 0.75rem 1rem;
  }
}

/* ---------- Selection Style ---------- */
::selection {
  background-color: rgba(201, 152, 44, 0.2);
  color: #091E4A;
}

/* ---------- Scrollbar (WebKit) ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F0F2F7;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0B2D6E, #12356E);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C9982C;
}
