/* Shared look for cucinIA's public pages (the privacy policy, and open.html, where a shared recipe
   link waits on its way to the store). System fonts only and no external
   files: a privacy page shouldn't hand visitors' IPs to a font CDN. Colors are the app's own
   (src/constants/theme.ts). */
:root {
  --bg: #f4f5ee;
  --surface: #ffffff;
  --text: #24261f;
  --text-secondary: #63665a;
  --accent: #2f6b4a;
  --accent-soft: #eef3ec;
  --border: #e2e4d9;
  --todo-bg: #fbf1e0;
  --todo-text: #6b4a0e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151612;
    --surface: #1f211b;
    --text: #eeefe8;
    --text-secondary: #b3b6a8;
    --accent: #8cc7a3;
    --accent-soft: #22302a;
    --border: #33362c;
    --todo-bg: #3a2f17;
    --todo-text: #f3db9a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-wrap: break-word;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.lang {
  font-size: 0.9rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.meta {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.summary {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin: 1.5rem 0;
}

.summary h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem 0.25rem;
  margin: 1rem 0;
}

.card h3 {
  margin-top: 0;
}

.basis {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

nav.toc ol {
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 560px) {
  nav.toc ol {
    columns: 1;
  }
}

/* Details only the owner can fill in (name, RUT, address, contact email). None may be left in a
   published version. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 0.25em;
  border-radius: 4px;
  font-weight: 600;
}

footer {
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* The page a shared recipe link shows on its way to the App Store or Google Play (open.html). */
.handoff {
  max-width: 26rem;
  padding-top: 4rem;
  text-align: center;
}

.handoff img {
  border-radius: 22%;
}

.handoff h1 {
  margin-top: 1rem;
  text-wrap: balance;
}

.handoff .stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.handoff .stores a {
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

/* The brand in the header links home on the legal and help pages. */
a.brand {
  text-decoration: none;
}

/* The home page (index.html, en.html). */
.home .hero {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.home .hero img {
  border-radius: 22%;
}

.home .hero h1 {
  margin-top: 1rem;
  font-size: 2.2rem;
  text-wrap: balance;
}

.home .hero p {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.home .stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.home .stores a,
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 0;
}

.help-line {
  text-align: center;
}

/* The help page (ayuda.html, help.html): the address first, then the questions. */
.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 0.25rem;
  margin: 1.5rem 0 2rem;
}

.contact h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.contact .address {
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.85rem 0;
}

.faq details p {
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
