/* Legal pages.
 *
 * These four pages are the only ones still rendered from templates rather than by
 * the site's own router, and they were carried over from the previous build along
 * with its class names — .prose, .callout, .foot and the rest. That stylesheet was
 * never carried with them, so 21 of their 22 classes resolved to nothing and the
 * pages shipped as raw HTML: no layout, no footer, an unstyled table.
 *
 * Rewritten here against the current tokens rather than ported from the old sheet,
 * which was the dark/blue generation. The type scale deliberately matches
 * .doc-article, because a privacy policy and a guide are the same kind of reading
 * and should not feel like two different products.
 */

.wrap.narrow { max-width: 820px; }

/* ---------- header ---------------------------------------------------------- */
/* The template is <header class="top"><div class="wrap">…</div></header>, so the
   flex row has to be the .wrap — putting it on .top lays out one child and leaves
   the logo, nav and buttons stacked inside it. */
.top { border-bottom: 1px solid var(--line); }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.top .logo { display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.top .logo img, .top .logo svg { width: 26px; height: 26px; display: block; }
.top .nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.top .nav a { color: var(--muted); }
.top .nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--green); background: var(--green); color: #fff;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
/* .sm is the secondary weight, not merely a smaller one: the sign-in link next to
   a filled primary should not read as a second call to action. */
.btn.sm { min-height: 34px; padding: 0 13px; font-size: 13px;
  background: none; color: var(--ink); border-color: var(--line); }
.btn.sm:hover { background: var(--soft); border-color: var(--line); }
.signin { color: var(--muted); font-size: 14px; }
.signin:hover { color: var(--ink); }

/* ---------- the document ---------------------------------------------------- */
.prose { padding-top: 40px; padding-bottom: 64px; }
.prose h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.prose h2 { font-size: 24px; line-height: 1.25; margin: 38px 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; line-height: 1.85; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; }
.updated { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); }

/* A legal table is read cell by cell, so it gets real gridlines rather than the
   borderless look used for marketing comparisons. It scrolls in its own box —
   a policy with three columns must not make the whole page scroll sideways. */
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0;
  display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px;
  font-size: 14px; line-height: 1.6; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; }

.callout { background: #f1f7ef; border-left: 3px solid var(--green);
  padding: 16px 18px; margin: 26px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { margin: 0; font-size: 15px; line-height: 1.75; color: #3d5a3d; }
.callout p + p { margin-top: 10px; }

.cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.finote { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 26px;
  padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- footer ----------------------------------------------------------
 * Written against the template's real markup, which nests differently from the
 * site's own footer: .footinstall holds the brand block and the CTA side by side,
 * and .cols is four link columns whose anchors are bare inline elements.
 */
.foot { border-top: 1px solid var(--line); background: var(--soft);
  padding: 46px 0 32px; margin-top: 56px; }
.footinstall { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-bottom: 34px; }
.footbrand { max-width: 420px; }
.brandrow { display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; letter-spacing: -0.01em; }
.brandrow svg { width: 24px; height: 24px; }
.foottag { font-size: 15px; line-height: 1.6; margin: 10px 0 0; }
.finote { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.footcta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footsecond { font-size: 13px; color: var(--muted); }
.footsecond:hover { color: var(--ink); }

/* Anchors in these columns are bare inline elements — without this they run into
   one another and "Overview Pricing Sign in" reads as one sentence. */
.cols { display: grid; gap: 26px 32px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 30px 0; border-top: 1px solid var(--line); }
.cols h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.cols a { display: block; font-size: 14px; line-height: 1.5; padding: 5px 0;
  color: var(--ink); overflow-wrap: anywhere; }
.cols a:hover { color: var(--green); }

.legalline { font-size: 12px; color: var(--muted); line-height: 1.7;
  padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 700px) {
  .prose { padding-top: 28px; padding-bottom: 48px; }
  .prose h1 { font-size: 31px; }
  .prose h2 { font-size: 22px; }
  /* Only the section links go: they all repeat in the footer. Sign in and Add to
     Chrome stay, because hiding the whole nav leaves a phone reader on a privacy
     policy with no way into the product at all. */
  .top .nav { gap: 12px; }
  .top .nav a:not(.signin):not(.btn) { display: none; }
  .top .logo { font-size: 16px; }
}
