/* Stylesheet for the legal documents (privatnost.html, uvjeti.html).
   Same type system and palette as the main site, tuned for long-form reading:
   a single measured column, generous line-height, tables that scroll instead of
   overflowing the viewport on a phone. */

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

:root {
  --blue: #155eef;
  --blue-light: #4c86ff;
  --paper: #ffffff;
  --paper2: #f2f6fd;
  --ink: #0a1220;
  --muted: rgba(10, 18, 32, 0.66);
  --line: rgba(10, 18, 32, 0.13);
  --night: #060f24;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, table { max-width: 100%; }

/* ── header ─────────────────────────────────────────────────────────── */
.doc-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.doc-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.35rem; letter-spacing: 0.09em;
  color: var(--ink); text-decoration: none;
}
.doc-logo span { color: var(--blue); }
.doc-logo img { display: block; border-radius: 50%; }
.doc-back {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s; white-space: nowrap;
}
.doc-back:hover { color: var(--blue); }

/* ── document ───────────────────────────────────────────────────────── */
.doc { max-width: 800px; margin: 0 auto; padding: 3.5rem 2rem 4rem; }

.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.doc-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--blue); opacity: 0.9; }

.doc h1 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
}
.doc-updated { font-size: 0.75rem; color: var(--muted); margin-bottom: 2.2rem; }
.doc-lead {
  font-size: 1.02rem; color: rgba(10, 18, 32, 0.82);
  padding: 1.3rem 1.5rem; background: var(--paper2);
  border-left: 3px solid var(--blue); border-radius: 2px;
  margin-bottom: 3rem;
}

.doc section { margin-bottom: 2.8rem; }

.doc h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: 1.75rem; letter-spacing: 0.04em; line-height: 1.15;
  margin: 0 0 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.doc h3 {
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.01em;
  margin: 1.7rem 0 0.6rem; color: var(--ink);
}
.doc p { font-size: 0.92rem; color: rgba(10, 18, 32, 0.78); margin-bottom: 0.9rem; }
.doc p:last-child { margin-bottom: 0; }

.doc ul { margin: 0 0 1rem 0; padding-left: 1.1rem; list-style: none; }
.doc li {
  position: relative; font-size: 0.92rem; color: rgba(10, 18, 32, 0.78);
  margin-bottom: 0.5rem; padding-left: 0.9rem;
}
.doc li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: 0.75;
}

.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--blue-light); }
.doc strong { font-weight: 600; color: var(--ink); }
.doc code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85em; background: var(--paper2); padding: 0.12em 0.4em;
  border-radius: 3px; border: 1px solid var(--line);
}

/* tables scroll inside their own box instead of pushing the page sideways */
.doc-table {
  display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; margin: 0.4rem 0 1.2rem;
  font-size: 0.84rem; border: 1px solid var(--line); border-radius: 3px;
}
.doc-table th, .doc-table td {
  padding: 0.7rem 0.9rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); line-height: 1.55;
}
.doc-table tr:last-child th, .doc-table tr:last-child td { border-bottom: none; }
.doc-table th {
  font-weight: 600; color: var(--ink); background: var(--paper2);
  white-space: nowrap;
}
.doc-table td { color: rgba(10, 18, 32, 0.78); }

.doc-footer-links {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.doc-footer-links a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.doc-footer-links a:hover { color: var(--blue); }

/* ── credit ─────────────────────────────────────────────────────────── */
.doc-credit {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 2rem 1.5rem 2.4rem; background: var(--night);
}
.doc-credit-line {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}
.doc-credit-line strong { color: rgba(255, 255, 255, 0.62); font-weight: 700; }
.doc-credit-url {
  font-size: 0.74rem; letter-spacing: 0.04em; color: var(--blue-light);
  text-decoration: none; transition: color 0.2s;
}
.doc-credit-url:hover { color: #fff; text-decoration: underline; }

/* ── phones ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .doc-nav { padding: 0.85rem 1.1rem; }
  .doc-logo { font-size: 1.15rem; }
  .doc-back { font-size: 0.64rem; letter-spacing: 0.06em; }
  .doc { padding: 2.4rem 1.2rem 3rem; }
  .doc-lead { padding: 1.1rem 1.1rem; font-size: 0.95rem; }
  .doc h2 { font-size: 1.5rem; }
  .doc-table { font-size: 0.8rem; }
  .doc-table th, .doc-table td { padding: 0.6rem 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
