/* Fideos legal site. Palette = the app's "Café" tokens (mobile/constants/cafe.ts). */
:root {
  --bg: #ffffff;
  --surface: #fffdf9;
  --warm: #f3e8dc;
  --fg: #211813;
  --fg2: #4a3b31;
  --muted: #76675b;
  --border: #e5d6c7;
  --accent: #7b4a2c;
  --danger: #c22e2e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e;
    --surface: #241c16;
    --warm: #2e241c;
    --fg: #fbf2ea;
    --fg2: #d8c7bb;
    --muted: #a08f82;
    --border: #362b22;
    --accent: #c99a6e;
    --danger: #ef6b6b;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg2);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

header.site img { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }

header.site a {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

h1, h2, h3 { color: var(--fg); line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.3rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

p, ul, ol, table { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }

.updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

.note {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.note p:last-child { margin-bottom: 0; }

.warn { border-color: var(--danger); }
.warn strong { color: var(--danger); }

.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--fg); background: var(--surface); }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero img { width: 6rem; height: 6rem; border-radius: 1.4rem; }
.hero h1 { font-size: 2.4rem; margin-top: 1rem; }
.hero p { font-size: 1.15rem; color: var(--muted); }

.links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.links a:hover, .links a:focus-visible { border-color: var(--accent); }

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
footer.site a { color: var(--muted); }
