/*
 * Styles for Legal/Policy Pages (Terms, Privacy, Cookie Policy)
 * Excludes base styles from simp-style.css
 */

/* --- Variable Definitions (for clarity and consistency) --- */
:root {
  --primary-blue: #001430;
  --accent-gold: #d4af37;
  --white: #ffffff;
  --light-bg: #fafafa;
  --text-color: #333;
  --border-color: #e0e0e0;
  --font: 'Poppins', sans-serif;
  --border-radius: 8px;
}

/* --- Hero Section for Policy Pages --- */
.hero-section {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero-content .hero-logo {
  max-width: 300px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 40px;
}

.hero-content .effective-date {
  font-size: 1rem;
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 20px;
}

/*---This is exclusively for copyright-policy---*/
        .meta-info {
            background-color: #f9f9f9;
            border-left: 4px solid #3498db;
            padding: 10px 20px;
            margin: 20px 0;
        }


/* --- Main Content Styling for Policy Text --- */
        main.container {
            padding-top: 40px;
            padding-bottom: 40px;
            max-width: 850px; /* Optimal width for readability of text */
            margin: auto;
        }

main section {
  margin-bottom: 40px;
}

main .info h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

main .info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 30px;
  margin-bottom: 15px;
}

main .info p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 15px;
}

main .info a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-gold);
  transition: color 0.3s ease;
}

main .info a:hover {
  color: var(--accent-gold);
}

/* --- List Styling --- */
main .info ul {
  list-style: none; /* Remove default bullets */
  padding-left: 20px;
  margin: 20px 0;
}

main .info ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-color);
}

/* Custom bullet point for lists */
main .info ul li::before {
  content: '•'; /* You can change this to '•', '→', etc. */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =============================================
   Nested List Styles
   ============================================= */
.nested-list {
  margin-top: 1em;
}

/* =============================================
   Reusable Data Table Styles
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-family: var(--font);
  font-size: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: var(--primary-blue);
  color: var(--white);
  font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--light-bg);
}

.data-table tbody tr:hover {
  background-color: rgba(212, 175, 55, 0.08); /* subtle gold hover */
}

/* Specific style for the last cell in the pricing table */
.data-table .price-cell {
  font-weight: 600;
  color: var(--primary-blue);
}

/* Specific style for code tags within any data table */
.data-table code {
  background-color: #e9ecef;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}


/* --- Address and Contact Block --- */
#contact-container address {
  font-style: normal;
  background-color: var(--light-bg);
  border-left: 4px solid var(--accent-gold);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  line-height: 1.8;
}

.footer-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 20px;
}

/* =================================== */
/*          Responsive Design          */
/* =================================== */

/* --- For Tablets --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  main.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  main .info h2 {
    font-size: 1.6rem;
  }

  main .info h3 {
    font-size: 1.2rem;
  }

  .pricing-table,
  .cookie-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


/* --- For Mobile Phones --- */
@media (max-width: 480px) {
  .hero-section {
    padding: 100px 20px;
  }

  .hero-content .hero-logo {
    max-width: 200px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content .effective-date {
    font-size: 0.9rem;
  }

  main.container {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  main .info h2 {
    font-size: 1.4rem;
  }

  main .info p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  main .info ul {
    padding-left: 5px; /* Reduce indentation on mobile */
  }
}
