/* Legal documents (/privacy-policy/, /personal-data-consent/) and the shared
   consent block every public form renders.

   Deliberately one small stylesheet rather than theme edits: these pages sit
   inside the Aspro content column and only need readable typography, a table
   that does not force the page horizontally on a phone, and a consent block
   whose checkbox and its two document links are visibly separate things. */

.skbpa-legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 56px;
  font-size: 15px;
  line-height: 1.7;
  color: #2b3038;
}

.skbpa-legal h2 {
  font-size: 19px;
  line-height: 1.35;
  margin: 34px 0 12px;
  font-weight: 700;
  overflow-wrap: break-word;
}

.skbpa-legal p { margin: 0 0 12px; }
.skbpa-legal ul { margin: 0 0 14px; padding-left: 22px; }
.skbpa-legal li { margin-bottom: 6px; }

.skbpa-legal__lead {
  font-size: 16px;
  padding: 16px 18px;
  background: #f5f7fa;
  border-left: 3px solid #c8d2de;
  border-radius: 0 6px 6px 0;
  margin-bottom: 8px;
}

.skbpa-legal__note {
  padding: 12px 16px;
  background: #fff8e6;
  border-left: 3px solid #e0a800;
  border-radius: 0 6px 6px 0;
}

/* Wide requisite tables scroll INSIDE their own container -- never the page. */
.skbpa-legal__table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14.5px;
}
.skbpa-legal__table th,
.skbpa-legal__table td {
  border: 1px solid #e3e7ec;
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.skbpa-legal__table th {
  background: #f7f9fb;
  font-weight: 600;
  width: 34%;
  min-width: 180px;
}

.skbpa-legal__version {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid #e3e7ec;
  font-size: 13.5px;
  color: #6b7480;
}
.skbpa-legal__seealso { font-size: 14px; }

@media (max-width: 767px) {
  .skbpa-legal { font-size: 14.5px; padding-bottom: 40px; }
  .skbpa-legal h2 { font-size: 17px; }
  .skbpa-legal__table th { width: auto; min-width: 140px; }
}

/* ---------------------------------------------------------------------------
   Shared consent block (skbpaLegalRenderConsent()).

   The checkbox row and the links row are separate blocks on purpose: when the
   links live inside the <label>, clicking one to READ the document also
   toggles the checkbox, which is precisely the "ambiguous consent" this
   replaces.
--------------------------------------------------------------------------- */
.skbpa-consent { margin: 18px 0 6px; }

.skbpa-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.skbpa-consent__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  cursor: pointer;
  accent-color: #d0121b;
}
.skbpa-consent__box:focus-visible { outline: 2px solid #d0121b; outline-offset: 2px; }

.skbpa-consent__label {
  font-size: 14.5px;
  line-height: 1.45;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}
.skbpa-consent__label i { font-style: normal; color: #d0121b; }

.skbpa-consent__links {
  margin: 6px 0 0 28px;
  font-size: 13px;
  line-height: 1.55;
  color: #6b7480;
}
.skbpa-consent__links a { color: #2b6cb0; text-decoration: underline; }
.skbpa-consent__links a:hover,
.skbpa-consent__links a:focus-visible { color: #d0121b; }
