/* WayCash — estilos institucionais */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #f6f4ef;
  --surface: #ffffff;
  --ink: #14201c;
  --ink-soft: #46524c;
  --green: #1c5f4a;
  --green-dark: #123f32;
  --gold: #b8862b;
  --line: #d8d2c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

a {
  color: var(--green);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--green);
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--green);
}

/* Hero */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: 40px;
  max-width: 15ch;
}

.hero p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 0;
}

/* Sections */

main section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

main section:last-of-type {
  border-bottom: none;
}

section h2 {
  font-size: 24px;
}

section .eyebrow {
  display: block;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}

/* Article / legal text pages */

.legal main {
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: 32px;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 21px;
  margin-top: 40px;
}

.legal p, .legal li {
  color: var(--ink);
  font-size: 16px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 24px 0;
}

/* Contact card */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 28px;
  margin-top: 24px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row dt {
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-row dd {
  margin: 0;
  font-size: 16px;
  text-align: right;
}

.contact-row dd a {
  font-weight: 500;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  margin-top: 8px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer p {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
}

footer nav {
  gap: 18px;
}

footer nav a {
  font-size: 13px;
}

/* Responsive */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .contact-row {
    flex-direction: column;
    gap: 4px;
  }
  .contact-row dd {
    text-align: left;
  }
  footer .wrap {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
