/* ===================================================================
   Secondary pages — privacy, terms, careers, delete-account.
   -------------------------------------------------------------------
   These were carried over from the old landing page, where each one
   shipped its own dark palette and pulled Space Grotesk + Sora from
   Google's servers. They now use the tokens in base.css and the
   self-hosted faces in fonts.css, so no page makes a third-party
   request.

   The pages' markup was left alone; only presentation moved here.
   Legal copy is deliberately untouched.
   =================================================================== */

/* --- Page frame -------------------------------------------------- */

.wrap,
.container {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
/* Careers runs wider — it is a layout page, not a document. */
.nav .container,
.nav-wrap .container,
.container.footer-inner { max-width: var(--shell-max); }

/* --- Top bar (privacy, terms, delete-account) --------------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 52px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.home-link {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}
.home-link:hover { background: var(--ink); color: var(--paper-sunk); text-decoration: none; }

/* --- Document typography ----------------------------------------- */

main { padding-bottom: 96px; }

main h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
main h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 52px 0 14px;
}
main h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 30px 0 10px;
}
main p,
main li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-body);
}
main p { margin-bottom: 14px; }
main ul, main ol { margin: 0 0 18px; padding-left: 20px; }
main ul { list-style: disc; }
main ol { list-style: decimal; }
main li { margin-bottom: 7px; }
main strong { color: var(--ink); font-weight: 600; }
main a { text-decoration: underline; text-underline-offset: 2px; }

/* Each clause is its own <section>; keep them from running together. */
main section + section { margin-top: 4px; }

/* --- Tables (retention schedules, data categories) ---------------- */

main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14.5px;
}
main th, main td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
main th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom-color: var(--ink);
}
main td { color: var(--ink-body); }
main tbody tr:hover { background: var(--paper-sunk); }
/* Tables are the one thing here that cannot reflow; let them scroll. */
main table { display: block; overflow-x: auto; }

/* --- Cards (delete-account) --------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  background: var(--paper-sunk);
}
.card.full { grid-column: 1 / -1; }
.card h2 { margin-top: 0; font-size: 23px; }
.card :last-child { margin-bottom: 0; }

/* The irreversible-deletion notice has to read as a warning without
   introducing a colour the design system does not otherwise have. */
.card.warning {
  background: var(--paper);
  border-color: var(--ink);
  border-left-width: 3px;
}
.card.contact { background: var(--dark); border-color: var(--dark); }
.card.contact, .card.contact p, .card.contact li { color: var(--ink-on-dark); }
.card.contact h2 { color: var(--ink-on-dark); }
.card.contact a { color: var(--accent); }

.intro { font-size: 17px; line-height: 1.65; margin-bottom: 30px; }
.note, .meta { font-size: 13px; color: var(--ink-muted); }

/* --- Careers ------------------------------------------------------ */

.nav-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--nav-height);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--ink-body); }
.nav-links a:hover { color: var(--ink); }
.nav-links .is-current { color: var(--ink); font-weight: 500; }

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 72px 0 18px;
}
.page-title span { color: var(--ink-muted); }
.page-sub { font-size: 18px; line-height: 1.6; color: var(--ink-body); max-width: 56ch; margin-bottom: 52px; }

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 40px;
  background: var(--paper-sunk);
  margin-bottom: 64px;
}
.empty-panel { text-align: center; }
.empty-badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* .btn comes from base.css; these are the page-level variants. */
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper-sunk); }

footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* --- Responsive --------------------------------------------------- */

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .nav { height: auto; padding: 16px 0; flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-title { margin-top: 48px; }
  .panel { padding: 32px 24px; }
  .topbar { margin-bottom: 36px; }
}
