/* Shared shell for the long-form legal pages (termos, privacidade).
   These are the only pages with their own stylesheet: index.html and 404.html
   keep their CSS inline because they are one-offs, but two pages sharing a
   layout is the point where a file stops being duplication and starts being
   the source of truth. */

:root{
  --ink:#0e241d;
  --ink-2:#1d3b32;
  --muted:#5c6f68;
  --green:#1ba968;
  --green-dark:#0a6e45;
  --green-soft:#e8f7ef;
  --sand:#faf9f4;
  --line:#e2e9e4;
  --warning-soft:#fff5e9;
  --warning:#9d4e21;
  --shadow-sm:0 10px 30px rgba(14,36,29,.06);
  --display:"Bricolage Grotesque","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--sand);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
a{color:var(--green-dark);text-decoration:underline;text-underline-offset:2px}
a:hover{color:var(--green)}
:focus-visible{outline:3px solid var(--green-dark);outline-offset:3px;border-radius:6px}

.container{width:min(100% - 32px,720px);margin:0 auto}

/* header */
.legal-head{border-bottom:1px solid var(--line);background:#fff}
.legal-head .container{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:inline-flex;align-items:center;gap:10px;font:800 17px/1 var(--display);letter-spacing:-.04em;color:var(--ink);text-decoration:none}
.brand:hover{color:var(--ink)}
.brand-mark{
  display:grid;place-items:center;width:32px;height:32px;border-radius:10px;
  background:linear-gradient(150deg,var(--green),#3fd193);color:#fff;
  box-shadow:0 8px 18px rgba(27,169,104,.23);
}
.brand-mark svg{display:block;width:18px;height:18px}
.back{font-size:14px;font-weight:600;text-decoration:none;color:var(--muted);white-space:nowrap}
.back:hover{color:var(--ink-2)}

/* title block */
.legal-title{padding:44px 0 8px}
.legal-title h1{font-family:var(--display);font-size:clamp(30px,6vw,42px);font-weight:800;letter-spacing:-.035em;line-height:1.06;margin:0;text-wrap:balance}
.legal-meta{margin-top:12px;font:500 12.5px/1.5 var(--mono);color:var(--muted);letter-spacing:.02em}

/* the "what this means" callout at the top of each document */
.legal-summary{
  margin:26px 0 0;padding:18px 20px;
  border:1px solid var(--line);border-radius:16px;
  background:#fff;box-shadow:var(--shadow-sm);
}
.legal-summary strong{display:block;font-family:var(--display);font-size:16px;letter-spacing:-.02em;margin-bottom:8px}
.legal-summary p{margin:0 0 8px;font-size:14.5px;color:var(--muted)}
.legal-summary p:last-child{margin-bottom:0}

/* table of contents */
.toc{margin:26px 0 0;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:#fff}
.toc h2{font-family:var(--display);font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 10px;font-weight:700}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:26px}
.toc li{margin-bottom:5px;font-size:14px;break-inside:avoid}
@media (max-width:560px){.toc ol{columns:1}}

/* body */
.legal-body{padding:8px 0 56px}
.legal-body section{padding-top:34px;scroll-margin-top:16px}
.legal-body h2{
  font-family:var(--display);font-size:22px;font-weight:700;
  letter-spacing:-.025em;line-height:1.2;margin:0 0 14px;text-wrap:balance;
}
.legal-body h3{font-family:var(--display);font-size:16.5px;font-weight:700;letter-spacing:-.02em;margin:24px 0 8px}
.legal-body p{margin:0 0 14px;font-size:15.5px;text-wrap:pretty}
.legal-body ul,.legal-body ol{margin:0 0 14px;padding-left:22px;font-size:15.5px}
.legal-body li{margin-bottom:7px}
.legal-body li::marker{color:var(--muted)}
.legal-body strong{color:var(--ink-2)}

/* a claim the reader should not skim past */
.legal-body .note{
  margin:0 0 16px;padding:14px 16px;
  border-left:3px solid var(--green);border-radius:0 12px 12px 0;
  background:var(--green-soft);font-size:14.5px;
}
.legal-body .warn{
  margin:0 0 16px;padding:14px 16px;
  border-left:3px solid var(--warning);border-radius:0 12px 12px 0;
  background:var(--warning-soft);font-size:14.5px;
}
.legal-body .note p:last-child,.legal-body .warn p:last-child{margin-bottom:0}

/* the "uses and legal bases" table */
.legal-body .table-wrap{overflow-x:auto;margin:0 0 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.legal-body table{border-collapse:collapse;width:100%;min-width:520px;font-size:14px}
.legal-body th,.legal-body td{padding:11px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.legal-body thead th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:var(--sand);font-weight:700}
.legal-body tbody tr:last-child td{border-bottom:0}

/* an unfilled legal placeholder — impossible to publish by accident */
.todo{
  display:inline-block;padding:1px 7px;border-radius:6px;
  background:#ffe2e2;color:#9b1c1c;
  font:600 13px/1.5 var(--mono);letter-spacing:.01em;
}

/* footer */
.legal-foot{border-top:1px solid var(--line);background:#fff}
.legal-foot .container{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;padding:22px 0;font-size:13px;color:var(--muted)}
.legal-foot a{color:var(--muted)}
.legal-foot nav{display:flex;flex-wrap:wrap;gap:16px}
