/* Purely Legal Pages - Mobile-First Stylesheet */
/* PurelyTheme: SageGreen #7C9A82 | WarmBeige #F5F0E8 | Cream #FAF8F3 | DarkForest #2D3B30 | MediumSage #4A5D4E | BeigeDark #D4C9B8 */

/* ---- Base (mobile: 375px+) ---- */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2D3B30;
  background: #F5F0E8;
  margin: 0;
  padding: 16px;
}

h1 {
  color: #7C9A82;
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 4px;
  line-height: 1.3;
}

h2 {
  color: #7C9A82;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #D4C9B8;
  padding-bottom: 6px;
  margin-top: 32px;
  margin-bottom: 12px;
}

h3 {
  color: #4A5D4E;
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  margin-top: 0;
  margin-bottom: 14px;
}

a {
  color: #4A5D4E;
  text-decoration: underline;
}

a:hover {
  color: #7C9A82;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 600;
}

/* ---- Summary Box ---- */

.summary-box {
  background: #FAF8F3;
  border: 1.5px solid #7C9A82;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.summary-box ul {
  margin: 0;
  padding-left: 20px;
}

.summary-box li {
  font-weight: 500;
  color: #2D3B30;
  margin-bottom: 4px;
}

/* ---- Meta / Dates ---- */

.meta {
  font-size: 14px;
  color: #4A5D4E;
  margin-bottom: 24px;
}

/* ---- Third-Party Processors Table (card layout on mobile) ---- */

/* Hide column headers on mobile — labels shown via data-label::before on each cell */
.processors-table thead {
  display: none;
}

.processors-table {
  width: 100%;
  border-spacing: 0;
  margin-bottom: 14px;
}

.processors-table tr {
  display: block;
  border: 1px solid #D4C9B8;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #FAF8F3;
}

.processors-table td {
  display: block;
  font-size: 14px;
  padding: 0;
  margin-bottom: 4px;
  border: none;
}

.processors-table td:first-child {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.processors-table td::before {
  content: attr(data-label);
  display: inline;
  font-weight: 600;
  color: #4A5D4E;
  margin-right: 4px;
}

.processors-table td:first-child::before {
  content: none;
}

/* ---- Footer ---- */

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #D4C9B8;
  font-size: 13px;
  color: #4A5D4E;
}

footer a {
  color: #4A5D4E;
}

/* ---- Desktop (min-width: 640px) ---- */

@media (min-width: 640px) {
  body {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 19px;
  }

  /* Restore table layout on desktop */
  .processors-table {
    border-collapse: collapse;
  }

  .processors-table thead tr {
    display: table-row;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: none;
  }

  .processors-table thead th {
    display: table-cell;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #4A5D4E;
    border-bottom: 2px solid #D4C9B8;
    background: none;
  }

  .processors-table tbody tr {
    display: table-row;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: none;
  }

  .processors-table tbody td {
    display: table-cell;
    padding: 10px;
    font-size: 14px;
    border-bottom: 1px solid #D4C9B8;
    vertical-align: top;
    margin: 0;
  }

  .processors-table tbody td:first-child {
    font-weight: 500;
    font-size: 14px;
    margin: 0;
  }

  .processors-table td::before {
    content: none;
  }
}
