/* Fit Check Pro — shared styles for the privacy and terms pages.
   Colors come from the app: warm cream canvas, near-black ink, Wave Violet. */

:root {
  --bg: #F6F3EC;
  --card: #FFFFFF;
  --ink: #121213;
  --violet: #6028D9;
  --violet-text: #5322C2;
  --violet-tint: #EEE9FC;
  --muted: #5F5F66;
  --hairline: #E5E1D8;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Masthead ---------------------------------------------------------- */

.masthead {
  padding: 56px 0 28px;
  text-align: center;
}

.wordmark {
  font-family: "New York", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(34px, 7vw, 46px);
  letter-spacing: -0.5px;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.wordmark .pro { color: var(--violet); }

.tagline {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.rule {
  width: 40px;
  height: 2px;
  background: var(--violet);
  border: 0;
  border-radius: 2px;
  margin: 22px auto;
}

/* ---- Document ---------------------------------------------------------- */

.doc { padding-bottom: 72px; }

h1 {
  font-family: "New York", Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.2;
  margin: 0 0 8px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}

h2 {
  font-family: "New York", Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin: 40px 0 12px;
  padding-top: 8px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 6px;
  color: var(--violet-text);
}

p, li { color: var(--ink); }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--violet-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

strong { font-weight: 650; }

/* Callout for the things people actually need to know at a glance. */
.note {
  background: var(--violet-tint);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 28px;
}
.note p:last-child { margin-bottom: 0; }

/* A simple table for "who gets what". */
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
th { font-weight: 650; background: #FBFAF7; }
tr:last-child td { border-bottom: 0; }

/* ---- Index page -------------------------------------------------------- */

.lede {
  font-size: 18px;
  line-height: 1.65;
  text-align: center;
  margin: 0 auto 36px;
  max-width: 560px;
}

.links {
  display: grid;
  gap: 12px;
  margin: 0 0 48px;
}

.link-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-card:hover {
  border-color: var(--violet);
  transform: translateY(-1px);
  color: var(--ink);
}
.link-card .label {
  font-weight: 650;
  font-size: 17px;
  display: block;
}
.link-card .desc {
  color: var(--muted);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

/* ---- Footer ------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer a { color: var(--muted); }
.footer nav { margin-bottom: 8px; }
.footer nav a { margin: 0 10px; }
