/* Shared comics theme for contact and legal pages (November 2026). */
@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
  --cream: #fff8e6;
  --paper: #fffdf6;
  --ink: #2b2118;
  --muted: #5f564b;
  --green: #4f7a3a;
  --green-dark: #2f5a2a;
  --green-soft: #dcecc9;
  --yellow: #ffd34d;
  --yellow-soft: #fff1b8;
  --red: #e2553b;
  --line: 2.5px solid #2b2118;
  --pop: 5px 5px 0 #2b2118;
  --pop-sm: 3px 3px 0 #2b2118;
  --display: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.04rem; line-height: 1.65; }
a { color: var(--green-dark); font-weight: 700; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 3px solid #f39a3d; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border: var(--line); border-radius: 12px; background: var(--paper); font-weight: 900; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 230, .94); border-bottom: var(--line); backdrop-filter: blur(12px); }
.nav { width: min(1120px, calc(100% - 32px)); min-height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.brand img { width: 40px; height: 40px; border: var(--line); border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 800; }
.nav-links a:hover { color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 18px; border: var(--line); border-radius: 14px; background: var(--yellow); box-shadow: var(--pop-sm); color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover, .btn:focus-visible { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.btn.green { background: var(--green); color: #fff; }

.page-hero { padding: 54px 18px 34px; background: linear-gradient(180deg, #fff3cf, var(--cream)); }
.page-hero .wrap { max-width: 860px; }
.kicker { display: inline-block; margin: 0 0 12px; padding: 2px 13px; border: var(--line); border-radius: 999px; background: var(--yellow); box-shadow: var(--pop-sm); font-family: var(--display); font-weight: 800; transform: rotate(-2deg); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { margin: 0; color: var(--muted); font-weight: 600; }
.wrap { width: min(1120px, 100%); margin: 0 auto; }
main { padding: 0 18px 70px; }
.doc { max-width: 860px; margin: 0 auto; padding: 34px 38px; border: var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--pop); }
.doc h2 { margin: 34px 0 10px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 22px 0 6px; font-size: 1.2rem; }
.doc p, .doc li { color: #3d332a; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .note { margin: 16px 0; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #eef6e2; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.doc dt { font-weight: 900; }
.doc dd { margin: 0; color: #3d332a; }
.todo { padding: 0 6px; border: 2px dashed var(--red); border-radius: 6px; background: #fde3dc; color: #8a2a17; font-weight: 800; }
.toc { margin: 0 0 26px; padding: 16px 20px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow-soft); }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc a { color: var(--ink); font-weight: 700; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 26px; max-width: 1020px; margin: 0 auto; align-items: start; }
.form-card, .side { padding: 28px; border: var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--pop); }
.side { background: #eef6e2; }
.side h2 { margin: 0 0 8px; font-size: 1.4rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 900; }
.field label small { color: var(--muted); font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(255, 211, 77, .7); }
.field textarea { min-height: 180px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .88rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--green-soft); }
.form-status.error { background: #fde3dc; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .88rem; }
button[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.site-footer { padding: 34px 18px; background: var(--ink); color: rgba(255, 255, 255, .78); }
.footer-inner { width: min(1120px, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: #fff; font-weight: 800; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.social-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; color: #fff; text-decoration: none; transition: transform .15s, background .15s; }
.social-icon:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.social-icon svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .nav-links a:not(.btn):not(.nav-coop) { display: none; }
  .nav { flex-wrap: wrap; padding-block: 8px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .doc { padding: 22px 18px; }
  .doc dl { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .contact-layout, .field-row { grid-template-columns: 1fr; }
  .form-card, .side { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.nav-coop { white-space: nowrap; }
