/* ════════════════════════════════════════════════════════════
   TEXT PAGES — default page template (privacy, terms, articles…)
   Uses the tokens from redesign.css
════════════════════════════════════════════════════════════ */

.text-page__hero {
  padding: 64px var(--page-pad) 48px;
  background: var(--c-soft);
}
.text-page__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.text-page__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: #8A95A6;
}
.text-page__crumbs a { color: #626B7A; transition: color .2s; }
.text-page__crumbs a:hover { color: var(--c-red); }
.text-page__crumbs [aria-current="page"] { color: var(--c-navy); }

.text-page__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--c-navy);
}
.text-page__lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--c-text);
}

.text-page__body {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px var(--page-pad) 96px;
  box-sizing: content-box;
}
.text-page__cover {
  margin: 0 0 40px;
  overflow: hidden;
  border-radius: 24px;
}
.text-page__cover img { display: block; width: 100%; height: auto; }

/* ─── Content typography ─────────────────────────────────── */
.entry-content {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: var(--c-text);
  overflow-wrap: break-word;
}
.entry-content > * + * { margin-top: 20px; }
.entry-content > :first-child { margin-top: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--c-navy);
  scroll-margin-top: 110px;
}
.entry-content h2 {
  margin-top: 48px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 38px;
}
.entry-content h3 {
  margin-top: 36px;
  font-family: var(--font-head);
  font-size: 22px;
  line-height: 30px;
}
.entry-content h4 {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}
.entry-content h5,
.entry-content h6 {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.entry-content h6 { color: #626B7A; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * { margin-top: 12px; }

.entry-content p { margin-bottom: 0; }
.entry-content strong,
.entry-content b { font-weight: 600; color: var(--c-navy); }

.entry-content a {
  color: var(--c-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}
.entry-content a:hover { color: var(--c-red-d); }

/* Lists with red markers */
.entry-content ul,
.entry-content ol {
  margin-bottom: 0;
  padding-left: 24px;
}
.entry-content li + li { margin-top: 8px; }
.entry-content li > ul,
.entry-content li > ol { margin-top: 8px; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li {
  position: relative;
  padding-left: 22px;
}
.entry-content ul > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
}
.entry-content ol { list-style: decimal; }
.entry-content ol > li::marker { color: var(--c-red); font-weight: 600; }

.entry-content blockquote,
.entry-content .wp-block-quote {
  margin-left: 0;
  margin-right: 0;
  padding: 20px 24px;
  border-left: 3px solid var(--c-red);
  border-radius: 0 16px 16px 0;
  background: var(--c-soft);
  font-size: 18px;
  line-height: 28px;
  color: var(--c-navy);
}
.entry-content blockquote p + p { margin-top: 12px; }
.entry-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: #626B7A;
}

.entry-content hr,
.entry-content .wp-block-separator {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--c-line);
}

/* Images & media */
.entry-content img { max-width: 100%; height: auto; border-radius: 16px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: #626B7A;
}
.entry-content .alignleft { float: left; margin: 4px 24px 16px 0; }
.entry-content .alignright { float: right; margin: 4px 0 16px 24px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content iframe,
.entry-content video { max-width: 100%; border: 0; border-radius: 16px; }
.entry-content .wp-block-embed__wrapper { position: relative; }

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  font-size: 15px;
  line-height: 22px;
}
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th,
.entry-content td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
}
.entry-content th + th,
.entry-content td + td { border-left: 1px solid var(--c-line); }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table tfoot { border-top: 0; }
.entry-content th { background: var(--c-soft); font-weight: 600; color: var(--c-navy); }
.entry-content tr:last-child > td { border-bottom: 0; }

/* Code */
.entry-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--c-soft);
  font-size: .9em;
}
.entry-content pre {
  overflow-x: auto;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--c-dark);
  color: #EDF1F8;
  font-size: 14px;
  line-height: 22px;
}
.entry-content pre code { padding: 0; background: none; }

/* Gutenberg buttons in the site style */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: var(--c-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: background-color .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--c-red-d); color: #fff; }
.entry-content .is-style-outline .wp-block-button__link {
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-red);
}

.text-page__pages {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
}

/* Clear floats at the end of content */
.entry-content::after { content: ''; display: table; clear: both; }

@media (max-width: 991px) {
  .text-page__hero { padding: 40px 16px 32px; }
  .text-page__title { font-size: 34px; line-height: 40px; }
  .text-page__lead { font-size: 16px; line-height: 24px; }
  .text-page__body { padding: 32px 16px 56px; }
  .entry-content { font-size: 16px; line-height: 26px; }
  .entry-content h2 { margin-top: 36px; font-size: 26px; line-height: 32px; }
  .entry-content h3 { margin-top: 28px; font-size: 20px; line-height: 28px; }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; margin: 0 0 16px; }
}
