/* nuvena.co/legal (Terms & Policies) and /signin, in the site's one standard look (owner, 5 Oct 2026). Built on the
   site's /styles.css: its colours (--ink, --slate, --muted, --line, --blue), type, .container, .button, .eyebrow,
   .pg-head (the centred page head), .pg-body, .pg-card, .pg-ico and .pg-form (its form fields). This adds only what these
   two pages have of their own: the policy's contents list and text, and the sign-in layout. */

/* a page that scrolls sideways is never wanted; clip (not hidden) keeps the sticky contents list working */
body { overflow-x: clip; }
/* each policy part lands just under the header by its own scroll-margin (pages.js reads it to know which part is being read), not that plus the site-wide scroll padding */
html { scroll-padding-top: 0; }
.pg { color: var(--ink); }
.pg svg.pg-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pg [hidden] { display: none !important; }

/* Terms & Policies: a thin contents list on the left that marks the part being read (pages.js), the text on the right */
.pg-lsec { padding-top: clamp(8px, 2vh, 24px); }
.pg-legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1180px; }
.pg-lnav { position: sticky; top: 104px; display: grid; max-height: calc(100vh - 128px); overflow-y: auto; border-left: 1px solid var(--line); scrollbar-width: none; }
.pg-lnav::-webkit-scrollbar { display: none; }
.pg-lnav a { margin-left: -1px; padding: 5px 0 5px 16px; border-left: 2px solid transparent; font: 500 13.5px/1.35 var(--ui); color: var(--muted); transition: color .2s, border-color .2s; }
.pg-lnav a:hover { color: var(--ink); }
.pg-lnav a[aria-current="true"] { border-left-color: var(--blue); font-weight: 600; color: var(--ink); }
.pg-lgroup { padding: 18px 0 6px 16px; font: 600 10.5px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.pg-lgroup:first-child { padding-top: 2px; }
.pg-lgroup:empty { padding: 8px 0 0; }
.pg-ldoc { display: grid; gap: clamp(32px, 5vh, 48px); min-width: 0; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -38px #10193559; }
.pg-ldoc > section { scroll-margin-top: 104px; }
.pg-ldoc .pg-updated { margin: 0 0 -12px; font: 500 13px var(--ui); color: var(--muted); }
.pg-ldoc h2 { margin: 0; font-size: clamp(22px, 2vw, 27px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.pg-ldoc h3 { margin: 22px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.pg-ldoc .pg-lkicker { margin: 16px 0 10px; padding-top: 28px; border-top: 1px solid var(--line); font: 600 10.5px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); }
.pg-ldoc > section:first-of-type .pg-lkicker { margin-top: 0; padding-top: 0; border-top: 0; }
.pg-ldoc p, .pg-ldoc li { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--slate); }
.pg-ldoc ul { margin: 6px 0 0; padding: 0; list-style: none; }
.pg-ldoc li { position: relative; padding-left: 20px; margin-top: 6px; }
.pg-ldoc li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.pg-ldoc a { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.pg-ldl { margin: 14px 0 0; border-top: 1px solid var(--line); }
.pg-ldl > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pg-ldl dt { font-size: 15.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.pg-ldl dd { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--slate); }
.pg-ldl + p { margin-top: 14px; }
/* long reading text is justified, with hyphens so the spaces stay even (owner, 2026-10-05) */
.pg-ldoc p:not(.pg-updated):not(.pg-lkicker), .pg-ldoc li, .pg-ldl dd { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.pg-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.pg-trust > div { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.pg-trust b { display: block; font-size: 15.5px; font-weight: 600; }
.pg-trust p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; text-align: left !important; }
.pg-trust .pg-ico { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.pg-ck { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; }
.pg-ck .button { min-width: 132px; margin: 0; }
.pg-ck .button:hover { transform: none; }
.pg-ck p { flex: 1 1 100%; margin: 4px 0 0; font-size: 15px; text-align: left !important; }

/* Sign in: the words on the left, the form card on the right */
.pg-signin-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: 1180px; }
.pg-signin .eyebrow { justify-content: flex-start; }
.pg-signin h1 { text-align: left; }
.pg-signin .pg-sub { margin-left: 0; text-wrap: pretty; }
.pg-points { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.pg-points li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; color: var(--ink); }
.pg-points .pg-ico { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
#pg-signin { padding: clamp(24px, 3vw, 36px); border-radius: 24px; }
#pg-signin h2 { margin: 0; font-size: clamp(21px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; }
#pg-signin [data-step] > p { margin-top: 6px; font-size: 15px; color: var(--slate); }
#pg-signin form { display: grid; gap: 14px; margin-top: 22px; }
#pg-signin label { display: grid; gap: 7px; font: 500 13.5px var(--ui); color: var(--slate); }
#pg-signin input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfc; font: 500 16px var(--font); color: var(--ink); }
#pg-signin input:focus { outline: none; border-color: var(--blue); background: #fff; }
#pg-signin .button { width: 100%; margin: 4px 0 0; }
#pg-signin .button:disabled { opacity: .55; cursor: progress; }
.pg-status { margin: 0; font-size: 14px; font-weight: 600; color: #b42318; }
.pg-status:empty { display: none; }
.pg-fine { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pg-plain { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pg-plain[disabled] { opacity: .5; cursor: default; }
.pg-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.pg-ctas .button { width: auto !important; margin: 0 !important; }
.pg-contact { display: grid; gap: 12px; margin-top: 18px; }
.pg-method { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s; }
.pg-method:hover { border-color: #9cc0e8; }
.pg-method b { display: block; font-size: 16px; font-weight: 600; }
.pg-method small { display: block; margin-top: 2px; font-size: 14px; color: var(--slate); }
.pg-method.pg-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.pg-method.pg-primary small { color: #c5c9d7; }

@media (max-width: 900px) {
  .pg-legal, .pg-signin-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-signin .eyebrow { justify-content: center; }
  .pg-signin h1, .pg-signin-copy { text-align: center; }
  .pg-signin .pg-sub { margin-inline: auto; }
  .pg-points { justify-content: center; }
  .pg-points li { text-align: left; }
  /* the contents become a row of chips under the header that scrolls sideways and follows the reading */
  .pg-lnav { top: 84px; z-index: 5; display: flex; gap: 6px; max-height: none; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); overflow: auto hidden; border-left: 0; border-bottom: 1px solid var(--line); background: #f7f7f5f5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .pg-lnav a { flex: none; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13.5px; white-space: nowrap; }
  .pg-lnav a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
  .pg-lgroup { display: none; }
  .pg-ldoc > section { scroll-margin-top: 150px; }
}
@media (max-width: 640px) {
  .pg-ldoc { padding: 20px 18px; border-radius: 20px; }
  .pg-trust { grid-template-columns: minmax(0, 1fr); }
  .pg-ldl > div { grid-template-columns: minmax(0, 1fr); }
  .pg-ck .button { flex: 1 1 0; min-width: 0; }
  .pg-ctas .button { width: 100% !important; }
}
