/* ============================
   Terms Page
   ============================ */
body {
  font-size: 0.82rem;          
  line-height: 1.4;          
  color: #2f3a34;
}

/* Headings (top level) */
h1,
h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

/* Section headings */
h3 {
  font-size: 0.88rem;
}

/* Paragraph spacing */
p {
  margin-bottom: 0.4rem;
}

/* ============================
   Card Header Styling
   ============================ */
.terms-page .card h2 {
  margin: -30px -30px 18px -30px;
  padding: 15px 20px;
  background: var(--color-bg-light);
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-accent);
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
}

/* ============================
   Terms Body Content
   ============================ */
.terms-body h3 {
  color: var(--color-primary);
  margin-top: 1.1rem;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.terms-body p,
.terms-body li {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--color-text);

  /* Justified text for legal feel */
  text-align: justify;
  text-justify: inter-word;
}

.terms-body ul {
  padding-left: 18px;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}

.terms-body li {
  margin-bottom: 0.2rem;
}

.terms-date {
  margin-bottom: 0.7rem;
}

/* ============================
   Embedded Terms Mode
   ============================ */
body.embed-mode {
  background: #fff;
  margin: 0;
  min-height: auto;
}

/* Hide chrome */
body.embed-mode header,
body.embed-mode footer {
  display: none !important;
}

/* Full-width layout */
body.embed-mode main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Flatten card */
body.embed-mode .card {
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 18px;
}

/* Header becomes inline */
body.embed-mode .card h2 {
  margin: 0 0 12px 0;
  padding: 0;
  background: none;
  border-bottom: none;
  border-radius: 0;
  font-size: 1rem;
}

/* Slightly tighter spacing for modal feel */
body.embed-mode .terms-body h3 {
  margin-top: 0.9rem;
}

/* ============================
   Mobile Adjustment
   ============================ */
@media (max-width: 600px) {
  .terms-body p,
  .terms-body li {
    text-align: left;   
  }
}