/* largo.ph legal pages. Colors and type follow design-system/largo/MASTER.md.
   Layout: one readable column (~68ch) with a sticky contents list on wide screens. */
:root {
  --bg: #fffffc;
  --surface: #ffffff;
  --ink: #013b2d;
  --muted: #5b6b63;
  --line: #dce6df;
  --green: #007a37;
  --brand: #00b14f;
  --tint: #dcf4e5;
  --on-green: #ffffff;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}
a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
.top-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top img { height: 30px; width: auto; display: block; }
.top picture { display: block; }
.top nav { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 0.9rem; min-width: 0; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: 20px;
  padding-block: 40px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 900px) {
  .page { grid-template-columns: 15rem minmax(0, 1fr); gap: 56px; }
  .toc { position: sticky; top: 24px; align-self: start; }
}

.toc { font-size: 0.875rem; }
.toc p { margin: 0 0 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.toc a { color: var(--ink); font-weight: 500; text-decoration: none; }
.toc a:hover { color: var(--green); text-decoration: underline; }

article { min-width: 0; max-width: 68ch; }
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.summary {
  background: var(--tint);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 32px;
}
.summary h2 { margin-top: 0; font-size: 1rem; }
.summary ul { margin: 0; padding-left: 1.2rem; }
h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 40px 0 8px;
  scroll-margin-top: 24px;
  text-wrap: balance;
}
h3 { font-size: 1.02rem; margin: 22px 0 4px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 1.3rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 52px; position: relative; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 600; font-size: 0.8rem; display: grid; place-items: center; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; padding: 24px 20px; text-align: center; }
