/* ============================================
   Liberty Games Ltd — Privacy Policy Styles
   Color Palette Derived from Logo:
   - Navy:    #0B2C5D
   - Orange:  #FF8A00
   - Teal:    #1A9A8A
   - Purple:  #7D5CC9
   - Blue:    #2D7CC0
   - White:   #FFFFFF
   - Light BG:#F5F7FA
   ============================================ */

/* --- 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;
  background-color: #F5F7FA;
  color: #2D3748;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Header --- */
.policy-header {
  background: linear-gradient(135deg, #0B2C5D 0%, #112E61 60%, #1A3A6E 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.policy-header::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,138,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.policy-header::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,154,138,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.logo-wrapper {
  margin-bottom: 1.25rem;
}

.logo-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.app-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.app-name span {
  color: #FF8A00;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.header-divider {
  width: 60px;
  height: 3px;
  background: #FF8A00;
  border-radius: 3px;
  margin: 1rem auto 0;
}

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

/* --- Effective Date Badge --- */
.effective-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #FF8A00;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #4A5568;
  font-weight: 500;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.effective-date .date-icon {
  font-size: 1rem;
}

/* --- Section --- */
.policy-section {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid #E8ECF1;
  box-shadow: 0 2px 12px rgba(11,44,93,0.04);
  transition: box-shadow 0.3s ease;
}

.policy-section:hover {
  box-shadow: 0 4px 20px rgba(11,44,93,0.08);
}

/* Section Numbers */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Alternating section accent colors */
.policy-section:nth-child(12n+1) .section-number { background: #0B2C5D; }
.policy-section:nth-child(12n+2) .section-number { background: #FF8A00; }
.policy-section:nth-child(12n+3) .section-number { background: #1A9A8A; }
.policy-section:nth-child(12n+4) .section-number { background: #7D5CC9; }
.policy-section:nth-child(12n+5) .section-number { background: #2D7CC0; }
.policy-section:nth-child(12n+6) .section-number { background: #0B2C5D; }
.policy-section:nth-child(12n+7) .section-number { background: #FF8A00; }
.policy-section:nth-child(12n+8) .section-number { background: #1A9A8A; }
.policy-section:nth-child(12n+9) .section-number { background: #7D5CC9; }
.policy-section:nth-child(12n+10) .section-number { background: #2D7CC0; }
.policy-section:nth-child(12n+11) .section-number { background: #0B2C5D; }
.policy-section:nth-child(12n+12) .section-number { background: #FF8A00; }

/* Accent top border per section */
.policy-section:nth-child(12n+1) { border-top: 3px solid #0B2C5D; }
.policy-section:nth-child(12n+2) { border-top: 3px solid #FF8A00; }
.policy-section:nth-child(12n+3) { border-top: 3px solid #1A9A8A; }
.policy-section:nth-child(12n+4) { border-top: 3px solid #7D5CC9; }
.policy-section:nth-child(12n+5) { border-top: 3px solid #2D7CC0; }
.policy-section:nth-child(12n+6) { border-top: 3px solid #0B2C5D; }
.policy-section:nth-child(12n+7) { border-top: 3px solid #FF8A00; }
.policy-section:nth-child(12n+8) { border-top: 3px solid #1A9A8A; }
.policy-section:nth-child(12n+9) { border-top: 3px solid #7D5CC9; }
.policy-section:nth-child(12n+10) { border-top: 3px solid #2D7CC0; }
.policy-section:nth-child(12n+11) { border-top: 3px solid #0B2C5D; }
.policy-section:nth-child(12n+12) { border-top: 3px solid #FF8A00; }

.section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0B2C5D;
  line-height: 1.3;
}

.section-body p {
  font-size: 0.95rem;
  color: #4A5568;
  margin-bottom: 0.85rem;
  line-height: 1.8;
}

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

/* --- Lists --- */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.info-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.75rem;
  font-size: 0.93rem;
  color: #4A5568;
  line-height: 1.6;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF8A00;
}

/* Negative / "do NOT" lists */
.negative-list li::before {
  background: #E53E3E;
  border-radius: 2px;
  width: 8px;
  height: 8px;
}

/* Positive / checkmark lists */
.positive-list li {
  padding-left: 2rem;
}

.positive-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #1A9A8A;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Sub-label */
.list-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0B2C5D;
  margin: 1rem 0 0.35rem;
  display: block;
}

/* Email link */
.email-link {
  color: #2D7CC0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: #FF8A00;
  text-decoration: underline;
}

/* --- Footer --- */
.policy-footer {
  background: #0B2C5D;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  padding: 3px;
  margin-bottom: 0.75rem;
}

.footer-company {
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.3rem;
}

.footer-email {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.footer-email a {
  color: #FF8A00;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email a:hover {
  color: #FFA31A;
  text-decoration: underline;
}

.footer-divider {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0.75rem auto;
  border-radius: 2px;
}

.footer-updated {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: #0B2C5D;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(11,44,93,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

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

.back-to-top:hover {
  background: #FF8A00;
  box-shadow: 0 4px 20px rgba(255,138,0,0.35);
}

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

  .logo-wrapper img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }

  .app-name {
    font-size: 1.35rem;
  }

  .header-title {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
  }

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

  .policy-section {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }

  .section-heading h2 {
    font-size: 1.08rem;
  }

  .section-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 7px;
    margin-right: 0.6rem;
  }

  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .policy-header {
    padding: 2rem 1rem 1.75rem;
  }

  .logo-wrapper img {
    width: 70px;
    height: 70px;
  }

  .app-name {
    font-size: 1.2rem;
  }

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

  .section-body p,
  .info-list li {
    font-size: 0.9rem;
  }
}

/* --- Print Styles --- */
@media print {
  .back-to-top {
    display: none !important;
  }

  .policy-header {
    background: #0B2C5D !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .policy-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
