/* GONISA Studio legal site. No external fonts, scripts, or trackers. */
:root {
  --bg: #faf7f0;
  --surface: #ffffff;
  --text: #14264a;
  --muted: #4f5d78;
  --primary: #2f7f77;
  --primary-soft: #e3f1ef;
  --accent: #f4b400;
  --border: #e4dfd3;
  --warn-bg: #fff4d6;
  --warn-border: #e0a800;
  --warn-text: #5a4300;
  --radius: 14px;
  --measure: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a30;
    --surface: #15243f;
    --text: #eef1f7;
    --muted: #b4bfd3;
    --primary: #6cc7bd;
    --primary-soft: #1d3b44;
    --border: #2a3b5c;
    --warn-bg: #3a3014;
    --warn-border: #e0a800;
    --warn-text: #ffe7a3;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem; background: var(--surface); }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .inner, .site-footer .inner, main { max-width: var(--measure); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.08em; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.site-nav a { font-weight: 600; font-size: 0.95rem; }

main { padding-top: 2.25rem; padding-bottom: 3rem; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; padding-top: 0.25rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.eyebrow { color: var(--primary); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.25rem 0; }
.card > :last-child { margin-bottom: 0; }
.summary { border-left: 5px solid var(--primary); }
.summary h2 { margin-top: 0; }

.toc { background: var(--primary-soft); border-radius: var(--radius); padding: 1rem 1.4rem; margin: 1.5rem 0 0; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }

.input-required {
  display: inline;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-border);
  border-radius: 6px;
  padding: 0.05rem 0.4rem;
  font-weight: 700;
}
.notice-required { background: var(--warn-bg); color: var(--warn-text); border: 2px dashed var(--warn-border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); }
th { font-weight: 700; }
.table-wrap { overflow-x: auto; }

.app-list { list-style: none; padding: 0; }
.app-list li { margin: 0; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.site-footer .inner { padding-top: 1.25rem; padding-bottom: 2rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .site-header .inner { flex-wrap: wrap; }
  .card { padding: 1rem 1.1rem; }
}

@media print {
  .site-header, .site-footer, .skip-link, .toc { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
