/* Base styling for static information pages (FAQ, contact, etc.). */
body.info-page {
  background-color: #f2f7f1;
  color: #1b3324;
}

/* Center column that constrains info page content. */
.info-main {
  width: 100%;
  max-width: 960px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* Raised card used for general info sections. */
.info-card {
  background-color: #fff;
  border-radius: 18px;
  padding: 2.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Stack multiple info cards vertically with clear spacing. */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Headings inside the info cards. */
.info-card h1,
.info-card h2,
.info-card h3 {
  color: #1f4734;
  margin: 0 0 0.25em 0;
}

/* Paragraph and list text styling. */
.info-card p,
.info-card li {
  line-height: 1.6;
  margin: 0;
}

/* Indentation for unordered lists. */
.info-card ul {
  padding-left: 1.5rem;
}

/* Link styling within info content. */
.info-card a {
  color: #1b7a5a;
  font-weight: 600;
}

/* Intro block at the top of each info page. */
.info-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Reusable eyebrow for labeling sections. */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a7a63;
  margin: 0;
}

/* Grid layout for smaller info cards/features. */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Individual tile within the info grid. */
.info-grid article {
  background-color: #f7fbf5;
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(42, 106, 79, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Highlighted panel for contact/prompts. */
.contact-cta {
  background-color: #e4f5eb;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(42, 106, 79, 0.2);
}

/* Layout for the contact form fields. */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Row grouping for form controls (stacks vertically on mobile). */
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Display two inputs side-by-side on larger screens. */
.contact-form .form-row.two-column {
  flex-direction: row;
}

/* Column wrapper for labels + inputs. */
.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

/* Field labels inside the contact form. */
.contact-form .form-field span {
  font-weight: 600;
  color: #1f4734;
}

/* Base input styling for the contact form. */
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(42, 106, 79, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1b3324;
  background-color: #fdfefc;
  transition: border-color 0.2s ease;
}

/* Focus ring for contact form inputs. */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #1b7a5a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 122, 90, 0.15);
}

/* Allow the message textarea to grow vertically. */
.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Column stacking for submit button + helper copy. */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Rounded CTA button at the end of the form. */
.form-actions button {
  align-self: flex-start;
  background-color: #1b7a5a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift for the CTA button. */
.form-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(27, 122, 90, 0.25);
}

/* Small privacy disclaimer text under the button. */
.contact-privacy {
  font-size: 0.9rem;
  color: #3d6753;
  margin: 0;
}

/* Accordion container for FAQ entries. */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual FAQ disclosure card. */
.faq-list details {
  border-radius: 12px;
  border: 1px solid rgba(42, 106, 79, 0.2);
  padding: 1rem 1.25rem;
  background-color: #f8fcf7;
}

/* Clickable summary text for each FAQ item. */
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f4734;
}

/* Grid layout for contributor profiles/bios. */
.contributors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Card for each contributor entry. */
.contributors-list article {
  border-radius: 14px;
  border: 1px solid rgba(42, 106, 79, 0.15);
  padding: 1.5rem;
  background-color: #f7fbf5;
}

/* Divider between sections inside terms card. */
.terms-card section + section {
  border-top: 1px solid rgba(42, 106, 79, 0.15);
  padding-top: 1rem;
  margin-top: 0.75rem;
}

/* Subtext indicating last updated date. */
.updated-copy {
  font-size: 0.9rem;
  color: #3d6753;
}

/* Legend page layout tweaks. */
.legend-card {
  gap: 1.5rem;
}

.legend-intro {
  background-color: #f7fbf5;
  border-radius: 16px;
  border: 1px solid rgba(42, 106, 79, 0.15);
  padding: 1.5rem;
  line-height: 1.6;
}

.legend-intro ul {
  margin: 0.75rem 0 0 1.15rem;
}

.legend-intro li {
  margin-bottom: 0.25rem;
}

.legend-status {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3d6753;
}

.legend-status.is-error {
  color: #b00020;
}

.legend-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legend-section {
  border-radius: 18px;
  border: 1px solid rgba(42, 106, 79, 0.2);
  padding: 1.5rem 1.75rem;
  background-color: #fdfefc;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-section-header h2 {
  margin: 0;
}

.legend-section-caption {
  margin: 0;
  color: #3d6753;
  font-size: 0.95rem;
}

.legend-type-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.legend-type-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid rgba(42, 106, 79, 0.15);
}

.legend-type-row:first-child {
  border-top: none;
  padding-top: 0;
}

.legend-type-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px dashed rgba(42, 106, 79, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background-color: rgba(42, 106, 79, 0.05);
}

.legend-type-icon::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(42, 106, 79, 0.5);
}

.legend-type-icon img {
  display: none;
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.legend-type-icon.has-image {
  border-style: solid;
  background-color: #fff;
}

.legend-type-icon.has-image::after {
  display: none;
}

.legend-type-icon.has-image img {
  display: block;
}

.legend-type-body {
  flex: 1;
}

.legend-type-name {
  margin: 0;
  font-size: 1.05rem;
  color: #1f4734;
}

.legend-type-definition {
  margin: 0.35rem 0 0;
  line-height: 1.6;
  color: #1b3324;
}

/* Simplify spacing and stack form rows on mobile. */
@media (max-width: 600px) {
  .info-card {
    padding: 1.75rem;
  }

  .contact-form .form-row.two-column {
    flex-direction: column;
  }
}
