/* ===============================
   USLOVI KORIŠTENJA 
   =============================== */

/* Base */
:root{
  --brand:#7f1d1d;
  --brand-600:#991b1b;
  --text:#111827;
  --muted:#6b7280;
  --card:#ffffff;
  --line:#e5e7eb;
  --bg:#f8fafc;
  --radius-lg:16px;
  --shadow-md:0 10px 24px rgba(0,0,0,.10);
}

.terms-page{
  background: var(--bg);
  color: var(--text);
}

/* Hero */
.terms-hero{
  position: relative;
  color:#fff;
  padding: 64px 0 72px;
  overflow:hidden;
}
.terms-hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35));
}
.terms-hero__content{
  position:relative;
  z-index:1;
  text-align:center;
  max-width: 1000px;
}
.terms-hero h1{
  font-size: clamp(28px, 4vw, 40px);
  line-height:1.1;
  margin-bottom:12px;
}
.terms-hero p{
  font-size: clamp(15px, 2.2vw, 18px);
  opacity:.95;
}
.terms-hero__meta{
  margin-top:14px;
  font-size:14px;
  opacity:.9;
}

/* Layout */
.terms-content{ padding: 48px 0 80px; }
.terms-grid{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

/* TOC */
.terms-toc{
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  padding:16px 18px;
  box-shadow: var(--shadow-md);
}
.terms-toc__title{
  font-size:16px;
  margin:2px 0 10px;
  color: var(--brand);
}
.terms-toc ol{
  list-style: none;
  padding:0; margin:0;
  counter-reset: toc;
}
.terms-toc li{
  counter-increment: toc;
  margin:6px 0;
}
.terms-toc li a{
  display:block;
  padding:6px 8px;
  text-decoration:none;
  color:var(--text);
  border-radius:10px;
  transition: background .18s ease, color .18s ease;
}
.terms-toc li a::before{
  content: counter(toc) ". ";
  color: var(--muted);
}
.terms-toc li a:hover{
  background: #fafafa;
  color: var(--brand);
}

/* Article */
.terms-article{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.terms-section + .terms-section{ margin-top: 28px; }
.terms-section h2{
  font-size: 22px;
  line-height:1.25;
  margin-bottom:10px;
  color: var(--brand-600);
}
.terms-section p,
.terms-section li{
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.terms-section ul{
  margin:10px 0 0 18px;
}

/* Kontakt blok */
.terms-contact{
  display:grid;
  gap:6px;
  background:#f9fafb;
  border:1px dashed var(--line);
  border-radius:12px;
  padding:14px;
}
.terms-contact a{ color: var(--brand-600); text-decoration: none; }
.terms-contact a:hover{ text-decoration: underline; }

/* Utilities */
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* Responsive */
@media (max-width: 1024px){
  .terms-grid{ grid-template-columns: 1fr; }
  .terms-toc{ position: relative; top: 0; }
}
@media (max-width: 480px){
  .terms-hero{ padding: 48px 0 56px; }
  .terms-article{ padding:18px; }
}

:root { --header-offset: 96px; }
html { scroll-behavior: smooth; }

.terms-section { scroll-margin-top: var(--header-offset); }
