/* ============================================
   IPTV Nordic — legal-pages.css
   Shared styles for 4 legal/trust pages:
   /privatlivspolitik/, /vilkaar-og-betingelser/,
   /cookies/, /om-iptv-nordic/
   ============================================ */

/* ── Hero (lighter, more formal) ── */
.legal-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 60%, #f8fbff 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.legal-hero .container { max-width: 900px; }

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  text-align: center;
}

.legal-hero .legal-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  text-align: center;
  margin: 0 0 1.25rem;
}

.legal-update-date {
  display: inline-block;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  color: #78350f;
  font-weight: 600;
  margin: 0 auto;
}

.legal-update-date-wrap { text-align: center; margin-top: 0.5rem; }

/* ============================================================
   Table of contents
   ============================================================ */
.legal-toc {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 1.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.legal-toc h2 {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 2;
  column-gap: 2rem;
}

.legal-toc li {
  padding: 0.25rem 0;
  break-inside: avoid;
}

.legal-toc a {
  color: #1976d2;
  text-decoration: none;
  font-size: 0.92rem;
}

.legal-toc a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}

/* ============================================================
   Content layout
   ============================================================ */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.legal-section {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  scroll-margin-top: 80px;
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1976d2;
  margin: 1.5rem 0 0.6rem;
  letter-spacing: -0.01em;
}

.legal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-section p {
  color: #1f2937;
  line-height: 1.7;
  margin: 0 0 1rem;
  font-size: 0.96rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.legal-section li {
  color: #1f2937;
  line-height: 1.65;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.legal-section li strong { color: #111827; }

.legal-section a {
  color: #1976d2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.legal-section a:hover { border-bottom-color: #1976d2; }

/* ============================================================
   Legal table (compact, professional)
   ============================================================ */
.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.91rem;
  min-width: 480px;
}

.legal-table th {
  background: #f3f4f6;
  color: #111827;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #d1d5db;
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  vertical-align: top;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-table tbody tr:nth-child(even) td { background: #fafafa; }

.legal-table strong { color: #111827; }

/* ============================================================
   Callout boxes (info, warning, success)
   ============================================================ */
.legal-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.35rem;
  border-radius: 10px;
  border-left: 4px solid;
}

.legal-callout.info {
  background: #eff6ff;
  border-left-color: #1976d2;
  color: #1e3a8a;
}

.legal-callout.warning {
  background: #fffbeb;
  border-left-color: #f9a825;
  color: #78350f;
}

.legal-callout.success {
  background: #ecfdf5;
  border-left-color: #10b981;
  color: #065f46;
}

.legal-callout h3,
.legal-callout h4 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: inherit;
  font-size: 1rem;
}

.legal-callout p { margin: 0; color: inherit; }

/* ============================================================
   Cross-links to other legal pages
   ============================================================ */
.legal-cross-links {
  margin: 2.5rem auto 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
}

.legal-cross-links h3 {
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-cross-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-cross-links-list a {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
}

.legal-cross-links-list a:hover {
  background: #1976d2;
  color: #fff;
  border-color: #1976d2;
}

/* ============================================================
   About Us specific — Stats grid
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stats-grid.large {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: #93c5fd;
}

.stat-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #1976d2 0%, #00bcd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}

.stat-label {
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid.large { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .stats-grid { gap: 0.65rem; }
  .stat-card { padding: 1rem 0.6rem; }
}

/* ============================================================
   About Us — Timeline
   ============================================================ */
.about-timeline {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1976d2 0%, #00bcd4 100%);
  z-index: 0;
}

.about-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 0;
}

.about-timeline li:last-child { margin-bottom: 0; }

/* Marker is on the <li> ITSELF, not on the year text — prevents overlap */
.about-timeline li::before {
  content: '';
  position: absolute;
  left: 73px;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: #1976d2;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #1976d2;
  z-index: 2;
}

.about-timeline-year {
  position: relative;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1976d2;
  text-align: right;
  padding-right: 1.5rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}

/* No more ::after marker on year — fully removed */

.about-timeline-content {
  padding-left: 1.25rem;
}

.about-timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: #111827;
  padding-left: 0;
}

.about-timeline-content p {
  margin: 0;
  color: #4b5563;
  font-size: 0.93rem;
  line-height: 1.55;
  padding-left: 0;
}

@media (max-width: 600px) {
  .about-timeline::before { left: 60px; }
  .about-timeline li {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
  .about-timeline li::before {
    left: 53px;
    width: 14px;
    height: 14px;
    top: 0.4rem;
  }
  .about-timeline-year {
    font-size: 0.95rem;
    padding-right: 1rem;
    padding-top: 0.1rem;
  }
  .about-timeline-content { padding-left: 0.85rem; }
  .about-timeline-content h3 { font-size: 0.98rem; }
  .about-timeline-content p { font-size: 0.88rem; }
}

/* ============================================================
   About Us — Team cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.team-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.team-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.team-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: #111827;
}

.team-card p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   About Us — Trust badges
   ============================================================ */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

.trust-badges li {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: #14532d;
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   Print styles
   ============================================================ */
@media print {
  .home-hero, header, footer, .legal-cross-links { display: none; }
  body { color: #000; background: #fff; }
  .legal-section { padding: 1rem 0; border-bottom: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
}
