/* CMS-driven legal/info pages — light theme matching Figma */

body.content-page {
  background: var(--white, #ffffff);
  color: var(--dark, rgba(4, 2, 15, 1));
  min-height: 100vh;
  margin: 0;
  padding-bottom: 110px;
  font-family: var(--font-family, "Fira Sans", Helvetica, Arial, sans-serif);
}

.content-page-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--neon-green, rgba(200, 255, 0, 1));
  max-width: 100%;
  color: var(--dark, rgba(4, 2, 15, 1));
}

.content-page-header-bar .top-logo img {
  height: 32px;
  width: auto;
}

.content-page-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.content-page-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--purple, rgba(118, 34, 240, 1));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}

.content-page-cta:hover {
  background: rgba(65, 5, 153, 1);
}

.content-page-cta:active {
  transform: translateY(1px);
}

@media (min-width: 481px) {
  .content-page-cta {
    display: inline-flex;
  }
}

.content-page-marketing {
  background: linear-gradient(135deg,
      rgba(118, 34, 240, 1) 0%,
      rgba(65, 5, 153, 1) 100%);
  color: #ffffff;
  padding: 28px 18px;
  margin-top: 24px;
}

.content-page-marketing-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

@media (min-width: 600px) {
  .content-page-marketing-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.content-page-marketing-copy h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.content-page-marketing-copy p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.45;
}

.content-page-marketing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--neon-green, rgba(200, 255, 0, 1));
  color: var(--dark, rgba(4, 2, 15, 1));
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, transform 0.05s ease;
}

.content-page-marketing-cta:hover {
  background: #d6ff33;
}

.content-page-marketing-cta:active {
  transform: translateY(1px);
}

/* ---------------------------------------------------------------------------
 * Footer styles — light theme matching the rest of the content page.
 *
 * The shared footer partial (views/partials/footer.ejs) uses .footer / .frame-46
 * / .frame-47 / .text-wrapper-17/18/19 classes. The homepage scopes these under
 * `.homepage .footer` (dark hero), so on content pages the markup renders
 * unstyled by default. Scoping under `body.content-page .footer` gives us the
 * same shape but with light-theme tokens.
 * -------------------------------------------------------------------------*/
body.content-page .footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 100%;
  background: var(--white, #ffffff);
  border-top: 1px solid var(--medium-grey, rgba(229, 231, 230, 1));
  padding: 24px 18px 16px;
  box-sizing: border-box;
}

body.content-page .footer .frame-46 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px 48px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

body.content-page .footer .frame-47 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.content-page .footer .text-wrapper-17 {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey, rgba(137, 144, 174, 1));
  margin-bottom: 6px;
}

body.content-page .footer .text-wrapper-18 {
  font-size: 15px;
  font-weight: 600;
  color: var(--purple, rgba(118, 34, 240, 1));
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

body.content-page .footer .text-wrapper-18 a {
  color: inherit;
  text-decoration: none;
}

body.content-page .footer .text-wrapper-18:hover,
body.content-page .footer .text-wrapper-18 a:hover {
  color: rgba(65, 5, 153, 1);
}

body.content-page .footer .text-wrapper-19 {
  font-size: 13px;
  color: var(--grey, rgba(137, 144, 174, 1));
  margin: 16px auto 0;
  max-width: 800px;
  width: 100%;
}

/* Logout button only renders for signed-in users — hide on content pages
 * since this footer block already serves the public-facing flavour. The
 * side-menu provides the logout entry for signed-in users. */
body.content-page .footer .logout-footer-item {
  display: none;
}

.content-page-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 18px 32px;
  box-sizing: border-box;
}

.content-page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.content-page-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--medium-grey, rgba(229, 231, 230, 1));
  background: var(--ligh-grey, rgba(243, 246, 246, 1));
  color: var(--dark, rgba(4, 2, 15, 1));
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-family, "Fira Sans", Helvetica, Arial, sans-serif);
}

.content-page-back:hover {
  background: var(--medium-grey, rgba(229, 231, 230, 1));
  border-color: var(--purple, rgba(118, 34, 240, 1));
}

.content-page-back:focus-visible {
  outline: 2px solid var(--purple, rgba(118, 34, 240, 1));
  outline-offset: 2px;
}

