/* legal.css: the text pages (Uvjeti korištenja, Pravila privatnosti) and 404. Loaded after the shared sheets.
   One readable column, no decoration. */

.page { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 110px); }
.page .wrap { max-width: 760px; }

.page h1 { font-size: var(--step-h2); font-weight: 800; line-height: 1.12; }
.page .updated { margin-top: 10px; color: var(--ink2); font-size: 14px; }

/* "Nacrt": both legal pages stay marked as drafts until they are reviewed. */
.draft-note {
  margin-top: 24px; padding: 14px 18px; border-radius: 14px;
  background: #4a3a22; color: var(--warn); font-size: 14.5px; line-height: 1.5;
}
.draft-note b { font-weight: 800; }

.prose { margin-top: 36px; display: grid; gap: 14px; }
.prose h2 { margin-top: 22px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; }
.prose h3 { margin-top: 8px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink2); max-width: 72ch; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { color: var(--green-hi); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }
/* a value still to be filled in before publishing */
.prose .todo, .summary .todo { color: var(--warn); }

/* Section anchors (#brisanje-racuna is linked from Google Play) land below the sticky header. */
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* "Ukratko": the short version at the top of the privacy page. */
.summary {
  margin-top: 28px; padding: 18px 22px; border-radius: 16px;
  background: var(--green-soft);
}
.summary h2 { font-size: 1.1rem; line-height: 1.25; }
.summary ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.summary li { color: var(--ink); max-width: 72ch; }
.summary a { color: var(--green-hi); text-underline-offset: 3px; }

/* Table of contents. */
.toc { margin-top: 28px; }
.toc ol { margin: 0; padding-left: 1.6em; columns: 2; column-gap: 32px; }
.toc li { color: var(--ink2); break-inside: avoid; padding-bottom: 4px; }
.toc a { color: var(--green-hi); text-underline-offset: 3px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Tables (purposes, retention): scroll sideways on a narrow phone instead of squeezing. */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { color: var(--ink); font-weight: 700; background: var(--band); }
.prose td { color: var(--ink2); }

.not-found { text-align: left; min-height: 50vh; }
.not-found p { margin-top: 12px; color: var(--ink2); }
.not-found .btn { margin-top: 28px; }
