/* Lebuh Digital policy pages - the app chrome over long-form policy text.
   Brief 2026-11-11-0810: the five /policies/ pages shipped stock Dawn styling (cream page with a
   "Welcome to our store" bar and the Dawn nav). They now carry the same header and footer as the
   app pages, on the LD dark palette: background #0a0a0a, ink #FBF8F0, lime #E3FC02.
   Everything here is scoped to body.policy-page, so no other page in the site moves.
   The policy wording is copied verbatim from the storefront capture; this file only styles it. */

.policy-page {
  background: #0a0a0a;
  color: #fbf8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.policy-page ::selection {
  background: var(--lime);
  color: var(--ink);
}

/* The shared nav keeps the app bar exactly as the app pages draw it (cream bar, black wordmark),
   so the light text inherited from .policy-page is put back to ink inside it. */
.policy-page .nav { color: var(--ink); }

/* Skip link: out of sight until it has focus, then a lime pill over the nav. */
.policy-skip {
  position: absolute;
  left: 10px;
  top: -56px;
  z-index: 30;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 700 14px/1 var(--body);
  text-decoration: none;
}

.policy-skip:focus { top: 10px; }

.policy-main {
  flex: 1 0 auto;
  padding: clamp(30px, 6vw, 72px) 0 clamp(46px, 8vw, 96px);
}

/* One comfortable reading column: 72 characters, which is the long-form width that keeps a
   paragraph from running the full 1440px screen. */
.policy-main .shopify-policy__container,
.policy-main .template-404 {
  width: 100%;
  max-width: 72ch;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.policy-main .shopify-policy__title {
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 4vw, 34px);
  border-bottom: 3px solid var(--lime);
}

.policy-main .shopify-policy__title h1 {
  margin: 0;
  font-family: var(--h1);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fbf8f0;
}

/* ----------------------------------------------------------------- body copy */
.policy-main .shopify-policy__body,
.policy-main .rte {
  color: #fbf8f0;
  font: 400 clamp(15.5px, 2.2vw, 17px)/1.7 var(--body);
}

.policy-main .rte p { margin: 0 0 1.05em; }

.policy-main .rte h2 {
  margin: 1.9em 0 0.55em;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(19px, 3.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fbf8f0;
}

.policy-main .rte h3 {
  margin: 1.5em 0 0.45em;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(17px, 2.8vw, 20px);
  line-height: 1.3;
  color: #fbf8f0;
}

.policy-main .rte ul,
.policy-main .rte ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

.policy-main .rte li { margin: 0 0 0.55em; }
.policy-main .rte li::marker { color: var(--lime); }

.policy-main .rte strong,
.policy-main .rte b {
  font-weight: 700;
  color: #ffffff;
}

.policy-main .rte a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.policy-main .rte a:hover {
  text-decoration-thickness: 2px;
  color: #ffffff;
}

/* 0722 note: the clone's mailto links carry no class, so the lime link rule above is the whole
   of the link styling. Nothing here targets a global selector. */

/* ------------------------------------------------- the two pages without a policy body
   /policies/shipping-policy/ and the 404 template the clone captured for it: the words are left
   exactly as captured, only the colours and the button are the brand's. */
.policy-main .template-404 p:first-of-type {
  margin: 0 0 4px;
  font-family: var(--h1);
  font-size: clamp(52px, 14vw, 92px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--lime);
}

.policy-main .template-404 .title {
  margin: 0 0 12px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 32px);
  color: #fbf8f0;
}

.policy-main .template-404 .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font: 700 15px/1 var(--body);
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(251, 248, 240, 0.3);
}

.policy-main .template-404 .button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(251, 248, 240, 0.3); }

/* --------------------------------------------------------------- the footer line
   The app footer is ink on ink; on the #0a0a0a page it needs a hairline to read as a footer. */
.policy-page .footer { border-top: 3px solid rgba(251, 248, 240, 0.16); }
.policy-page .footer a { color: var(--lime); }

/* --------------------------------------------------------------------- mobile */
@media (max-width: 560px) {
  .policy-main { padding-top: 26px; padding-bottom: 44px; }
  .policy-main .shopify-policy__title { padding-bottom: 14px; }
  .policy-main .rte { line-height: 1.65; }
  .policy-main .rte h2 { margin-top: 1.6em; }
  .policy-page .footer { padding: 22px 0 28px; }
}
