/* ==========================================================================
   My VU — public pages stylesheet
   Vanilla CSS, no framework. Brand tokens and the Euclid Circular B family are
   lifted from the VClass admin front-end so this page reads as the same product.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Euclid Circular B — self-hosted (woff2, subset of weights actually used).
   local() first so machines that already have the family skip the download.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Euclid Circular B";
  src: local("Euclid Circular B Regular"), local("EuclidCircularB-Regular"),
    url("../fonts/EuclidCircularB-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular B";
  src: local("Euclid Circular B Medium"), local("EuclidCircularB-Medium"),
    url("../fonts/EuclidCircularB-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular B";
  src: local("Euclid Circular B SemiBold"), local("EuclidCircularB-SemiBold"),
    url("../fonts/EuclidCircularB-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular B";
  src: local("Euclid Circular B Bold"), local("EuclidCircularB-Bold"),
    url("../fonts/EuclidCircularB-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --brand: #2a6fb5; /* --el-app-primary in the admin app */
  --brand-strong: #1f4ea1;
  --brand-tint: rgba(42, 111, 181, 0.08);
  --brand-tint-strong: rgba(42, 111, 181, 0.14);
  --vu-red: #df292c;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #fafcff;
  --ink: #16233a;
  --ink-soft: #3f4f68;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --line-soft: #eef2f8;

  --shadow-sm: 0 1px 2px rgba(22, 35, 58, 0.04), 0 4px 14px rgba(22, 35, 58, 0.05);
  --shadow-md: 0 10px 40px rgba(31, 78, 161, 0.09);

  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;

  --font: "Euclid Circular B", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6ba7e6;
    --brand-strong: #8cbdf0;
    --brand-tint: rgba(107, 167, 230, 0.12);
    --brand-tint-strong: rgba(107, 167, 230, 0.2);

    --bg: #0d131f;
    --surface: #141c2b;
    --surface-alt: #182131;
    --ink: #e9eef7;
    --ink-soft: #c3cede;
    --muted: #8d9bb1;
    --line: #253148;
    --line-soft: #1e2839;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.35);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

strong,
b {
  font-weight: 600;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Reading progress
   -------------------------------------------------------------------------- */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--brand), var(--vu-red));
  transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Opaque first — browsers without color-mix() would otherwise drop the whole
     declaration and leave the sticky header transparent. */
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

/* The VU wordmark is dark-navy-on-transparent, so it all but disappears on a
   dark surface. Set it on a white plate rather than recolouring the brand. */
@media (prefers-color-scheme: dark) {
  .brand img,
  .notfound-card img {
    background: #fff;
    padding: 5px 9px;
    border-radius: 7px;
    box-sizing: content-box;
  }
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--line);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text .app {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.brand-text .kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.header-action:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-tint);
  text-decoration: none;
}

.header-action svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60ch 40ch at 12% -10%, var(--brand-tint), transparent 70%),
    radial-gradient(50ch 30ch at 92% 0%, rgba(223, 41, 44, 0.06), transparent 70%),
    var(--surface);
}

