/* Fitally — legal pages
   Monochrome, no JavaScript, no external requests, no webfonts.
   Shared by index.html, privacy.html and terms.html. */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-85: rgba(255, 255, 255, 0.85);
  --ink-80: rgba(255, 255, 255, 0.80);
  --ink-60: rgba(255, 255, 255, 0.60);
  --ink-45: rgba(255, 255, 255, 0.45);
  --ink-30: rgba(255, 255, 255, 0.30);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --fill: rgba(255, 255, 255, 0.05);
  --fill-hover: rgba(255, 255, 255, 0.09);

  --display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;

  /* The reading measure for prose and hero copy. The glow behind it stays
     full-bleed; only the text is held to this, and it is centred, so the
     leftover space is an even margin on both sides rather than a gap down
     the right. */
  --col: 760px;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink-85);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.002em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 700px) {
  body {
    font-size: 14px;
  }
}

::selection {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-30);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--ink-60);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- layout */

.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* The gutters scale with the viewport so the text column keeps the same
   relationship to the window edge at every size, the way the reference's
   percentage-based padding does. */
@media (min-width: 700px) {
  .shell {
    --gutter: 6vw;
  }
}

@media (min-width: 1320px) {
  .shell {
    --gutter: 72px;
  }
}

/* Narrower than the full shell, and centred by the inherited `margin: 0 auto`.
   Topbar, hero copy, document body and footer all share one measure, so their
   left edges line up — the topbar was the last holdout, which left the wordmark
   out at the full-width gutter while everything below it started 376px in. The
   gutters are added back so the text keeps the same distance from the window
   edge as the wordmark. */
.topbar .shell,
.hero .shell,
.doc .shell,
.footer .shell {
  max-width: calc(var(--col) + 2 * var(--gutter));
}

/* The text runs the full width of that column. It was briefly uncapped and ran
   the whole 1320px shell, which is about 115 characters a line — far too long
   to read comfortably. */
.prose {
  max-width: none;
}

/* ----------------------------------------------------------------- wordmark */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--ink-80);
}

.wordmark svg {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}

/* -------------------------------------------------------------------- topbar */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  padding-top: 28px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* The two topbar items together need about 281px, which is more than a 320px
   screen has left after its gutters. The label tightens rather than wrapping
   to a second line, which would double the header's height. */
@media (max-width: 420px) {
  .topbar-meta {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

.topbar-meta {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-45);
}

/* --------------------------------------------------------------------- hero */

/* The hero is a full-bleed lit band that ends in a hard edge against the
   black body — the reference's structure, in greyscale. The bloom is drawn
   with pseudo-elements so the markup stays free of decoration. */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.13) 42%,
    rgba(255, 255, 255, 0.045) 78%,
    rgba(255, 255, 255, 0) 100%
  );
}

.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.masthead::before {
  left: 50%;
  top: -78%;
  width: 150%;
  height: 200%;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0.09) 52%,
    transparent 76%
  );
  filter: blur(60px);
}

.masthead::after {
  left: 22%;
  top: -34%;
  width: 56%;
  height: 120%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.30),
    transparent 70%
  );
  filter: blur(50px);
}

/* One rhythm through the hero: 20 / 24 / 24. The bottom padding is zero
   because `.doc`'s 24px top padding already provides the gap to the first
   block — the two stacked, which is what made that gap 48px while the
   others were 20 and 24. */
.hero {
  padding: 64px 0 0;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 0;
  }
}
/* One rhythm through the hero. These were 18 / 26 / 36px — three unrelated
   steps, which read as three separate blocks rather than one heading. */
.eyebrow {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* min is deliberately small: at 320px a 2.9rem "Privacy Policy" is wider than
   the screen, and a clamp cannot shrink below its own floor. */
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 1rem + 5.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

@media (min-width: 700px) {
  .hero h1 {
    font-size: clamp(2.9rem, 1.4rem + 4.4vw, 4.6rem);
  }
}

/* The effective date now sits above the title in the eyebrow slot, so this
   rule no longer has anything to style — kept out rather than left to drift. */

.lede {
  margin: 24px 0 0;
  max-width: none;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-80);
}

/* ------------------------------------------------------------------ article */

/* Bottom padding, plus a decorative rule that used to hang off the last
   section, left a large dead band above the copyright. */
.doc {
  flex: 1 0 auto;
  padding: 24px 0 44px;
}

.doc section {
  margin-top: 68px;
}

.doc section:first-of-type {
  margin-top: 0;
}

.doc h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc h3 {
  margin: 34px 0 10px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.doc p {
  margin: 0 0 18px;
}

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

.doc ul,
.doc ol {
  margin: 0 0 18px;
  padding-left: 1.35rem;
}

.doc li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.doc li::marker {
  color: var(--ink-45);
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc hr {
  height: 1px;
  margin: 68px 0 0;
  border: 0;
  background: var(--line-soft);
}

/* --------------------------------------------------------------------- note */

.note {
  margin: 0 0 20px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--fill);
}

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

.note-title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  gap: 16px;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--fill);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}

.card:hover {
  background: var(--fill-hover);
  border-color: rgba(255, 255, 255, 0.26);
  text-decoration: none;
  transform: translateY(-2px);
}

.card-title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card-meta {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
}

/* ------------------------------------------------------------------- footer */

.footer {
  flex: none;
  border-top: 1px solid var(--line-soft);
  padding: 30px 0 34px;
}

.footer-mark {
  display: block;
  margin: 0 0 36px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 1rem + 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.13);
  user-select: none;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13.5px;
  color: var(--ink-45);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer a {
  color: var(--ink-60);
  text-decoration: none;
}

.footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-30);
  text-underline-offset: 4px;
}

/* ------------------------------------------------------- home (one screen) */

/* The landing page is a single screen by design: no scrolling, so the
   masthead takes the slack and the hero centres in what is left. `dvh` keeps
   it correct when a mobile browser's chrome slides in and out. */
.home {
  height: 100dvh;
  overflow: hidden;
}

.home-masthead {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.home-hero {
  padding: 120px 0 72px;
}

.home .footer {
  padding: 0 0 28px;
}

/* On a short window the fixed paddings are what would push the page into a
   second screen, so they give way first. */
@media (max-height: 760px) {
  .home-hero {
    padding: 104px 0 48px;
  }
}

@media (max-height: 620px) {
  .home-hero {
    padding: 92px 0 32px;
  }

  .home .hero h1 {
    font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.4rem);
  }

  .home .lede {
    font-size: 0.9375rem;
    margin-top: 24px;
  }
}

/* ------------------------------------------------------------- small buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-height: 620px) {
  .home .actions {
    margin-top: 26px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: var(--fill-hover);
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #1a1a1a;
    font-size: 11pt;
  }

  .masthead {
    background: none;
    padding: 0;
  }

  .masthead::before,
  .masthead::after {
    display: none;
  }

  .topbar,
  .footer,
  .actions {
    display: none;
  }

  .home {
    height: auto;
    overflow: visible;
  }

  .hero {
    padding: 0 0 24px;
  }

  .doc {
    padding: 0;
  }

  .doc h2,
  .doc h3,
  .hero h1,
  .eyebrow {
    color: #000000;
  }

  a {
    color: #1a1a1a;
    text-decoration: none;
  }
}
