/* -------------------------------------------------------------
 * P4kong Bot - Legal Pages Stylesheet (TOS & Privacy Policy)
 * Theme: Premium Black Gold Edition (Obsidian & Metallic Gold)
 * ------------------------------------------------------------- */

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --color-bg: #030303;
  --color-bg-card: rgba(14, 13, 10, 0.75);
  --color-border-card: rgba(212, 175, 55, 0.15);
  --color-border-hover: rgba(212, 175, 55, 0.55);
  
  --color-primary: #d4af37; /* Metallic Gold */
  --color-primary-glow: rgba(212, 175, 55, 0.25);
  --color-secondary: #f59e0b; /* Amber Gold */
  --color-accent: #eab308; /* Bright Gold */
  --color-badge-bg: rgba(212, 175, 55, 0.12);
  --color-badge-border: rgba(212, 175, 55, 0.38);
  
  --color-text-title: #ffffff;
  --color-text-subtitle: #cbd5e1;
  --color-text-body: #94a3b8;
  --color-text-muted: #64748b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Radial Glow */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(245, 158, 11, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(212, 175, 55, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 175, 55, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Navbar / Top Bar */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-tab {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  color: #94a3b8;
  transition: all 0.2s;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.08);
}

.nav-tab.active {
  color: #fff;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: #d4af37;
}

/* Main Container */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 20px 80px 20px;
}

/* Hero Section */
.hero-header {
  text-align: center;
  margin-bottom: 36px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--color-badge-bg);
  border: 1px solid var(--color-badge-border);
  color: #d4af37;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 8px #d4af37;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 18px;
}

.legal-title .title-top {
  display: block;
  font-size: 0.9em;
  color: #ffffff;
}

.legal-title .title-accent {
  display: block;
  background: linear-gradient(180deg, #ffffff 30%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-subtitle {
  color: var(--color-text-subtitle);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 28px auto;
}

.legal-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.legal-date::before,
.legal-date::after {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
}

/* Cards Stack */
.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 160px;
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: 16px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.legal-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 175, 55, 0.08);
}

/* Watermark number in background */
.card-watermark {
  position: absolute;
  left: 20px;
  top: 8px;
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
}

.card-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.card-body {
  color: var(--color-text-body);
  font-size: 0.94rem;
  line-height: 1.7;
  padding-left: 60px;
  position: relative;
  z-index: 2;
}

.card-body p + p {
  margin-top: 10px;
}

.card-body ul {
  margin: 10px 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-body li {
  color: #cbd5e1;
}

.card-body strong {
  color: #f1f5f9;
  font-weight: 600;
}

.card-body a {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.card-body a:hover {
  color: #f59e0b;
}

/* Callout Box within card */
.legal-callout {
  margin-top: 12px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Footer */
.legal-footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.86rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #d4af37;
}

.footer-copy {
  color: #64748b;
  font-size: 0.82rem;
}

/* Language switching helper */
.lang-content-en {
  display: none;
}

body.lang-en .lang-content-id {
  display: none;
}

body.lang-en .lang-content-en {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .nav-container {
    padding: 12px 16px;
  }
  .nav-links {
    display: none;
  }
  .page-wrap {
    padding: 40px 16px 60px 16px;
  }
  .card-body {
    padding-left: 0;
  }
  .card-watermark {
    font-size: 2.8rem;
    left: 12px;
  }
  .legal-title {
    font-size: 2.4rem;
  }
}