.hero .wrap {
  max-width: 780px;
  margin-inline: 0;
  padding-left: max(24px, calc((100vw - 1160px) / 2 + 24px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 4px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero .lede {
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Layout: sticky table of contents + article
   -------------------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 56px 0 88px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-left: 14px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  counter-reset: toc;
}

.toc a {
  display: block;
  padding: 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: none;
}

.toc a.is-active {
  color: var(--brand);
  font-weight: 500;
  border-left-color: var(--brand);
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.article {
  max-width: 74ch;
  min-width: 0;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}

.summary-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-card .icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 12px;
}

.summary-card .icon svg {
  width: 17px;
  height: 17px;
}

.summary-card h3 {
  font-size: 0.925rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.summary-card p {
  margin: 0;
  font-size: 0.845rem;
  line-height: 1.6;
  color: var(--muted);
}

.section {
  padding-top: 8px;
  margin-bottom: 52px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section > h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.section > h2 .num {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 7px;
  padding: 3px 9px;
  letter-spacing: 0;
  transform: translateY(-2px);
}

.section > p {
  color: var(--ink-soft);
}

/* Labelled sub-blocks (the "Account & Profile Information" style entries) */
.blocks {
  display: grid;
  gap: 2px;
  margin: 20px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.block {
  padding: 18px 22px;
  background: var(--surface);
}

.block h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.block p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

.block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.block li {
  position: relative;
  padding-left: 20px;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.block li + li {
  margin-top: 5px;
}

.block li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.5;
}

/* Callout — used for the "cannot be deleted" and security caveats */
.callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.callout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.callout--warn {
  border-left-color: var(--vu-red);
}

.callout--warn svg {
  color: var(--vu-red);
}

/* Contact card */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 22px;
}

.contact-card .logo-mark {
  width: 52px;
  height: auto;
  flex-shrink: 0;
}

.contact-card .details {
  flex: 1 1 240px;
  min-width: 0;
}

.contact-card .details .name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.contact-card .details .addr {
  font-size: 0.885rem;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--brand);
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  color: #fff;
  text-decoration: none;
}

/* --brand lightens in dark mode for legible body links, but white-on-light-blue
   fails contrast on a filled button — flip the label to the dark background ink. */
@media (prefers-color-scheme: dark) {
  .btn,
  .btn:hover {
    color: #0d131f;
  }
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Consent close-out */
.consent {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-tint-strong), var(--brand-tint));
  border: 1px solid var(--line);
}

.consent p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.83rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--brand);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s,
    color 0.15s ease, border-color 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.to-top svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 40px;
  }

  .toc {
    position: static;
    max-height: none;
    margin-bottom: 40px;
    padding: 20px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .toc h2 {
    padding-left: 0;
  }

  .toc ol {
    border-left: 0;
    columns: 2;
    column-gap: 20px;
  }

  .toc a {
    padding: 5px 0;
    border-left: 0;
    margin-left: 0;
  }

  .toc a.is-active {
    border-left: 0;
  }

  .article {
    max-width: none;
  }

  .hero .wrap {
    max-width: none;
    padding-inline: 24px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    padding: 9px 11px;
  }

  .toc ol {
    columns: 1;
  }

  .block {
    padding: 16px 18px;
  }

  .section {
    margin-bottom: 42px;
  }

  .contact-card {
    padding: 22px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

/* --------------------------------------------------------------------------
   Print — this policy gets saved to PDF and filed, so make that copy readable.
   -------------------------------------------------------------------------- */
@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-alt: #fff;
    --ink: #000;
    --ink-soft: #222;
    --muted: #555;
    --line: #ccc;
    --shadow-sm: none;
    --shadow-md: none;
  }

  .site-header,
  .toc,
  .to-top,
  .progress,
  .skip-link,
  .header-action,
  .summary {
    display: none !important;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .hero {
    padding: 0 0 20px;
    background: #fff;
  }

  .layout {
    display: block;
    padding: 20px 0 0;
  }

  .section {
    break-inside: avoid;
    margin-bottom: 24px;
  }

  .block,
  .blocks,
  .callout,
  .contact-card,
  .consent {
    break-inside: avoid;
  }

  a {
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   404 page
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(60ch 40ch at 20% 0%, var(--brand-tint), transparent 70%),
    radial-gradient(50ch 34ch at 90% 100%, rgba(223, 41, 44, 0.06), transparent 70%),
    var(--bg);
}

.notfound-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.notfound-card img {
  height: 46px;
  width: auto;
  margin-bottom: 32px;
}

.notfound-code {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--vu-red);
  margin-bottom: 10px;
}

.notfound-card h1 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.notfound-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 30px;
}

.notfound-card .btn {
  width: 100%;
  justify-content: center;
}
