/* Legal pages (privacy, terms).
 *
 * These load /landing.css first and inherit its tokens, page shell, cards, nav
 * and footer — this file only adds the long-form prose scale that the marketing
 * page has no use for. Keeping the shell shared means the two surfaces cannot
 * drift apart; if you need a token here, add it to landing.css. */

/* ------------------------------------------------------------ title card -- */

.policy-head-inner {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 96px;
}

.policy-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 112px;
  /* The cap has to include the gutter padding this element already carries, so
   * the h1's text edge lands on the same x as the prose column below it. The
   * explicit width matters: auto cross-axis margins switch off flex stretch,
   * and without it the block shrink-wraps the h1 and max-width never binds. */
  width: 100%;
  max-width: calc(760px + var(--gutter) * 2);
  margin-inline: auto;
}

.policy-title h1 {
  font-size: 48px;
  line-height: 56px;
}

.policy-title .effective {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--muted);
}

/* ----------------------------------------------------------------- prose -- */

.policy-body {
  padding-block: 96px;
}

/* Legal text is read, not scanned, so hold it to a comfortable measure — and
 * centre that measure rather than letting it hug the gutter with a wide gap on
 * the right. Text stays left-aligned; only the column moves. .policy-title
 * carries the same width so the h1 lines up with the prose below it. */
.policy-body > * {
  max-width: 760px;
  margin-inline: auto;
}

.policy-body .summary {
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--card);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.policy-body h2 {
  margin-top: 56px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.policy-body h3 {
  margin-top: 32px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.policy-body p {
  margin-top: 16px;
  line-height: 28px;
  color: var(--secondary);
}

.policy-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.policy-body li {
  position: relative;
  padding-left: 20px;
  line-height: 28px;
  color: var(--secondary);
}

.policy-body li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
}

/* Emphasised terms in the prose read as labels, so lift them to full ink. */
.policy-body strong {
  font-weight: 600;
  color: var(--ink);
}

.policy-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
}

.policy-body a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

/* --------------------------------------------------------------- figures -- */

/* Inset technical diagrams. Hand-built from the same tokens as the rest of the
 * site so they cost nothing to ship and cannot drift out of style. They repeat
 * information the prose already states, so they are aria-hidden — a screen
 * reader gets the paragraph, not the ASCII of a flow chart. */
.fig {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-block: 32px;
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--card);
}

.fig-cap {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* --- horizontal flow of nodes --- */

.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.node {
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.node.soft {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--muted);
  font-weight: 500;
  color: var(--secondary);
}

/* A node that is deliberately not in the path. */
.node.out {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.link {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.link::before,
.link::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--muted);
}

.link::after {
  width: 0;
  height: 0;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  border-left: 5px solid var(--muted);
  background: none;
}

.flow .fig-note {
  flex: none;
}

.fig-note {
  font-size: 12px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

/* --- vertical key chain --- */

.chain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.chain .node {
  white-space: normal;
}

.rung {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-left: 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.rung::before {
  content: "";
  width: 1px;
  height: 100%;
  background: var(--muted);
}

/* --- two-column inventory --- */

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 620px) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.col-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 999px;
  color: var(--white);
}

.item i svg {
  width: 9px;
  height: 9px;
}

.item.yes i { background: var(--teal); }
.item.no i { background: var(--muted); }

.item.no {
  color: var(--muted);
}

.col-rule {
  height: 1px;
  margin-block: 3px;
  background: rgba(0, 0, 0, 0.08);
}

/* --- dark mono panel, for request shapes --- */

.fig-code {
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  padding-block: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.fig-code .code-line {
  height: 26px;
  padding-inline: 18px;
}

.fig-code .code-line em {
  width: 12px;
  margin-right: 8px;
}

/* --- checklist of guards --- */

.guards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guard {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 19px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.guard i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
}

.guard i svg {
  width: 9px;
  height: 9px;
}

.guard b {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------- narrow --- */

@media (max-width: 1023px) {
  .policy-head-inner {
    padding-bottom: 64px;
  }

  .policy-title {
    margin-top: 72px;
  }

  .policy-title h1 {
    font-size: 40px;
    line-height: 46px;
  }

  .policy-body {
    padding-block: 64px;
  }
}

@media (max-width: 767px) {
  .policy-title h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .policy-body h2 {
    margin-top: 40px;
    font-size: 21px;
    line-height: 28px;
  }

  .policy-body .summary {
    padding: 20px;
    font-size: 16px;
    line-height: 26px;
  }
}
