/* =========================================================================
   paginas.css — estilos compartilhados das páginas institucionais
   (Sobre, Termos de Uso, Política de Privacidade, Contato)
   ========================================================================= */

/* Fonte Inter auto-hospedada (compatível com a CSP style-src/font-src 'self') */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2?v=4.1") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable-Italic.woff2?v=4.1") format("woff2");
}

:root {
  --brand-blue: #0800c8;
  --brand-blue-strong: #050096;
  --paper: #ffa300;
  --paper-hi: #ffb733;
  --ink: #17202a;
  --muted: #475569;
  --accent: #008b84;
  --accent-strong: #006f6a;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line-soft: #e4e9f2;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.16);
  --shadow-topbar: 0 2px 14px rgba(8, 0, 200, 0.28);
  --maxw: 860px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 480px at 50% -10%, var(--paper-hi), transparent 60%),
    var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ------------------------------------------------------------------ Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand-blue);
  color: #fff;
  padding: 12px clamp(16px, 4vw, 28px);
  box-shadow: var(--shadow-topbar);
}

.topbar .brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  max-width: 100%;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------- Main */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px) 56px;
}

/* -------------------------------------------------------------------- Hero */
.hero {
  text-align: center;
  margin: clamp(28px, 6vw, 44px) 0 22px;
}

.hero .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-blue-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.85rem, 5.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero .subtitle,
.hero .updated {
  margin: 12px auto 0;
  max-width: 580px;
  color: #6b5426;
  font-weight: 600;
}

.hero .subtitle {
  font-size: 1.03rem;
}

.hero .updated {
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------- Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 34px);
}

.card > .lead,
.card > .intro {
  margin-top: 0;
  color: var(--muted);
}

.card > .intro {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

/* --------------------------------------------------------- Numbered clauses */
.clause {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.clause:last-of-type {
  border-bottom: 0;
  padding-bottom: 6px;
}

.clause h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--brand-blue);
  font-size: clamp(1.02rem, 2.6vw, 1.16rem);
}

.clause .num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(8, 0, 200, 0.09);
  color: var(--brand-blue);
  font-size: 0.9rem;
  font-weight: 800;
}

.clause p {
  margin: 8px 0;
}

/* -------------------------------------------------------------- Rich text */
.card ul {
  padding-left: 20px;
  margin: 8px 0;
}

.card li {
  margin: 7px 0;
}

.card li strong {
  color: var(--ink);
}

a.link {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

a.link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------- Feature grid (page Sobre) */
.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 20px 0 4px;
}

.tile {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.tile h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: var(--ink);
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------- Contact items (grid) */
.contact-item {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

a.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 0, 200, 0.13);
  border-color: #c7d2fe;
}

.contact-item .lbl {
  display: block;
  margin: 0 0 3px;
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item .val {
  display: block;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

/* ----------------------------------------------------------------- Callout */
.callout {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 139, 132, 0.08);
  border: 1px solid rgba(0, 139, 132, 0.22);
}

.callout strong {
  color: var(--ink);
}

/* ------------------------------------------------------------- Info strip */
.info-strip {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- Back button */
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--brand-blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.16s ease;
}

.back:hover {
  background: var(--brand-blue-strong);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------- Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  padding: 26px 20px 40px;
  text-align: center;
  color: rgba(23, 32, 42, 0.75);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .sep {
  opacity: 0.5;
}

/* ------------------------------------------------------------ Accessibility */
a:focus-visible,
.back:focus-visible,
.contact-item:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 640px) {
  body {
    line-height: 1.62;
  }

  .hero {
    text-align: left;
  }

  .hero .subtitle,
  .hero .updated {
    margin-left: 0;
  }

  .back {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------------------------------------------------------- Print */
@media print {
  body {
    background: #fff;
  }

  .topbar,
  .site-footer,
  .back {
    display: none;
  }

  .card {
    box-shadow: none;
    padding: 0;
  }
}
