/* The privacy and terms pages: the home page's fonts, colours, header, and footer, around a column
   of readable text. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --brand: hsl(250 69% 61%);
  --brand-deep: hsl(248 56% 46%);
  --brand-light: hsl(254 84% 68%);
  --ground: hsl(244 30% 7%);
  --panel: hsl(243 28% 10%);
  --ink: hsl(240 25% 96%);
  --ink-muted: hsl(240 18% 72%);
  --ink-faint: hsl(240 12% 54%);
  --hairline: hsl(244 22% 16%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(90% 480px at 18% -120px, hsl(250 69% 61% / 0.14), transparent 70%), var(--ground);
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--hairline);
  background: hsl(244 30% 7% / 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-tile {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.brand-tile svg {
  width: 62%;
  height: 62%;
}

.wordmark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.btn {
  display: inline-block;
  white-space: nowrap;
  padding: 0.65rem 1.6rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
  box-shadow: 0 4px 20px hsl(250 69% 61% / 0.35);
}

.btn:hover {
  filter: brightness(1.12);
}

.btn-ghost {
  display: inline-block;
  white-space: nowrap;
  padding: 0.65rem 1.1rem;
  border-radius: 0.5rem;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.925rem;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--ink);
}

header .btn-short {
  display: none;
}

/* ---------- the document ---------- */
main {
  width: min(46rem, 92vw);
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.8rem;
}

h1,
h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

h1,
h2.doc-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0;
}

h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
}

/* A part of the page, such as the member terms, opens with a rule above its title. */
.part {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}

.version {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

p,
ul,
ol,
.table-wrap {
  margin-top: 0.9rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.45rem;
}

li > ul {
  margin-top: 0.45rem;
}

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

a {
  color: var(--brand-light);
}

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

[id] {
  scroll-margin-top: 5.5rem;
}

/* A wide table scrolls inside its own box on a phone, never the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 0.6rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

th,
td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

th {
  color: var(--ink);
  font-weight: 600;
  background: var(--panel);
}

tr:last-child td {
  border-bottom: 0;
}

/* ---------- footer ---------- */
footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 3rem) 2.4rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--ink-faint);
}

footer .grow {
  flex: 1;
}

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

footer a:hover {
  color: var(--ink);
}

/* ---------- narrower screens ---------- */
/* On a phone the header keeps one button; Sign in is in the footer. */
@media (max-width: 560px) {
  header .signin,
  header .btn-long {
    display: none;
  }

  header .btn-short {
    display: inline-block;
    padding: 0.55rem 1rem;
  }

  main {
    padding-top: 2.5rem;
  }
}
