/* ==========================================================================
   Brikoula inner pages — 2026 redesign
   Brings about / policy / help / download / coming-soon onto the same design
   language as the rebuilt home page (see home.css).

   These selectors intentionally re-use the EXISTING class names from style.css
   rather than renaming markup. This file is loaded last, so equal-specificity
   rules win on source order — no !important, no specificity escalation.
   ========================================================================== */

/* ===================== SHARED PAGE SHELL ===================== */

/* .navbar is position:fixed and reserves no space, so every page hero owns the
   offset itself — same contract as .bk-hero-grid on the home page. */
.policy-hero,
.help-center,
.coming-page,
.download-section {
  background:
    radial-gradient(120% 90% at 80% 0%, var(--sky-soft) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.policy-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 118px 20px 46px;
  text-align: center;
}

.policy-hero-content {
  max-width: 640px;
  margin-inline: auto;
}

.policy-hero h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
  text-transform: capitalize;
  /* opt out of any inherited gradient-text treatment */
  background: none;
  -webkit-text-fill-color: var(--ink);
}

.policy-hero p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Bound by HEIGHT, not width: these mascots have very different aspect ratios,
   and a width-sized tall one overflows the hero and gets clipped by its
   overflow:hidden. */
.policy-mascot {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 4%;
  height: clamp(86px, 13vw, 132px);
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(30, 36, 49, .16));
}

/* ===================== READABLE CONTENT CARD ===================== */

.policy-content {
  background: var(--cream);
  padding: 44px 20px 64px;
}

.policy-container {
  max-width: 820px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 4vw, 44px);
}

/* Long-form legal/about copy: comfortable measure and leading. */
.policy-text {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
}

.policy-text > *:first-child { margin-top: 0; }
.policy-text > *:last-child { margin-bottom: 0; }

.policy-text p { margin: 0 0 1em; }

.policy-text h1,
.policy-text h2,
.policy-text h3,
.policy-text h4,
.policy-text strong b {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

.policy-text h2 {
  font-size: 1.2rem;
  margin: 1.8em 0 .6em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line);
}

.policy-text h3 { font-size: 1.02rem; margin: 1.5em 0 .5em; }

.policy-text ul,
.policy-text ol { margin: 0 0 1em; padding-inline-start: 1.3em; }

.policy-text li { margin-bottom: .4em; }

.policy-text a {
  color: var(--brand-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-text a:hover { color: var(--brand); }

/* aboutUsContent / termOfUseContent are plain TextAreas — no markup at all, so
   line breaks are all the structure there is. Give them room to breathe. */
.policy-text.is-plain {
  white-space: pre-line;
}

/* ========================= HELP CENTRE ========================= */

.help-center {
  padding: 118px 0 64px;
}

.help-center__content {
  /* was full-bleed: the text ran flush to the viewport edge */
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: 32px;
  align-items: center;
}

.help-center__text h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  background: none;
  -webkit-text-fill-color: var(--ink);
}

.help-center__text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

.help-center__image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(30, 36, 49, .18));
}

/* ========================== COMING SOON ========================== */

.coming-page {
  padding: 118px 20px 72px;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.coming-container {
  max-width: 520px;
}

.coming-gif {
  width: min(200px, 60%);
  height: auto;
  margin-bottom: 18px;
}

.coming-page h1 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 10px;
  background: none;
  -webkit-text-fill-color: var(--ink);
}

.coming-page p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}

/* Was the pre-token teal (#00b8d4); every CTA is brand orange now. */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform .18s ease, background-color .18s ease;
}

.back-home:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.back-home:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* =========================== DOWNLOAD =========================== */

.download-section {
  padding: 118px 0 64px;
}

.download-section .section-title {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  background: none;
  -webkit-text-fill-color: var(--ink);
}

.download-section .section-subtitle {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  max-width: 46ch;
  margin-inline: auto;
}

/* The two blocks are independent columns; centring them vertically left the
   headings on different baselines. */
.download-section .row.align-items-center { align-items: stretch; }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Badges ship at wildly different intrinsic sizes — normalise to one height. */
.store-buttons .store-btn {
  height: 44px;
  width: auto;
  border-radius: 8px;
  transition: transform .18s ease;
}

.store-link:hover .store-btn { transform: translateY(-2px); }
.store-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.coming-soon-btn { opacity: .55; filter: grayscale(1); cursor: default; }

/* Extra links were inline-styled to the pre-token teal and rendered as bare
   text; they're real downloads, so they read as buttons now. */
.download-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.download-link:hover {
  border-color: var(--brand);
  color: var(--brand-700);
  transform: translateY(-2px);
}

.download-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.download-section .img-fluid { border-radius: 14px; }

/* =========================== RESPONSIVE =========================== */

@media (max-width: 900px) {
  .help-center__content { grid-template-columns: 1fr; text-align: center; }
  .help-center__text p { max-width: none; margin-inline: auto; }
  .policy-mascot { height: 84px; opacity: .9; }
}

@media (max-width: 720px) {
  .policy-hero { padding: 96px 18px 38px; }
  .help-center,
  .download-section { padding-top: 96px; }
  .coming-page { padding-top: 96px; }
  .policy-content { padding: 28px 16px 48px; }
  .policy-mascot { position: static; height: 78px; margin: 14px auto 0; display: block; }
  .policy-hero { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .back-home,
  .download-link,
  .store-buttons .store-btn { transition: none; }

  .back-home:hover,
  .download-link:hover,
  .store-link:hover .store-btn { transform: none; }
}
