/* Venda website — same colours as the app (lib/core/theme.dart). */
:root {
  --blue: #1849d6;
  --blue-dark: #0e2e8a;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #5d6472;
  --border: #e2e5ec;
  --soft: #eef2fd;
  --accent: #1849d6;
  --danger: #c62828;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318;
    --surface: #1b1e25;
    --text: #e8eaef;
    --muted: #a0a6b3;
    --border: #2c303a;
    --soft: #1f2a44;
    --accent: #7ea0ff;
    --danger: #ef8a8a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--accent); background: var(--soft); }
.top nav a.lang { border: 1px solid var(--border); font-weight: 600; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 56px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, .85); margin: 0; max-width: 560px; }
.hero img { width: 150px; height: 150px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .25)); }
@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero img { width: 96px; height: 96px; order: -1; }
}

/* sections */
section { padding: 40px 0; }
h2 { font-size: 26px; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.dl .card { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: inline-block;
  text-align: center;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: 0;
}
.btn:hover { background: var(--blue-dark); }
.btn.disabled { background: var(--border); color: var(--muted); pointer-events: none; }
.small { font-size: 13px; color: var(--muted); }

/* legal pages */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px clamp(16px, 4vw, 40px); margin: 28px 0; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 4px; line-height: 1.2; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
th { background: var(--soft); }
.note { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.warn { color: var(--danger); font-weight: 600; }

/* footer */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 22px 0; margin-top: 20px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }
