/* Prose pages — privacy, terms, delete account.
   Tokens, fonts and the light/dark split all come from styles.css; this only
   adds the column and the type scale a long document needs. Same palette, same
   three fonts by role, same radii and hairlines as the landing page. */

.legal-nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.legal-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
}

.legal-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--fg);
}

.legal-nav .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r10);
  background: var(--primary);
}

.legal-nav .wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.legal-nav .back {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
}

.legal-nav .back:hover {
  color: var(--fg);
}

.legal {
  /* 68ch keeps a long clause readable; the gutter matches the landing page. */
  max-width: 68ch;
  margin: 0 auto;
  padding: 44px var(--gutter) 72px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--text2);
  text-wrap: pretty;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 10px;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 46px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
  margin: 30px 0 8px;
}

.legal p {
  margin: 0 0 17px;
}

.legal strong {
  color: var(--fg);
  font-weight: 600;
}

.legal a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal ul {
  margin: 0 0 17px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--text3);
}

.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  font-weight: 500;
  color: var(--fg);
  background: var(--surface2);
  border-radius: var(--r6);
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* The effective-date line under the title. */
.legal .updated {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  margin: 0 0 30px;
}

/* The opening paragraph carries the page; a touch larger than the body. */
.legal .lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text2);
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 36px 0;
}

/* Tables scroll rather than squeeze on a phone. */
.legal .table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--r10);
  background: var(--card);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.legal th,
.legal td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.legal thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
}

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

.legal-foot {
  border-top: 1px solid var(--hairline);
  padding: 22px var(--gutter) 40px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text3);
  text-align: center;
}

.legal-foot a {
  color: var(--text2);
  text-decoration: none;
  margin: 0 9px;
}

.legal-foot a:hover {
  color: var(--fg);
}

.legal-foot .copy {
  margin-top: 10px;
}
