/* =========================================================
   Legal pages — public stylesheet
   Used by /privacy and /terms (both publicly accessible).
   Self-contained: no dependency on styles.css. Includes only
   the tokens, header, off-canvas, footer, and .legal__*
   rules these pages actually render.
   ========================================================= */

/* The footer references /assets/media/PNU-Footer-Background.jpg which is
   gated behind auth — for unauth visitors the footer renders with the
   solid dark background only. Acceptable graceful degradation. */

@font-face {
  font-family: "ABC Arizona Serif";
  src: url("fonts/ABCArizonaSerif-Light-Trial.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-bg:        #ffffff;
  --c-ink:       #1a1a1a;
  --c-ink-soft:  #6a6a6a;
  --c-line:      #d8d4cc;
  --c-white:     #ffffff;
  --c-navy:      #363148;
  --c-slate:     #636c88;
  --c-advisory:  #720405;

  --f-display:   "ABC Arizona Serif", "Cormorant Garamond", Georgia, serif;
  --f-body:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:      "Syne", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --dur:         700ms;
}

/* ------------------- Reset / base ------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ------------------- Display type ------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ------------------- Header (locked to scrolled state on legal pages) ------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--c-bg);
  border-bottom: 0;
}
.header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 19px;
  color: var(--c-ink);
}
.header__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--dur) var(--ease);
}
.header__pill:hover { opacity: 0.7; }
.header__pill--left  { justify-self: start; }
.header__pill--right { justify-self: end; }
.header__wordmark {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 12px; height: 12px;
  flex-shrink: 0;
}
.dot--advisory { background: var(--c-advisory); }
.dot--slate    { background: var(--c-slate); }
.dot--navy     { background: var(--c-navy); }
.header__rule {
  position: absolute;
  left: 19px; right: 19px;
  bottom: 0;
  height: 1px;
  background: #BFBFBF;
}
.header__pill--mobile { display: none; }
button.header__pill {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
}

/* ------------------- Off-canvas menu ------------------- */
.off-canvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-bg);
  color: var(--c-ink);
  transform: translateY(-100%);
  transition: transform 600ms var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.off-canvas.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.off-canvas__bg { display: none; }
.off-canvas__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 19px clamp(1.5rem, 4vw, 2.5rem);
  background-image: linear-gradient(to right, #BFBFBF 1px, transparent 1px);
  background-size: 43px 100%;
  background-repeat: no-repeat;
  background-position: 43px 0;
}
.off-canvas__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #BFBFBF;
}
.off-canvas__wordmark {
  grid-column: 2;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
}
.off-canvas__close {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}
.off-canvas__close::after {
  content: "";
  width: 12px; height: 12px;
  background: var(--c-advisory);
}
.off-canvas__close:hover { opacity: 0.7; }
.off-canvas__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2rem, 6vw, 4rem) clamp(72px, 12vw, 100px);
}
.off-canvas__nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: clamp(1.25rem, 4vw, 2rem);
  padding: clamp(0.65rem, 1.5vw, 1rem) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: var(--c-ink);
  transition: opacity 200ms var(--ease);
}
.off-canvas__nav a:hover { opacity: 0.65; }
.off-canvas__num {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(0, 0, 0, 0.55);
  align-self: center;
}
.off-canvas__label {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-ink);
}
.off-canvas__footer {
  padding: clamp(1.25rem, 3vw, 2rem) 0 0 clamp(72px, 12vw, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.off-canvas__email {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.off-canvas__email:hover { opacity: 0.65; }
.off-canvas__legal {
  display: flex;
  gap: 1.5rem;
}
.off-canvas__legal a {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.off-canvas__legal a:hover { color: var(--c-ink); }

/* ------------------- Footer ------------------- */
.footer {
  position: relative;
  background: #0c0d10;
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
}
/* .footer__bg's image lives behind /assets and is gated; on legal pages the
   solid #0c0d10 background is the only thing rendered. We deliberately
   omit the background-image rule so an unauth visitor doesn't fire a
   request that 302's to /login. */
.footer__bg { position: absolute; inset: 0; z-index: 0; }
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1512px;
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 2.5rem) clamp(24px, 4vw, 60px) clamp(2rem, 3vw, 2.5rem) clamp(16px, 1.5vw, 24px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  min-height: clamp(540px, 60vw, 920px);
}
.footer__inner::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 53.1%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.footer__watermark-wrap { display: contents; }
.footer__watermark {
  display: block;
  align-self: stretch;
  width: auto;
  height: 100%;
  margin-left: 0;
  user-select: none;
  pointer-events: none;
}
.footer__content {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-left: clamp(1rem, 3vw, 2.5rem);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}
.footer__nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: nowrap;
}
.footer__nav a,
.footer__back {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-white);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 200ms var(--ease);
}
.footer__nav a:hover,
.footer__back:hover { opacity: 0.7; }
.footer__locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.footer__locations ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-white);
}
.footer__email {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  color: var(--c-white);
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 200ms var(--ease);
}
.footer__email:hover { opacity: 0.75; }
.footer__legal {
  font-family: var(--f-body);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin: auto 0 0;
  max-width: 560px;
}

/* ------------------- Legal pages ------------------- */
.page--legal { background: var(--c-bg); }
.page--legal .rail { display: none; }

.legal {
  background: var(--c-bg);
  padding: clamp(8rem, 14vw, 14rem) 0 clamp(6rem, 10vw, 10rem);
}
.legal__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  text-align: center;
}
.legal__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--c-ink);
}
.legal__updated {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 1.5rem 0 clamp(3rem, 6vw, 5rem);
}
.legal__body {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink);
}
.legal__body p { margin: 0 0 1.4rem; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: clamp(2rem, 4vw, 3rem) 0 1rem;
  color: var(--c-ink);
}
.legal__body ul { padding-left: 1.5rem; margin: 0 0 1.4rem; }
.legal__body li { list-style: disc; margin: 0 0 0.5rem; }
.legal__body a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__body a:hover { opacity: 0.7; }

/* ------------------- Responsive ------------------- */
@media (max-width: 960px) {
  .header__pill--desktop { display: none; }
  .header__pill--mobile { display: inline-flex; }

  .footer__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 3rem;
  }
  .footer__inner::before { display: none; }
  .footer__content { padding-left: 0; }
  .footer__watermark-wrap {
    --pnu-w: clamp(220px, 65vw, 420px);
    display: block;
    width: var(--pnu-w);
    aspect-ratio: 843 / 213;
    margin: 0 auto 0 0;
    position: relative;
    overflow: hidden;
  }
  .footer__watermark-wrap .footer__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    height: var(--pnu-w);
    width: auto;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
    align-self: auto;
  }
  .footer__top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .footer__nav { flex: 1 0 100%; }
  .footer__back { flex: 0 0 auto; margin-top: 1rem; }
  .footer__locations { gap: 1rem; }
}

@media (max-width: 600px) {
  .footer__locations ul,
  .footer__email { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
