/* Site institucional: layout próprio sobre os tokens de /ui.css (carregado antes deste arquivo) */
html { scroll-behavior: smooth }
body { font-size: 16px; line-height: 1.6 }
a { color: var(--foreground) }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px }

header.top {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 85%, transparent);
  backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px }
.brand { font-size: 16px }
header.top nav { margin-left: auto; display: flex; gap: 20px; align-items: center; font-size: 14px }
header.top nav a { color: var(--muted-foreground); text-decoration: none }
header.top nav a:hover { color: var(--foreground) }
header.top nav a.btn-primary { color: var(--primary-foreground) }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--radius); font-weight: 500; font-size: 15px; border: 1px solid transparent; text-decoration: none; transition: opacity .15s, background-color .15s }
.btn:hover { text-decoration: none }
.btn-primary:hover { opacity: .88 }
.btn-ghost { background: var(--background); color: var(--foreground); border-color: var(--input) }
.btn-ghost:hover { background: var(--secondary) }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px }

footer.bottom { border-top: 1px solid var(--border); margin-top: 80px; padding: 32px 0 40px; color: var(--muted-foreground); font-size: 13px }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between }
footer.bottom .links { display: flex; flex-wrap: wrap; gap: 8px 20px }
footer.bottom .links a { color: var(--muted-foreground); text-decoration: none }
footer.bottom .links a:hover { color: var(--foreground) }
footer.bottom .legal { line-height: 1.7 }

/* páginas de texto (termos / privacidade) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 16px 0 }
.doc h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.03em; font-weight: 700; margin-bottom: 6px }
.doc .updated { color: var(--muted-foreground); font-size: 14px; margin-bottom: 36px }
.doc h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 36px 0 10px }
.doc p, .doc li { color: var(--muted-foreground); font-size: 15px }
.doc p + p { margin-top: 10px }
.doc ul { margin: 8px 0 0 22px }
.doc li + li { margin-top: 6px }
.doc strong { color: var(--foreground) }

@media (max-width: 640px) {
  header.top nav a:not(.btn) { display: none }
  .brand { font-size: 15px }
  .doc h1 { font-size: 26px }
}
