/* The legal pages (scripts/legal.mjs): on top of the site's own stylesheet (styles.css), which sets the colours, fonts,
   header and footer. Served at /legal.css (same origin, so the site's CSP needs no change). */
.bar-end { margin-left: auto; }
.legal { max-width: 52rem; padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(8px, 2vw, 24px); color: var(--text); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; margin-bottom: 20px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; margin: 2.4em 0 0.6em; }
.legal h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.legal p, .legal li { font-size: 1.02rem; line-height: 1.7; text-wrap: pretty; }
.legal p { margin: 0 0 1em; }
.legal ul, .legal ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.legal li { margin: 0 0 0.45em; padding-left: 0.2em; }
.legal li::marker { color: var(--amber-ink); }
.legal strong { font-weight: 600; }
.legal a { color: var(--amber-ink); text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.9em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.legal blockquote { margin: 0 0 1.2em; padding: 0.4em 0 0.4em 1.1em; border-left: 3px solid var(--amber); color: var(--muted); }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal-version { color: var(--muted); font-size: 0.92rem; margin-bottom: 2em; }

/* An owner placeholder ([PROVJERITI ...]): visible, but quiet. */
.todo { background: rgba(242, 182, 92, 0.2); color: var(--amber-ink); border-radius: 4px; padding: 0 0.3em; font-size: 0.88em; font-weight: 500; overflow-wrap: anywhere; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Draft banner: shown while placeholders remain. */
.draft-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 32px; padding: 12px 16px; border: 1px solid rgba(185, 122, 28, 0.45); background: rgba(242, 182, 92, 0.14); border-radius: 10px; color: var(--amber-ink); font-size: 0.92rem; line-height: 1.45; }
.draft-banner strong { font-weight: 600; letter-spacing: 0.02em; }

/* Tables scroll sideways on a phone instead of squeezing the words. */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--hair); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hair-2); }
.legal th { font-weight: 600; background: var(--cream); white-space: nowrap; }
.legal tr:last-child td { border-bottom: 0; }
.legal td p { margin: 0; }

.legal-more { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--hair); }

@media (max-width: 640px) {
  .legal p, .legal li { font-size: 1rem; }
  .legal h1 { overflow-wrap: anywhere; }
}
@media print {
  .site-header, .site-footer, .skip, .legal-more { display: none; }
  body, .sec-paper { background: #fff; }
  .todo { background: none; border: 1px solid #999; }
}
