/* Pasporo legal site. Light only. Tokens from docs/DESIGN.md (light column). */
:root {
  --paper: #F5EFE3;
  --paper-raised: #FBF8F1;
  --paper-sunk: #ECE4D3;
  --ink: #14213D;
  --ink-2: #4A5471;
  --ink-3: #6F7690;
  --line: #DDD3C0;
  --stamp: #C2402A;
  --stamp-soft: #F4DCD2;
  --danger: #9B2A1F;
  --measure: 44rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--stamp); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
}
nav.site { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
nav.site a { color: var(--ink-2); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding: 40px 0 56px; }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 40px 0 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 6px; }
strong { font-weight: 600; }

.meta { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 28px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 20px 0;
}
.card > :last-child { margin-bottom: 0; }
.card.stamp { border-left: 4px solid var(--stamp); }
.card.danger { border-left: 4px solid var(--danger); }

.placeholder {
  background: var(--stamp-soft);
  color: var(--ink);
  padding: 0 4px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.table-scroll { overflow-x: auto; margin: 16px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--paper-sunk); font-weight: 600; }
td:first-child { min-width: 9rem; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper-raised);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
}
.button:hover { color: var(--paper-raised); background: #22325A; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.4em; margin-bottom: 12px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  font-weight: 600;
  font-size: 0.9em;
  display: grid;
  place-items: center;
}

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

footer.site { border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9rem; }
footer.site .wrap { padding-top: 22px; padding-bottom: 32px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
footer.site a { color: var(--ink-2); }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  main { padding-top: 28px; }
  th, td { padding: 8px; }
}
