@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --bg-main: #050505;
  --bg-glass: rgba(15, 15, 15, 0.7);
  --bg-card: rgba(20, 20, 25, 0.6);
  --c-primary: #ffa500;
  --c-primary-glow: rgba(255, 165, 0, 0.5);
  --c-secondary: #ff4500;
  --t-white: #ffffff;
  --t-muted: #a0a0a0;
  --border-glass: rgba(255, 165, 0, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --font-main: "Inter", sans-serif;
  --trans-fast: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--t-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border-radius: 10px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.Logo img {
  max-width: 70px;
  transition: var(--trans-fast);
}
.Logo:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px var(--c-primary-glow));
}

.secure-badge {
  background: rgba(0, 255, 100, 0.1);
  border: 1px solid rgba(0, 255, 100, 0.3);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #00ff64;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn {
  color: var(--t-white);
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--trans-fast);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
}
.back-btn:hover {
  background: var(--c-primary);
  color: var(--bg-main);
  box-shadow: 0 0 20px var(--c-primary-glow);
  border-color: var(--c-primary);
}

.legal-main {
  flex: 1;
  padding: 150px 5% 100px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glow-orb {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    var(--c-primary-glow) 0%,
    transparent 60%
  );
  filter: blur(80px);
  z-index: -1;
  opacity: 0.3;
  animation: pulse 6s infinite alternate;
}

.legal-header {
  text-align: center;
  margin-bottom: 60px;
}
.mega-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}
.mega-title span {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  font-size: 1.2rem;
  color: var(--t-muted);
}

.legal-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--t-muted);
  padding: 20px;
  border-radius: 15px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(10px);
}
.tab-btn i {
  font-size: 1.3rem;
  transition: var(--trans-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--t-white);
}
.tab-btn.active {
  background: rgba(255, 165, 0, 0.1);
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: inset 0 0 20px rgba(255, 165, 0, 0.1);
}
.tab-btn.active i {
  color: var(--c-primary);
  filter: drop-shadow(0 0 10px var(--c-primary-glow));
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 25px;
  padding: 50px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  min-height: 600px;
}

.legal-section {
  display: none;
  opacity: 0;
  animation: fadeUp 0.5s forwards;
}
.legal-section.active {
  display: block;
}

.legal-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--t-white);
  margin-bottom: 5px;
}
.last-updated {
  color: var(--c-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-section h3 {
  font-size: 1.4rem;
  color: var(--t-white);
  margin: 35px 0 15px;
  font-weight: 700;
}
.legal-section p {
  font-size: 1.1rem;
  color: var(--t-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}
.legal-section ul {
  margin-left: 20px;
  color: var(--t-muted);
  margin-bottom: 20px;
}
.legal-section li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.legal-section strong {
  color: var(--t-white);
}

.footer {
  background: linear-gradient(180deg, var(--bg-main) 0%, #000 100%);
  border-top: 1px solid var(--border-light);
  padding: 40px 5% 20px;
  text-align: center;
}
.footer-logo {
  max-width: 80px;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  margin-top: 20px;
  color: var(--t-muted);
  font-size: 0.9rem;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@media (max-width: 1024px) {
  .legal-container {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .tab-btn {
    white-space: nowrap;
    flex: 1;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .mega-title {
    font-size: 2.5rem;
  }
  .legal-content {
    padding: 30px;
  }
}
