/* Privacy Policy and Terms (public/privacy.html, public/terms.html): quiet
   pages in Saitama's type, readable without the app. */
:root {
  --ink: #101113;
  --body: #2b2f35;
  --muted: #6b7078;
  --rule: #e7e8ea;
  --yellow: #ffcb2a;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--body);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(16, 17, 19, 0.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 48px);
}

.wordmark {
  color: var(--ink);
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 760;
  letter-spacing: -0.035em;
  /* The page's reading line height (1.7) would lift the star off the i. */
  line-height: 1;
  text-decoration: none;
}

/* The same wordmark as the app: a spark over the dotless i. */
.wordmark .i { position: relative; display: inline-block; }
.wordmark .spark {
  position: absolute;
  top: -0.34em;
  left: 50%;
  transform: translateX(-50%);
  color: var(--yellow);
  font-size: 0.5em;
  line-height: 1;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: #090a0b;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover { background: #17191c; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 4vw, 48px) 72px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 710;
  line-height: 1;
  letter-spacing: -0.045em;
}

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

.lead {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.6;
}

.summary { margin-top: 36px; }

section { margin-top: 44px; }

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  font-size: 1.45rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h3 {
  margin: 22px 0 4px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

p { margin: 10px 0; }
ul { margin: 10px 0; padding-left: 22px; }
li { margin: 6px 0; }
strong { color: var(--ink); font-weight: 650; }

.providers { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 0.95rem; }
.providers th, .providers td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.providers th { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.providers td:first-child { width: 28%; color: var(--ink); font-weight: 650; }

footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a[aria-current="page"] { color: var(--ink); font-weight: 650; }

@media (max-width: 560px) {
  .providers, .providers tbody, .providers tr, .providers td { display: block; width: 100%; }
  .providers thead { display: none; }
  .providers td { padding: 2px 0; border: 0; }
  .providers tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .providers td:first-child { width: 100%; }
}

/* ---------- Lesson library (public/learn, scripts/learn-pages.mjs) ---------- */
.lesson-page, .learn-page { max-width: 860px; }

.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; }
.crumbs a { color: var(--muted); }

.board { margin: 28px 0 8px; }
.board img, .lesson-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fbfbfa;
}

.how { padding-left: 22px; }
.how li { margin: 10px 0; }

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.lesson-grid li { margin: 0; }
.lesson-grid a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.lesson-grid img { aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.lesson-grid .subject { margin-top: 4px; color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.lesson-grid .question { font-weight: 650; line-height: 1.35; }
.lesson-grid a:hover .question { text-decoration: underline; text-underline-offset: 3px; }

.ask {
  margin: 48px 0 8px;
  padding: 26px 28px;
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.ask h2 { margin-top: 0; }
.ask .cta { margin-top: 8px; }

.more { padding-left: 20px; }
