/*
 * CSS Document: legal_notice.css
 * Premium Legal/Info Aesthetic: "Clean EU / Serious Public Intelligence"
 * Purpose: Standalone stylesheet for pages in legal_notice/
 * Features: High readability, constrained widths, subdued aesthetics
 * ============================================================================
 */

/* ---- 1. DESIGN SYSTEM (CSS VARIABLES) -------------------------------------- */
:root {
  color-scheme: light dark;
  forced-color-adjust: none;

  /* Core Colors */
  --bg-deep-midnight: #061e40;
  --surface-reader: rgba(15, 23, 42, 0.4); /* Much more transparent than index */
  
  /* Accents */
  --accent-blue: #0b4ea2;
  --accent-red: #ee1c25;
  
  /* Typography Colors - Softer contrast for long reading */
  --text-primary: #f1f5f9; 
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Borders */
  --border-light: 1px solid rgba(255, 255, 255, 0.08); /* Barely visible */
  
  /* Metrics */
  --max-width: 900px; /* Narrower for long-form reading */
  --radius-lg: 20px;
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- 2. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-deep-midnight);
  /* Subtler but visible national colors for continuous reading */
  background-image:
    radial-gradient(circle at top right, rgba(11, 78, 162, 0.2) 0%, transparent 60%),
    radial-gradient(circle at bottom left, rgba(238, 28, 37, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7; /* Looser line height for reading */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ---- 3. PAGE LAYOUT -------------------------------------------------------- */
#page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeUpEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- 4. SIMPLE HEADER ------------------------------------------------------ */
#simple_header {
  padding: 3rem 0 1rem 0;
  display: flex;
  align-items: center;
}

#simple_logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}

#simple_logo img:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---- 5. MAIN CONTENT AREA (READER MODE) ------------------------------------ */
#page_body {
  flex-grow: 1;
  margin-top: 1.5rem;
  padding: 4rem 4.5rem;
  background: var(--surface-reader);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: var(--border-light);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Main title */
#page_body h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: block;
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

#page_body h2::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px; /* Very thin, formal separator */
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-blue) 70%, transparent 70%, transparent 76%, var(--accent-red) 76%, var(--accent-red) 100%);
  animation: underlineReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

/* ---- 6. CONTENT PLACEHOLDER (TYPOGRAPHY) ----------------------------------- */
.content_placeholder {
  max-width: 70ch; /* Optimal reading width */
  margin: 0 auto;  /* Center the block if container is wider */
  font-size: 0.95rem; /* Zmenšené písmo pre právne stránky */
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.content_placeholder p {
  margin-bottom: 1.4rem;
}

.content_placeholder h3 {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.2rem; /* Jemnejšie zmenšený aj nadpis */
  font-weight: 600;
  letter-spacing: -0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Jemná oddeľovacia čiara medzi odsekmi */
}

.content_placeholder ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content_placeholder li {
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}

/* Links inside the text body */
.content_placeholder a {
  color: #60a5fa; /* A highly readable blue against dark */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

.content_placeholder a:hover {
  text-decoration: none;
  border-bottom-color: #60a5fa;
  color: #93c5fd;
}

.content_placeholder strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- 7. SITEMAP SPECIFIC STYLES ---------------------------------------------- */
.sitemap-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.sitemap-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  transition: var(--transition-smooth);
}

.sitemap-group:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.sitemap-group h3 {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.sitemap-list li {
  margin-bottom: 0.8rem !important;
  padding-left: 0 !important;
}

.sitemap-list a {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: none !important;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sitemap-list a::before {
  content: '→';
  margin-right: 0.75rem;
  color: var(--accent-blue);
  opacity: 0.6;
  font-size: 0.9em;
  transition: var(--transition-smooth);
}

.sitemap-list a:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.sitemap-list a:hover::before {
  opacity: 1;
  color: var(--accent-red);
}

/* ---- 8. FOOTER ------------------------------------------------------------- */
#page_end {
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-copyright {
  flex: 1;
}

.footer-copyright p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-links .separator {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

/* ---- 8. RESPONSIVE DESIGN -------------------------------------------------- */
@media (max-width: 768px) {
  #page_body {
    padding: 3rem 2.5rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #page_body {
    padding: 2rem 1.5rem;
  }
}

/* ---- 9. ANIMATIONS --------------------------------------------------------- */
@keyframes fadeUpEnter {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes underlineReveal {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#cookie-consent-banner.visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}
.cookie-banner__text p { margin: 0; }
.cookie-banner__link {
  color: #60a5fa;
  text-decoration: underline;
  font-size: 0.78rem;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner__btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner__btn--accept {
  background: #3b82f6;
  color: #fff;
}
.cookie-banner__btn--reject {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; }
}

/* ── Skip-to-content (prístupnosť) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1.2rem;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ── Footer — Instagram ikona ── */
.footer-social { display: flex; justify-content: center; align-items: center; }
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.footer-social__link:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
}
