/* About / Security / Privacy / Terms / 404 — matches homepage light theme */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-deep: #F3F8FA;
  --line: rgba(18, 33, 49, .09);
  --line-2: rgba(18, 33, 49, .16);
  --fg: #122131;
  --muted: rgba(18, 33, 49, .68);
  --faint: rgba(18, 33, 49, .45);
  --hi: #C1FC94;
  --hi-t: #247C04;
  --hi-big: #35A505;
  --f-display: "GT Ultra Median", "Albert Sans", Georgia, serif;
  --f-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 78rem;
  --gut: clamp(28px, 7vw, 80px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

html { background: var(--bg); scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(55% 45% at 78% 0%, rgba(44, 155, 206, .16), transparent 65%),
    radial-gradient(40% 35% at 8% 12%, rgba(193, 252, 148, .08), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--hi); color: var(--fg); }
:focus-visible { outline: 3px solid var(--color-indigo-500); outline-offset: 3px; border-radius: 6px; }

.wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}

.gridlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
  box-sizing: border-box;
}
.gridlines i {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 12%, var(--line) 88%, transparent);
  opacity: .55;
}

.page-halo {
  position: fixed;
  left: 50%;
  top: 8%;
  width: min(1400px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  -webkit-mask: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask: radial-gradient(closest-side, #000 58%, transparent 100%);
  opacity: .75;
}
.page-halo img {
  width: 100%;
  height: 100%;
  animation: page-halo 60s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes page-halo { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--color-green-600);
  box-shadow: 0 0 0 4px rgba(79, 207, 6, .14);
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.display--md {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.9rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  font: 600 .95rem/1 var(--f-body);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--hi { background: var(--color-graphite); color: var(--color-white); }
.btn--hi:hover { background: var(--color-blue-800); box-shadow: 0 10px 28px -12px rgba(18, 33, 49, .5); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.btn--sm { min-height: 2.4rem; padding: 0 1rem; font-size: .85rem; }

/* —— Nav —— */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + .9rem) var(--gut) .9rem;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.page-nav__logo img { height: 1.55rem; width: auto; }
.page-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .85rem 1.6rem;
  font-size: .9rem;
  color: var(--muted);
}
.page-nav__links a:hover,
.page-nav__links a[aria-current="page"] { color: var(--fg); }
.page-nav__links a[aria-current="page"] { font-weight: 600; }

/* —— Main —— */
.page {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4.5rem, 10vw, 7rem);
}
.page__inner {
  max-width: 40rem;
}
.page__inner--wide {
  max-width: 46rem;
}

.page .display {
  margin: .55rem 0 1.1rem;
  max-width: 16em;
  overflow-wrap: normal;
  text-wrap: balance;
}
.page .lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 2.25rem;
  max-width: 36rem;
  text-wrap: pretty;
}
.page__meta {
  font-size: .8rem;
  color: var(--faint);
  margin: -.4rem 0 1.75rem;
}

.page h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 2.6rem 0 .85rem;
  color: var(--fg);
  overflow-wrap: normal;
}
.page h3 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 1.6rem 0 .45rem;
  color: var(--fg);
}

.page p,
.page li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}
.page p { margin: 0 0 1rem; }

.page ul:not(.page-nav__links):not(.page-foot__links),
.page ol {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  list-style: disc;
}
.page ol { list-style: decimal; }
.page li::marker { color: var(--faint); }

.page a:not(.btn) {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: rgba(18, 33, 49, .28);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page a:not(.btn):hover {
  color: var(--hi-big);
  text-decoration-color: var(--hi-big);
}

/* —— Cards —— */
.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: .85rem;
  margin: 1.75rem 0 2.25rem;
}
.page-card {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 2px rgba(18, 33, 49, .04), 0 16px 40px -28px rgba(18, 33, 49, .22);
}
.page-card h2,
.page-card h3 {
  font-family: var(--f-body);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 0 0 .45rem;
}
.page-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2.25rem;
}

/* —— Footer —— */
.page-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 1.5rem var(--gut) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .85rem 1.5rem;
  font-size: .8rem;
  color: var(--faint);
}
.page-foot a { color: inherit; }
.page-foot a:hover { color: var(--fg); }
.page-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}

@media (max-width: 720px) {
  .page-nav__links { gap: .55rem 1rem; font-size: .82rem; }
  .page-nav__links .btn { display: none; }
  .page .display { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-halo img { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
