/* Linked from baseof only on Section "legal". The text card is ported from iprx-js-landing
   web-content-render.js, the Trust & Legal page (.legal-hub) from its pages/trust-and-legal.js. */

.body--legal { background: var(--surface-chip); }
.body--legal .site-footer { margin-top: 0; }

/* The band is the page background, as on the blog index and the store; the art
   starts under the header card. */
.legal-hero { position: relative; overflow-x: clip; }
.legal-hero-bg {
  position: absolute;
  top: -110px;
  right: 0;
  height: calc(100% + 110px);
  width: auto;
  max-width: none;
  opacity: .2;
  pointer-events: none;
}
.legal-hero-inner { position: relative; padding-top: 8px; padding-bottom: 40px; }
.legal-hero .breadcrumbs { padding: 0 0 8px; }
.legal-hero .breadcrumbs [aria-current] { white-space: nowrap; }
.legal-title {
  font-size: 45px;
  font-weight: 500;
  line-height: 55px;
  margin: 4px 0 0;
}
.legal-band { background: #fff; padding: 1px 0; }

.legal-body {
  max-width: 1100px;
  margin: 50px auto;
  padding: 30px;
  border: 1px solid #E6E6FF;
  border-radius: 10px;
  color: var(--text);
}
.legal-body h2 { font-size: 24px; font-weight: 700; line-height: 1.5; margin: 15px 0; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 16px; line-height: 1.5; text-align: justify; }
.legal-body ul {
  margin: 0 0 16px;
  padding: 15px 15px 15px 35px;
  background: #F7FBFF;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.5;
}
.legal-body ol { font-size: 16px; line-height: 1.5; }
.legal-body a { color: #244EB3; text-decoration: none; transition: opacity .3s; overflow-wrap: anywhere; }
.legal-body a:hover { opacity: .7; text-decoration: none; }

/* Privacy Policy tables, bordered as on Next. */
.legal-body table {
  border-collapse: collapse;
  border: 1px solid #000;
  border-radius: 0;
  background: var(--surface-table);
  font-size: 16px;
}
.legal-body td,
.legal-body tr:last-child td { border: 1px solid #000; padding: 8px; vertical-align: top; }

/* === TRUST & LEGAL (/trust-and-legal/) === */
.legal-hub {
  --hub-green: #0FAB73;
  --hub-magenta: #C163E4;
  --hub-line: rgba(4, 0, 255, .1);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 1.4;
}
.legal-hl { color: var(--hub-green); }
.legal-hub strong { font-weight: 600; }
.hub-section { padding: 40px 0; }
.hub-title {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.hub-text { margin-top: 24px; }

.hub-certificate { display: block; width: 60%; margin: 24px auto 0; transition: opacity .2s; }
.hub-certificate:hover { opacity: .9; }
.hub-certificate img { width: 100%; }

.hub-documents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  list-style: none;
}
.hub-document {
  display: block;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--hub-line);
  border-radius: 10px;
  color: var(--brand-blue);
  transition: opacity .3s;
}
.hub-document:hover { opacity: .7; text-decoration: none; }
.hub-document h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.hub-document p { margin-top: 24px; }

.hub-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 24px;
}
.hub-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 190px;
  padding: 30px 15px;
  border-radius: 10px;
  background: var(--hub-magenta);
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: opacity .3s;
}
.hub-email:hover { opacity: .8; text-decoration: none; }
.hub-email img { width: 70px; height: 70px; }
.hub-email span { display: flex; align-items: center; min-height: 42px; overflow-wrap: anywhere; }
.hub-address { font-style: normal; }
.hub-address strong { display: block; margin-bottom: 15px; }
.hub-address span { display: block; }

/* Blog index cards (style.css .card); a short last row is centred, as on Next. */
.hub-articles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.hub-articles .card { flex: 0 1 calc((100% - 48px) / 3); }

/* The store's sign-up block (store.css .st-signup). */
.hub-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}
.hub-signup h2 { font-size: 26px; font-weight: 500; }
.hub-button {
  margin-top: 15px;
  padding: 15px 50px;
  border-radius: 84px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: opacity .3s;
}
.hub-button:hover { opacity: .8; text-decoration: none; }

@media (max-width: 992px) {
  .legal-hero-bg { display: none; }
  .hub-documents { grid-template-columns: repeat(2, 1fr); }
  .hub-articles .card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 768px) {
  .legal-hero-inner { padding-bottom: 24px; }
  .legal-body { margin: 24px auto; padding: 20px 16px; }
  .hub-section { padding: 30px 0; }
  .hub-title { font-size: 34px; }
  .hub-certificate { width: 100%; }
}
@media (max-width: 600px) {
  .hub-documents { grid-template-columns: 1fr; }
  .hub-articles .card { flex-basis: 100%; }
}
@media (max-width: 500px) {
  .legal-title { font-size: 24px; line-height: 28px; }
  .legal-body p, .legal-body ul { font-size: 14px; }
}
@media (max-width: 480px) {
  .legal-hub { font-size: 14px; }
  .hub-section { padding: 20px 0; }
  .hub-title { font-size: 26px; }
  .hub-text,
  .hub-document p { margin-top: 17px; }
  .hub-document { padding: 20px 10px; }
  .hub-document h3 { font-size: 16px; }
  .hub-email { padding: 10px; gap: 5px; }
  .hub-email img { width: 50px; height: 50px; }
  .hub-signup h2 { font-size: 24px; }
}
