/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  color: #1f1f1f;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 1s ease-out;
  overflow-x: hidden;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding-left: 0;
}

.site-logo {
  height: 150px;
  width: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: white;
  border: 2px solid white;
}

.header-content {
  flex: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .header-flex {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .site-logo {
    height: 150px;
    width: 150px;
  }

  .header-content {
    text-align: center;
  }

  .tabs {
    justify-content: center;
  }
}

/* Container */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  } to {
    transform: rotate(360deg);
  }
}

.site-header h1 {
  position: relative;
  z-index: 2;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Glassmorphic Content */
.policy-content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 1s ease-out;
  transition: all 0.3s ease-in-out;
}

@keyframes slideUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.policy-content:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.policy-content h2,
.policy-content h3 {
  margin-top: 2rem;
  font-weight: 600;
  color: #333;
}

.policy-content p {
  margin-bottom: 1.2rem;
  color: #222;
}

.policy-content ul,
.policy-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #333;
}

.policy-content a {
  color: #3b82f6;
  text-decoration: none;
  position: relative;
}

.policy-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #3b82f6;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.policy-content a:hover::after {
  transform: scaleX(1);
}

.policy-content .error {
  color: #e11d48;
  font-weight: 500;
  background: rgba(255, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: auto;
}

.site-footer span {
  color: #fff;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header h1 {
    font-size: 2rem;
  }

  .policy-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 1rem;
  }

  .site-header h1 {
    font-size: 1.6rem;
  }

  .policy-content {
    padding: 1.2rem;
  }
}

/* Tabs Navigation */
.tabs {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
  background: white;
  color: #3b82f6;
  border-color: #3b82f6;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
  display: block;
}