*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: #00a254;
}

/* Header (same look as the landing page header) */
.navbar {
  padding: 12px 0;
  background: #f2f5fa;
  border-bottom: 1px solid #e6eaf2;
}

.navbar-logo {
  display: block;
  height: 24px;
  width: auto;
}

.navbar-brand {
  display: inline-block;
}

.navbar-brand-img {
  display: block;
  height: 64px;
  margin: -10px 0 -10px -14px;
  width: auto;
}

/* Content */
.main-container {
  padding-top: 24px;
  padding-bottom: 32px;
}

.title-top {
  margin: 0 0 12px;
  color: #111;
  font-size: 24px;
  line-height: 1.3;
}

.divider {
  height: 1px;
  margin-bottom: 20px;
  background: #eee;
}

.terms-info p {
  margin: 0 0 20px;
}

.terms-item {
  margin-bottom: 20px;
}

.terms-title {
  margin-bottom: 6px;
  color: #111;
  font-size: 17px;
  font-weight: 700;
}

.terms-text ul {
  margin: 8px 0;
  padding-left: 20px;
}

.terms-text li {
  margin-bottom: 4px;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 20px 16px;
  background: #f2f5fa;
  border-top: 1px solid #e6eaf2;
  text-align: center;
  font-size: 13px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.footer_link {
  color: #555;
  text-decoration: none;
}

.footer_link:hover {
  text-decoration: underline;
}

.vr {
  width: 1px;
  height: 14px;
  background: #ccc;
}

.footer-rights {
  margin: 0;
  color: #888;
}

@media (max-width: 480px) {
  .title-top {
    font-size: 20px;
  }

  .terms-title {
    font-size: 16px;
  }
}
/* Privacy: list items are already numbered (2.1, 2.2…), and some blocks are empty. */
.privacy-text ul {
  padding-left: 0;
  list-style: none;
}

.terms-info p:empty,
.terms-text:empty {
  display: none;
}

/* Contact */
.contact-item {
  margin-bottom: 20px;
}

#unsubscription_details h3:empty {
  display: none;
}

/* FAQ */
.faq-info p:empty {
  display: none;
}

.accordion {
  margin-top: 8px;
}

.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  margin: 0;
  font-size: 15px;
}

.accordion-button {
  position: relative;
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 0;
  background: #fafafa;
  color: #111;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.accordion-button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #00a254;
  font-size: 20px;
  font-weight: 400;
}

.accordion-button:not(.collapsed)::after {
  content: "\2212";
}

.accordion-collapse:not(.show) {
  display: none;
}

.accordion-body {
  padding: 12px 16px 16px;
}

/* Terms (terms-and-conditions.html): one <p> per numbered line, sub-levels indented */
.tnc-container .title-top {
  font-weight: 800;
  text-transform: uppercase;
}

.tnc-container .terms-item {
  margin-bottom: 28px;
}

.tnc-container .terms-title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #00a254;
  font-size: 16px;
  line-height: 1.4;
}

.tnc-line {
  margin: 0 0 8px;
}

.tnc-line--l2 {
  padding-left: 20px;
}

.tnc-line--l3 {
  padding-left: 40px;
}

@media (max-width: 480px) {
  .tnc-container .terms-title {
    font-size: 15px;
  }

  .tnc-line--l2 {
    padding-left: 12px;
  }

  .tnc-line--l3 {
    padding-left: 24px;
  }
}

/* FAQ (faq.html) */
.faq-container .title-top {
  font-weight: 800;
}

.faq-container .accordion-item {
  margin-bottom: 12px;
  border: 1px solid #e6eaf2;
  border-radius: 10px;
  transition: border-color 0.2s;
}

.faq-container .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: #00a254;
}

.faq-container .accordion-button {
  padding: 16px 48px 16px 16px;
  background: #f2f5fa;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.faq-container .accordion-button:not(.collapsed) {
  background: #fff;
  color: #00a254;
}

.faq-container .accordion-button::after {
  font-size: 22px;
}

.faq-container .accordion-body {
  padding: 4px 16px 16px;
}

.faq-container .accordion-body p {
  margin: 0;
}
