/* ═══════════════════════════════════════════════════════════════
   privacy.css — Teh Tarik Digital · Privacy Policy
   Follows the TTD design system (jomwork reference)
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  --brand-blue:          #2979ff;
  --brand-blue-dim:      #1a4fcc;
  --brand-gold:          #c8922a;
  --brand-gold-dim:      rgba(200,146,42,0.15);
  --brand-gold-border:   rgba(200,146,42,0.35);

  --bg:                  #05080f;
  --card-bg:             rgba(4, 8, 20, 0.60);

  --border-subtle:       rgba(41, 121, 255, 0.10);
  --border-card:         rgba(41, 121, 255, 0.18);

  --grid-line:           rgba(41, 121, 255, 0.032);

  --text-primary:        #ffffff;
  --text-muted:          rgba(255, 255, 255, 0.55);
  --text-faint:          rgba(255, 255, 255, 0.25);
  --text-dim:            rgba(255, 255, 255, 0.32);
  --text-nav:            rgba(255, 255, 255, 0.45);
  --text-footer-link:    rgba(255, 255, 255, 0.35);
  --text-footer-active:  rgba(255, 255, 255, 0.75);

  --font-mono:           'Share Tech Mono', monospace;
  --font-display:        'Orbitron', monospace;

  --content-w:           860px;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font-mono);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav:not(.nav-lang):not(.footer-col) {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background-color: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  width: 150px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-nav);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.nav-alliance {
  color: var(--brand-gold);
  letter-spacing: 2px;
}
.nav-links a.nav-alliance:hover { color: #e8b040; }

.nav-sep {
  display: block;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Language switcher ── */
.nav-lang {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
  position: relative;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-btn.active {
  color: var(--brand-blue);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  font-weight: 600;
}

.lang-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background-color: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 6px #00d2ff;
}

.lang-divider {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
  margin: 0 2px;
}

/* ─────────────────────────────────────────
   PAGE WRAPPER
───────────────────────────────────────── */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* ─────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────── */
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-page-tag span { color: var(--brand-blue); }

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.15;
}

.legal-meta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ─────────────────────────────────────────
   COMPLIANCE BADGES
───────────────────────────────────────── */
.legal-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold-border);
  background: var(--brand-gold-dim);
}

.legal-badge i {
  font-size: 11px;
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   CONTENT
───────────────────────────────────────── */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brand-gold-border);
}

.legal-section-title::before {
  content: attr(data-num);
  font-family: var(--font-display);
  font-size: 9px;
  color: rgba(41, 121, 255, 0.40);
  letter-spacing: 1px;
}

.legal-section p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}

.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
}

.legal-section ul li {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  position: relative;
  padding-left: 16px;
}

.legal-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(41, 121, 255, 0.35);
  font-size: 11px;
}

.legal-section ul li strong {
  color: rgba(255,255,255,0.75);
}

.legal-section a {
  color: rgba(41, 121, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-section a:hover {
  color: var(--brand-blue);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0;
}

.legal-table th,
.legal-table td {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border-card);
  vertical-align: top;
}

.legal-table th {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: var(--card-bg);
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
  }
}

/* ── Compliance callout box ── */
.legal-callout {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-callout-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.legal-callout p {
  font-size: 12px;
  line-height: 1.85;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 10px 48px;
  display: grid;
  grid-template-columns: 1.9fr 1.1fr 1.1fr 0.85fr 1.35fr;
  gap: 40px clamp(20px, 2.5vw, 30px);
  align-items: start;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--brand-gold-border);
  opacity: 0.5;
}

.footer-col-label--gap { margin-top: 24px; }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-row .footer-logo {
  margin-bottom: 0;
  flex-shrink: 0;
}

.footer-reg-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
}

.footer-reg-block .footer-reg {
  margin-bottom: 0;
  line-height: 1.4;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-logo {
  display: block;
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-logo img {
  width: 150px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 360px;
}

.footer-badges {
  display: flex;
  gap: 17px;
  flex-wrap: nowrap;
  align-items: center;
}

.compliance-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.compliance-badge:hover { opacity: 1; }

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-list a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-footer-link);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-list a:hover { color: rgba(255,255,255,0.85); }

.ai-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold-border);
  background: var(--brand-gold-dim);
  line-height: 1;
}

.footer-reach {
  display: flex;
  flex-direction: column;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-icon {
  font-size: 13px;
  color: rgba(41, 121, 255, 0.55);
  margin-top: 1px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.contact-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.40);
  transition: color 0.2s;
}

.footer-contact-list li:hover .contact-text { color: rgba(255,255,255,0.7); }

.contact-text a {
  color: inherit;
  text-decoration: none;
}

/* ── Footer social icons ── */
.footer-social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.30);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}

.footer-social-icon:hover {
  color: rgba(255, 255, 255, 0.80);
}

.cb-badge {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1;
  user-select: none;
}

.footer-bottom {
  border-top: 1px solid rgba(41, 121, 255, 0.08);
  background: rgba(3, 5, 10, 0.55);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.footer-legal-links li { display: flex; align-items: center; }

.footer-legal-links a {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0 14px;
}

.footer-legal-links a:hover { color: var(--brand-blue); }

.footer-legal-links li + li::before {
  content: '·';
  color: rgba(255,255,255,0.10);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-main {
    padding: 48px 10px 40px;
    grid-template-columns: 1.8fr 1.05fr 1.05fr 1.05fr 1.0fr;
    gap: 36px clamp(16px, 2vw, 28px);
  }
}

@media (max-width: 960px) {
  nav:not(.nav-lang):not(.footer-col) { padding: 0 20px; height: 56px; }
  .nav-lang { display: none; }
  .legal-page { padding: 40px 20px 60px; }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px 32px;
    gap: 32px 24px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-reach { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .footer-main { grid-template-columns: 1fr; padding: 32px 16px 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-page { padding: 28px 16px 48px; }
}