/* ==========================================================
   Capi · páginas de documento (termos, privacidade, excluir conta)
   Base (tokens, botões, topo, rodapé): site.css.
   Ordem: faixa do título, texto, contato, quem somos, responsivo.
   ========================================================== */

.doc-page { --doc-scene: var(--scene-sky); --doc-max: 640px; --doc-art-h: 248px; }
.doc-page--terms { --doc-scene: var(--scene-mint); }
.doc-page--account { --doc-scene: var(--scene-cream); }
.doc-page--team { --doc-scene: var(--scene-lilac); --doc-max: 720px; } /* wider: two portraits side by side */
.doc-page--team .kicker { color: var(--purple-700); }

.doc-wrap { width: min(100% - 2 * var(--gutter), var(--doc-max)); margin-inline: auto; }
/* the header lines up with the reading column */
.doc-page .top { padding-inline: max(var(--gutter), calc((100% - var(--doc-max)) / 2)); }

/* ---------- Band with the title: a scene, with the Capi standing on its edge ---------- */
.doc-head {
  overflow: clip;
  padding-top: calc(var(--nav-h) + var(--s-5) + env(safe-area-inset-top));
  background: var(--doc-scene);
}
.doc-head__layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-5); }
.doc-head__copy { padding-bottom: var(--s-7); }
.doc-head h1 { font-size: var(--fs-h2); margin-top: var(--s-3); }
.doc-head__date { margin-top: var(--s-3); font-size: var(--fs-small); font-weight: 700; }
.doc-head__art { position: relative; width: calc(var(--doc-art-h) * 0.9); height: var(--doc-art-h); }
.doc-head__art::before { /* the white disc from the landing's opening, cut by the edge of the band */
  content: ''; position: absolute; inset: auto 0 -32%; aspect-ratio: 1;
  border-radius: 50%; background: var(--paper);
}
.doc-head__art img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

/* ---------- Text ---------- */
.doc { padding-block: var(--s-7) var(--section-y); line-height: 1.7; overflow-wrap: anywhere; }
.doc > * + * { margin-top: var(--s-4); }
.doc h2 { font-size: var(--fs-h3); line-height: 1.2; margin-top: var(--s-7); }
.doc h3 { font-size: 1.125rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; margin-top: var(--s-5); }
.doc strong { font-weight: 800; }
.doc ul, .doc ol { display: grid; gap: var(--s-2); padding-left: var(--s-5); }
.doc li { padding-left: var(--s-1); }
.doc li::marker { color: var(--green-700); font-weight: 900; }
.doc a { color: var(--green-700); font-weight: 800; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.doc__contact {
  display: grid; gap: var(--s-2);
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--paper-2); border: 2px solid var(--line);
}
.doc h2 + .doc__contact { margin-top: var(--s-4); }
.doc p + .doc__contact { margin-top: var(--s-6); }

/* ---------- Quem somos: founders with photo, then the company ---------- */
.team { padding-block: var(--s-7) var(--section-y); }
.team__intro { font-size: var(--fs-lead); line-height: 1.5; }
.team h2 { font-size: var(--fs-h3); line-height: 1.2; margin: var(--s-7) 0 var(--s-4); }
.team__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.person {
  overflow: hidden; border-radius: var(--r-lg);
  background: var(--paper); border: 2px solid var(--line); border-bottom-width: var(--lip-lg);
}
.person__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.person__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.person__name { font-size: var(--fs-h3); font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.person__role { margin-top: var(--s-1); font-weight: 800; color: var(--ink-soft); }
.team__company {
  display: grid; gap: var(--s-3);
  padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--paper-2); border: 2px solid var(--line);
}
.team__company div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; }
.team__company dt { font-size: var(--fs-small); font-weight: 800; color: var(--ink-soft); }
.team__company dd { font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* 44px touch target without making the row taller */
.team__company a {
  display: inline-block; padding-block: var(--s-3); margin-block: calc(-1 * var(--s-3));
  color: var(--green-700); font-weight: 800; text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .doc-page { --doc-art-h: 168px; }
  .doc-head__layout { gap: var(--s-3); }
  .doc-head__copy { padding-bottom: var(--s-6); }
  .doc, .team { padding-top: var(--s-6); }
  .team__list { grid-template-columns: 1fr; gap: var(--s-4); }
  .person { display: grid; grid-template-columns: var(--s-10) minmax(0, 1fr); align-items: center; }
  .person__photo { height: 100%; }
  .person__body { padding: var(--s-4); }
  .team__company div { grid-template-columns: 1fr; gap: 0; }
}
