/* 
=============================================
PRIVACY & TERMS OF SERVICE PAGES
=============================================
These styles apply to both /privacy.html and /terms.html
Last Updated: 2024-01-28
=============================================
*/

/* 
Policy Page Container
Applies to both privacy and terms pages
*/
.policy-container {
  max-width: 800px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

/* 
Policy Header Section
Contains page title and last updated date
*/
.policy-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 2px solid var(--primary-color, #4f46e5);
}

.policy-header h1 {
  font-size: 2.8rem;
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.policy-updated {
  color: var(--text-muted, #666);
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.5rem;
}

/* 
Policy Content Sections
Each numbered section in the policy
*/
.policy-section {
  margin-bottom: 2.8rem;
  padding: 2rem;
  background: var(--bg-light, #f8f9fa);
  border-radius: 10px;
  border-left: 5px solid var(--primary-color, #4f46e5);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.policy-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.policy-section h2 {
  color: var(--text-dark, #1a1a1a);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.policy-section p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: var(--text-medium, #444);
}

/* 
Lists within policy sections
*/
.policy-section ul,
.policy-section ol {
  margin-left: 2rem;
  margin-bottom: 1.8rem;
  padding-left: 0.5rem;
}

.policy-section li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1rem;
}

.policy-section li::before {
  content: "▸";
  color: var(--primary-color, #4f46e5);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 
Special highlighted boxes for important notes
*/
.policy-highlight {
  background: linear-gradient(
    135deg,
    var(--primary-light, #eef2ff) 0%,
    #ffffff 100%
  );
  padding: 1.8rem;
  border-radius: 8px;
  margin: 2rem 0;
  border: 2px solid var(--primary-color, #4f46e5);
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.1);
}

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

/* 
Contact information at the end of policy
*/
.policy-contact {
  background: var(--bg-white, #ffffff);
  border: 2px solid var(--border-color, #e0e0e0);
  padding: 2.5rem;
  border-radius: 10px;
  margin-top: 3rem;
  text-align: center;
}

.policy-contact h3 {
  color: var(--text-dark, #1a1a1a);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* 
Links within policy content
*/
.policy-section a,
.policy-contact a {
  color: var(--primary-color, #4f46e5);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted transparent;
  transition: all 0.2s ease;
}

.policy-section a:hover,
.policy-contact a:hover {
  color: var(--primary-dark, #3730a3);
  border-bottom-color: var(--primary-dark, #3730a3);
}

/* 
=============================================
RESPONSIVE DESIGN FOR POLICY PAGES
=============================================
*/

/* Tablet devices (max-width: 992px) */
@media (max-width: 992px) {
  .policy-container {
    margin: 2.5rem auto;
    padding: 0 1.5rem;
  }

  .policy-header h1 {
    font-size: 2.4rem;
  }

  .policy-section {
    padding: 1.8rem;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .policy-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .policy-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
  }

  .policy-header h1 {
    font-size: 2rem;
  }

  .policy-section {
    padding: 1.5rem;
    margin-bottom: 2.2rem;
  }

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

  .policy-section ul,
  .policy-section ol {
    margin-left: 1.5rem;
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .policy-header h1 {
    font-size: 1.75rem;
  }

  .policy-section {
    padding: 1.2rem;
  }

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

  .policy-contact {
    padding: 1.8rem;
  }

  .policy-highlight {
    padding: 1.5rem;
  }
}

/* 
=============================================
DARK MODE SUPPORT (Optional)
=============================================
*/
@media (prefers-color-scheme: dark) {
  .policy-section {
    background: var(--bg-dark-light, #2d3748);
    border-left-color: var(--primary-light, #818cf8);
  }

  .policy-header h1,
  .policy-section h2 {
    color: var(--text-light, #f7fafc);
  }

  .policy-section p {
    color: var(--text-light-medium, #cbd5e0);
  }

  .policy-section li::before {
    color: var(--primary-light, #818cf8);
  }
}
