/* GymSync — Terms, Privacy and Support pages
   Fonts are self-hosted (no Google Fonts call), matching the privacy policy. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --ink: #17171b;
  --paper: #f4f2ee;
  --surface: #fdfcfa;
  --purple: #5a3ecf;
  --lavender: #cdbcff;
  --tint: #e9e5f6;
  --muted: #55545c;
  --line: #dcd8cf;
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--purple); text-underline-offset: 2px; }
a:hover { color: #43299f; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
/* Same look as the home page: light bar, dark and purple wordmark, dark button. */
.site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.wordmark {
  font-family: var(--head); font-weight: 800; font-size: 40px; letter-spacing: 0.5px;
  text-decoration: none; line-height: 1; color: var(--ink);
}
.wordmark span { color: var(--purple); }
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--tint); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--purple); }
.site-nav a.cta {
  background: var(--ink); color: #fff; font-family: var(--head); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 14px 20px; border-radius: 10px; margin-left: 8px;
}
.site-nav a.cta:hover { background: var(--purple); color: #fff; }
/* The dark footer keeps the light-on-dark wordmark colours. */
.site-footer a { text-underline-offset: 2px; }

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

@media (max-width: 640px) {
  .site-header .wrap { min-height: 64px; }
  .wordmark { font-size: 28px; }
  .site-nav { gap: 0; flex-wrap: nowrap; }
  .site-nav a { font-size: 14px; padding: 8px 7px; }
  .site-nav a.home, .site-nav a.cta { display: none; }
}

/* Page intro band */
.intro { background: var(--tint); border-bottom: 1px solid var(--line); }
.intro .wrap { padding-top: 48px; padding-bottom: 40px; }
.eyebrow {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 15px; color: var(--purple); margin: 0 0 6px;
}
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 7vw, 64px); text-transform: uppercase; letter-spacing: 0.5px; }
.lede { max-width: 62ch; font-size: 19px; margin: 14px 0 0; color: #2b2a31; }
.meta { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 900px) { .layout { grid-template-columns: 250px 1fr; gap: 48px; } }

.toc { font-size: 15px; }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.toc summary { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--purple); text-decoration: underline; }
@media (min-width: 900px) {
  .toc > details { position: sticky; top: 112px; max-height: calc(100vh - 134px); overflow: auto; }
}

/* Content */
.content { max-width: 72ch; }
.content section { padding-top: 8px; scroll-margin-top: 108px; }
.content section + section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.content h2 { font-weight: 800; font-size: 30px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 12px; }
.content h2 .num { color: var(--purple); margin-right: 8px; }
.content h3 { font-weight: 700; font-size: 22px; margin: 22px 0 6px; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 14px; padding-left: 22px; }
.content li { margin: 4px 0; }
.content strong { font-weight: 600; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--purple);
  border-radius: 10px; padding: 16px 18px; margin: 0 0 18px;
}
.callout p:last-child { margin-bottom: 0; }

table.prices { width: 100%; border-collapse: collapse; margin: 6px 0 18px; background: var(--surface); border-radius: 10px; overflow: hidden; font-size: 16px; }
table.prices th, table.prices td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; font-size: 15px; background: var(--ink); color: #fff; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices td.amt { white-space: nowrap; font-weight: 600; }

/* Support page */
.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px 24px; margin: 0 0 28px;
}
.contact-card h2 { color: #fff; }
.contact-card p { margin: 0 0 10px; }
.contact-card .email {
  display: inline-block; font-family: var(--head); font-weight: 800; font-size: clamp(26px, 5vw, 36px);
  color: var(--lavender); text-decoration: none; letter-spacing: 0.5px; margin: 4px 0 10px; word-break: break-all;
}
.contact-card .email:hover { text-decoration: underline; color: #fff; }
.contact-card .small { color: #c9c7d1; font-size: 15px; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-family: var(--head); font-weight: 800; font-size: 24px; color: var(--purple); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 6px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ol:last-child, .card ul:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9c7d1; font-size: 15px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; font-size: 12pt; }
  .intro { background: #fff; border: 0; }
  .layout { display: block; padding: 0; }
  .content section + section { break-inside: avoid-page; }
  a { color: inherit; }
}
