/* Legal Pages Styles - Terms of Service and Privacy Policy */

/* Main Content Area */
main {
  flex: 1;
  padding: 40px 0;
  min-height: calc(100vh - 140px);
  position: relative;
  z-index: 1;
}

/* Legal Content Container */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Legal Header */
.legal-header {
  margin-bottom: 40px;
  padding: 0 0 30px 0;
  border-bottom: 1px solid rgb(60, 60, 60);
  position: relative;
  z-index: 1;
}

.legal-header h1 {
  color: rgb(242, 241, 237) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
}

.legal-header .last-updated {
  color: rgb(180, 180, 180) !important;
  font-size: 14px !important;
  font-style: italic !important;
  font-weight: normal !important;
  margin: 16px 0 0 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
  clear: both !important;
}

/* Legal Sections */
.legal-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgb(60, 60, 60);
}

/* Desktop: Ensure content is always visible and not using grid */
@media (min-width: 769px) {
  .legal-section-content {
    display: block !important;
    grid-template-rows: none !important;
    overflow: visible !important;
  }

  .legal-section-inner {
    overflow: visible !important;
    padding: 0 !important;
  }
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Headings */
.legal-section h2 {
  color: rgb(249, 237, 219);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  /* border-left: 4px solid rgb(249, 237, 219);
  padding-left: 16px; */
}

.legal-section h3 {
  color: rgb(220, 220, 220);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

/* Paragraphs */
.legal-section p {
  color: rgb(200, 200, 200);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

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

/* Lists */
.legal-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-section li {
  color: rgb(200, 200, 200);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
}

.legal-section li::marker {
  color: rgb(249, 237, 219);
}

/* why Sections */
.why-header {
  margin-bottom: 40px;
  padding: 0 0 30px 0;
  border-bottom: 1px solid rgb(60, 60, 60);
  position: relative;
  z-index: 1;
}

.why-header h1 {
  color: rgb(242, 241, 237) !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
}

.why-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.why-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgb(60, 60, 60);
}

.why-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Headings */
.why-section h2 {
  color: rgb(249, 237, 219);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  /* border-left: 4px solid rgb(247, 63, 13);
  padding-left: 16px; */
}

.why-section h3 {
  color: rgb(220, 220, 220);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

/* Paragraphs */
.why-section p {
  color: rgb(200, 200, 200);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

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

/* Lists */
.why-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.why-section li {
  color: rgb(200, 200, 200);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  position: relative;
}

/* .why-section li::marker {
  color: rgb(247, 63, 13);
} */

/* Contact Information */
.contact-info {
  background-color: rgb(50, 50, 50);
  border: 1px solid rgb(65, 65, 65);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.contact-info p {
  color: rgb(242, 241, 237);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: rgb(247, 63, 13);
  font-weight: 600;
}

/* Footer Links Update */
footer .footer-links {
  display: flex;
  gap: 20px;
}

footer .footer-links a {
  color: rgb(249, 237, 219);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 30px 0 20px 0;
    min-height: 0;
  }

  .legal-content {
    padding: 30px 15px 20px 15px;
    margin: 0 0;
  }

  .legal-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  /* Accordion Styles for Mobile */
  .legal-section {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: 1px solid rgb(60, 60, 60);
  }

  .legal-section h2 {
    font-size: 18px;
    margin-bottom: 0;
    padding: 18px 45px 18px 16px;
    border-left: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    background-color: transparent;
    border-bottom: 1px solid rgb(65, 65, 65);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-user-select: none;
    user-select: none;
  }

  .legal-section h2:active {
    background-color: rgb(50, 50, 50);
  }

  .legal-section h2::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: rgb(180, 180, 180);
    transition: transform 0.25s ease, opacity 0.25s ease;
    line-height: 1;
  }

  .legal-section.active h2::after {
    content: "−";
    transform: translateY(-50%);
  }

  .legal-section-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
  }

  .legal-section-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 16px;
  }

  .legal-section.active .legal-section-content {
    grid-template-rows: 1fr;
  }

  .legal-section.active .legal-section-inner {
    padding: 16px 16px;
  }

  .legal-section h3 {
    font-size: 16px;
    margin: 16px 0 10px 0;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.6;
  }

  .legal-section ul {
    padding-left: 20px;
  }

  .contact-info {
    padding: 16px;
  }

  footer .footer-links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .legal-content {
    padding: 25px 15px;
    margin: 0 5px;
  }

  .legal-header h1 {
    font-size: 24px;
  }

  .legal-section h2 {
    font-size: 17px;
    padding: 16px 40px 16px 12px;
  }

  .legal-section h2::after {
    right: 12px;
    font-size: 22px;
  }

  .legal-section-inner {
    padding: 0 12px;
  }

  .legal-section.active .legal-section-inner {
    padding: 12px 12px;
  }

  .legal-section h3 {
    font-size: 15px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14px;
  }

  .legal-section ul {
    padding-left: 18px;
  }
}

/* Print Styles */
@media print {
  body {
    background-color: white;
    color: black;
  }

  header,
  footer {
    display: none;
  }

  .legal-content {
    background-color: white;
    border: none;
    box-shadow: none;
    padding: 20px;
  }

  .legal-header h1,
  .legal-section h2,
  .legal-section h3 {
    color: black;
  }

  .legal-section p,
  .legal-section li {
    color: black;
  }

  .legal-section h2 {
    border-left-color: black;
  }

  .contact-info {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
  }
}
