@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, rgba(5, 5, 15, 0.85) 0%, rgba(15, 15, 35, 0.85) 100%), 
              url('../img/stadium.png') center/cover fixed;
  background-attachment: fixed;
  color: #f0f0f0;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== HEADER ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span {
  background: linear-gradient(90deg, #9d7dff, #5f3cff);
  -webkit-background-clip: text;
  color: transparent;
}
nav a {
  margin: 0 20px;
  color: #bbb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}
nav a:hover {
  color: #fff;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #9d7dff;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}
.lang {
  color: #aaa;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #9d7dff 0%, #5f3cff 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(157, 125, 255, 0.3);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  transition: left 0.8s ease;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(157, 125, 255, 0.5);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: rgba(157, 125, 255, 0.2);
  border: 1px solid rgba(157, 125, 255, 0.4);
  color: #9d7dff;
}

.btn-secondary:hover {
  background: rgba(157, 125, 255, 0.3);
  border-color: rgba(157, 125, 255, 0.6);
  box-shadow: 0 8px 20px rgba(157, 125, 255, 0.25);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.privacy-hero {
  display: flex;
  justify-content: center;
  padding: 60px 60px;
  background: linear-gradient(135deg, rgba(5, 5, 15, 0.6) 0%, rgba(15, 15, 35, 0.6) 100%);
  border-radius: 24px;
  margin: 20px 40px 0px 40px;
  min-height: auto;
  border: 1px solid rgba(157, 125, 255, 0.15);
  box-shadow: 0 20px 60px rgba(157, 125, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.privacy-intro {
  text-align: center;
  animation: slideInDown 0.7s ease;
}
.privacy-intro h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 30px rgba(157, 125, 255, 0.4);
}
.privacy-intro span {
  background: linear-gradient(120deg, #9d7dff, #5f3cff, #00c06d);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}
.privacy-intro p {
  color: #aaa;
  font-size: 1.1rem;
  margin: 15px 0 0;
}

/* ===== TABLE OF CONTENTS ===== */
.privacy-toc {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
.toc-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  background: rgba(25, 25, 35, 0.9);
  border: 1px solid rgba(157, 125, 255, 0.25);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.toc-left h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
}
.toc-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.toc-left li a {
  color: #9d7dff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}
.toc-left li a:hover {
  color: #b9a3ff;
  text-decoration: underline;
}
.toc-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.toc-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toc-controls button {
  padding: 12px 20px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .toc-inner {
    grid-template-columns: 1fr;
  }
  .toc-left ul {
    grid-template-columns: 1fr;
  }
  .toc-controls {
    flex-direction: row;
    gap: 8px;
  }
  .toc-controls button {
    flex: 1;
  }
}
  max-width: 1100px;
  margin: 40px auto 30px;
  padding: 0 20px;
}
.summary-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(25, 25, 35, 0.95) 0%, rgba(30, 25, 45, 0.9) 100%);
  border: 1px solid rgba(157, 125, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px rgba(157, 125, 255, 0.15);
  backdrop-filter: blur(10px);
  position: relative;
}
.summary-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(157, 125, 255, 0.05) 0%, transparent 50%);
  border-radius: 20px;
  pointer-events: none;
}
.summary-text {
  position: relative;
  z-index: 1;
}
.summary-text h2 {
  color: #fff;
  margin: 0 0 15px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #fff, #b9a3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.summary-text p {
  color: #d6d6d6;
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.summary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.summary-list {
  position: relative;
  z-index: 1;
}
.summary-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-list li {
  color: #cfcfe6;
  padding: 12px;
  background: rgba(35, 35, 45, 0.6);
  border-left: 3px solid #9d7dff;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.summary-list li:hover {
  background: rgba(45, 40, 65, 0.8);
  border-left-color: #00c06d;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(157, 125, 255, 0.2);
}
.summary-list li strong {
  color: #9d7dff;
  font-weight: 700;
  margin-right: 8px;
}
.summary-list li span {
  color: #e6e6e6;
}

/* Cookie banner styles */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 380px;
  background: rgba(25, 25, 35, 0.95);
  border: 1px solid rgba(157, 125, 255, 0.3);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(157, 125, 255, 0.2);
  backdrop-filter: blur(10px);
}
.cookie-inner { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.cookie-inner p { margin:0; color:#ddd; flex:1; font-size:0.95rem; }
.cookie-actions { display:flex; gap:8px; align-items:center; }

@media (max-width: 900px) {
  .summary-inner { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items:stretch; gap:10px; }
}

/* Details / accordion styling */
details.privacy-card {
  background: rgba(25, 25, 35, 0.85);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(157, 125, 255, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
details.privacy-card:hover {
  border-color: rgba(157, 125, 255, 0.35);
  box-shadow: 0 12px 35px rgba(157, 125, 255, 0.15);
}
details.privacy-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(22, 22, 28, 0.6) 0%, rgba(30, 25, 45, 0.6) 100%);
  border-bottom: 1px solid rgba(157, 125, 255, 0.1);
  transition: all 0.3s ease;
}
details.privacy-card summary:hover {
  background: linear-gradient(135deg, rgba(30, 25, 45, 0.8) 0%, rgba(40, 30, 60, 0.8) 100%);
  border-bottom-color: rgba(157, 125, 255, 0.2);
}
details.privacy-card summary h2 { margin: 0; color: #9d7dff; font-size: 1.1rem; }
details.privacy-card[open] summary { box-shadow: inset 0 -1px 0 rgba(157,125,255,0.08); }
details.privacy-card > *:not(summary) { padding: 20px 22px; color: #d6d6d6; background: rgba(18,18,20,0.3); }

/* chevron indicator */
details.privacy-card summary::after {
  content: "▾";
  display: inline-block;
  transition: transform 0.22s ease;
  color: #cfcfe6;
  font-weight: 700;
}
details.privacy-card[open] summary::after { transform: rotate(180deg); }

/* Make printable: ensure all details open and remove fixed UI */
@media print {
  header, footer, .cookie-banner, .toc-controls { display: none !important; }
  details.privacy-card { page-break-inside: avoid; }
  details.privacy-card summary { background: transparent; box-shadow: none; }
  details.privacy-card { border: none; background: transparent; }
  body { background: #fff; color: #000; }
}

/* ===== PRIVACY CONTENT ===== */
.privacy-content {
  display: flex;
  justify-content: center;
  padding: 60px 20px 100px;
}
.privacy-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.privacy-card { display: block; }
.privacy-card h2 { color: #9d7dff; margin-bottom: 10px; font-size: 1.15rem; }
.privacy-card p, .privacy-card li { color: #d6d6d6; font-size: 0.98rem; }
.privacy-card ul { padding-left: 20px; list-style: disc; color: #ccc; }

.data-types,
.cookie-types,
.rights-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.data-item,
.cookie-item,
.right-item {
  background: linear-gradient(135deg, rgba(35, 35, 45, 0.8) 0%, rgba(30, 30, 40, 0.8) 100%);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(157, 125, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}
.data-item:hover,
.cookie-item:hover,
.right-item:hover {
  background: linear-gradient(135deg, rgba(45, 40, 65, 0.95) 0%, rgba(40, 35, 55, 0.95) 100%);
  border-color: rgba(157, 125, 255, 0.35);
  box-shadow: 0 15px 40px rgba(157, 125, 255, 0.25);
  transform: translateY(-6px);
}
.data-item h4,
.cookie-item h4,
.right-item h4 {
  color: #9d7dff;
  margin-bottom: 8px;
}

.contact-card {
  background: linear-gradient(180deg, rgba(25,25,25,0.9), rgba(20,20,20,0.95));
  border: 1px solid rgba(157, 125, 255, 0.15);
  box-shadow: 0 0 20px rgba(157, 125, 255, 0.25);
}
.contact-info p {
  margin: 5px 0;
  color: #ccc;
}
.last-updated {
  font-style: italic;
  color: #aaa;
  margin-top: 15px;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 50px 40px;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  color: #aaa;
  border-top: 1px solid rgba(157, 125, 255, 0.15);
  backdrop-filter: blur(10px);
}
footer a {
  color: #9d7dff;
  text-decoration: none;
  transition: 0.3s;
}
footer a:hover {
  color: #b9a3ff;
  text-decoration: underline;
  text-shadow: 0 0 15px rgba(157, 125, 255, 0.5);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .privacy-intro h1 {
    font-size: 2.3rem;
  }
  .privacy-card {
    padding: 30px 25px;
  }
  .data-types,
  .cookie-types,
  .rights-grid {
    grid-template-columns: 1fr;
  }
}