.content-page-breadcrumb {
  flex: 1 1 200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.88rem;
  color: var(--grey, rgba(137, 144, 174, 1));
  min-width: 0;
}

.content-page-breadcrumb a {
  color: var(--purple, rgba(118, 34, 240, 1));
  text-decoration: none;
  font-weight: 600;
}

.content-page-breadcrumb a:hover {
  text-decoration: underline;
}

.content-page-breadcrumb .bc-sep {
  color: var(--medium-grey, rgba(229, 231, 230, 1));
  user-select: none;
}

.content-page-breadcrumb .bc-current {
  color: var(--dark, rgba(4, 2, 15, 1));
  font-weight: 600;
  word-break: break-word;
}

.content-page-card {
  background: var(--white, #ffffff);
  border: none;
  border-radius: 0;
  padding: 0;
}

.content-page-loading,
.content-page-error {
  text-align: center;
  padding: 48px 16px;
  color: var(--grey, rgba(137, 144, 174, 1));
  font-size: 0.95rem;
}

.content-page-error {
  color: var(--red, rgba(234, 55, 54, 1));
}

.content-page-error a {
  color: var(--purple, rgba(118, 34, 240, 1));
}

/* Prose — CKEditor / Strapi rich text */
.content-page-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark, rgba(4, 2, 15, 1));
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.content-page-prose > *:first-child {
  margin-top: 0;
}

.content-page-prose > *:last-child {
  margin-bottom: 0;
}

.content-page-prose h1,
.content-page-prose h2,
.content-page-prose h3,
.content-page-prose h4 {
  color: var(--dark, rgba(4, 2, 15, 1));
  font-weight: 700;
  line-height: 1.25;
  margin: 1.35em 0 0.55em;
}

.content-page-prose h1 {
  font-size: 1.65rem;
}

.content-page-prose h2 {
  font-size: 1.35rem;
}

.content-page-prose h3 {
  font-size: 1.15rem;
}

.content-page-prose h4 {
  font-size: 1.05rem;
}

.content-page-prose p {
  margin: 0 0 1em;
  color: rgba(4, 2, 15, 0.8);
}

.content-page-prose ul,
.content-page-prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}

.content-page-prose li {
  margin: 0.35em 0;
  color: rgba(4, 2, 15, 0.8);
}

.content-page-prose a {
  color: var(--purple, rgba(118, 34, 240, 1));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page-prose a:hover {
  color: rgba(65, 5, 153, 1);
}

.content-page-prose img,
.content-page-prose video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1.25em auto;
}

.content-page-prose iframe {
  max-width: 100%;
  width: 100%;
  min-height: 200px;
  border: none;
  border-radius: 10px;
  display: block;
  margin: 1.25em auto;
}

.content-page-prose blockquote {
  margin: 1.25em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--purple, rgba(118, 34, 240, 1));
  background: rgba(118, 34, 240, 0.06);
  border-radius: 0 10px 10px 0;
  color: rgba(4, 2, 15, 0.75);
}

.content-page-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25em 0;
  font-size: 0.92rem;
}

.content-page-prose th,
.content-page-prose td {
  border: 1px solid var(--medium-grey, rgba(229, 231, 230, 1));
  padding: 10px 12px;
  text-align: left;
}

.content-page-prose th {
  background: var(--ligh-grey, rgba(243, 246, 246, 1));
  color: var(--dark, rgba(4, 2, 15, 1));
  font-weight: 600;
}

.content-page-prose hr {
  border: none;
  border-top: 1px solid var(--medium-grey, rgba(229, 231, 230, 1));
  margin: 2em 0;
}

.content-page-prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ligh-grey, rgba(243, 246, 246, 1));
  border: 1px solid var(--medium-grey, rgba(229, 231, 230, 1));
  font-size: 0.88rem;
  line-height: 1.5;
}

.content-page-prose code {
  font-size: 0.9em;
  background: var(--ligh-grey, rgba(243, 246, 246, 1));
  padding: 0.15em 0.4em;
  border-radius: 6px;
}

.content-page-prose pre code {
  background: none;
  padding: 0;
}

@media (min-width: 900px) {
  .content-page-shell {
    padding-top: 24px;
  }
}
