/* Shared by the Markdown document pages (/privacy, /terms, /terms/dpa). Built by scripts/build-pages.mjs. */

:root { --body: #3a3530; }

.column {
  max-width: 728px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.home-link:hover { color: var(--accent2); }

h1 {
  margin: 1rem 0 1rem;
  font-size: 1.75rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lede, .doc {
  line-height: 1.7;
  color: var(--body);
}

.lede a, .doc a {
  color: var(--text);
  text-decoration-color: var(--app-color, var(--border));
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* Segmented control */
.tabs {
  display: inline-flex;
  gap: 2px;
  margin-top: 1.75rem;
  padding: 3px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  cursor: pointer;
}

.tab img {
  border-radius: 5px;
  filter: grayscale(0.7);
  opacity: 0.7;
}

.tab:hover { color: var(--text); }

.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border);
  color: var(--app-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tab:hover img,
.tab[aria-selected="true"] img { filter: none; opacity: 1; }

/* Policy: plain Markdown */
.updated {
  margin: 1.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.doc p, .doc ul, .doc ol { margin-bottom: 1rem; }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li + li { margin-top: 0.4rem; }

.doc h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.15rem;
  color: var(--text);
}

.doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
  color: var(--text);
}

.doc table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

.doc th, .doc td {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--surface2);
  color: var(--text);
}

.doc td { background: var(--surface); }

/* Key/value tables written with an empty header row ("| | |"): hide that row, shade the key column. */
.doc thead:not(:has(th:not(:empty))) { display: none; }
.doc table:has(thead th:empty) td:first-child { width: 32%; background: var(--surface2); }

.doc hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

footer { padding-top: 3rem; }

@media (max-width: 600px) {
  .column { padding: 0 1rem; }
  .doc th, .doc td { padding: 0.5rem 0.6rem; overflow-wrap: anywhere; }
  h1 { margin-top: 0.75rem; }
  .tabs { display: flex; }
  .tab { flex: 1; justify-content: center; padding: 0.35rem 0.3rem; font-size: 0.78rem; }
}

@media (max-width: 420px) {
  .tab img { display: none; }
}

.doc a.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.doc a.button:hover { background: var(--accent2); }
