/* Priorum institutional site. Tokens mirror frontend/src/styles/tokens.css so the
   site and the app share one identity. Fonts are self-hosted (no CDN). */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #0f4c5c;
  --primary-700: #0b3a47;
  --primary-500: #16647a;
  --primary-100: #dcebef;
  --primary-50: #eef5f7;
  --gold: #c9a227;
  --gold-light: #e8c56a;
  --gold-50: #fbf6e4;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --line: #e6e2da;
  --text: #1f2a30;
  --text-2: #55646b;
  --text-3: #6f7c82;
  --side-text: #dcebef;
  --side-muted: #9dbec8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 42, 48, 0.05), 0 4px 16px rgba(31, 42, 48, 0.06);
  --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --wrap: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom on short pages (404). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-500);
}

a:hover {
  color: var(--primary-700);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-700);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

/* Header */
.header {
  background: var(--primary);
  color: var(--side-text);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.brand:hover {
  color: #fff;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav a {
  color: var(--side-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--gold-light);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
  color: var(--side-text);
  padding: 72px 0 88px;
}

.hero h1 {
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 640px;
  color: var(--side-text);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--gold-light);
  color: var(--primary-700);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 680px;
  color: var(--text-2);
  margin-bottom: 36px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.section.alt .card {
  background: var(--bg);
  box-shadow: none;
}

.card p {
  color: var(--text-2);
  margin: 0;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-50);
  border: 2px solid var(--gold);
}

.checklist strong {
  color: var(--text);
}

.contact {
  text-align: center;
}

.contact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact .button {
  background: var(--primary);
  color: #fff;
}

.contact .button:hover {
  background: var(--primary-500);
  color: #fff;
}

/* Legal pages */
.legal {
  padding: 56px 0 72px;
}

.legal .wrap {
  max-width: 780px;
}

.legal .updated {
  color: var(--text-3);
  font-size: 0.95rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2em;
}

.legal h3 {
  margin-top: 1.4em;
}

.legal li {
  margin-bottom: 0.4em;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.legal th {
  background: var(--primary-50);
  color: var(--primary-700);
}

.table-scroll {
  overflow-x: auto;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 8px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2 240px;
}

/* Footer: the company identification the Meta business verification checks
   (legal name, CNPJ, address, phone, e-mail) lives here on every page. */
.footer {
  background: var(--primary-700);
  color: var(--side-muted);
  padding: 48px 0 28px;
  font-size: 0.93rem;
}

.footer .grid {
  gap: 28px;
}

.footer h2 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 12px;
}

.footer address {
  font-style: normal;
}

.footer p {
  margin: 0 0 6px;
}

.footer a {
  color: var(--side-text);
}

.footer a:hover {
  color: #fff;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 6px;
}

.footer .legal-line {
  border-top: 1px solid rgba(220, 235, 239, 0.15);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 640px) {
  .header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .section {
    padding: 52px 0;
  }

  .wrap {
    padding: 0 16px;
  }
}
