@font-face {
  font-family: 'Aldo the Apache';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/AldotheApache.woff') format('woff');
}

:root {
  --bg-deep: #0a0a0a;
  --bg-raised: #111111;
  --bg-elevated: #1a1a1a;
  --green-primary: #4ade80;
  --green-hover: #6ee7a0;
  --border: rgba(74, 222, 128, 0.12);
  --white: #e8e8e8;
  --white-muted: #a0a0a0;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.7;
}

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 40px;
  background: var(--bg-deep);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white-muted);
  text-decoration: none;
  font-family: 'Aldo the Apache', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--green-primary); }
.back-link:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 4px;
  border-radius: 4px;
}
.back-link svg { width: 16px; height: 16px; }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-content h1 {
  font-family: 'Aldo the Apache', sans-serif;
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.last-updated {
  font-size: 14px;
  color: var(--white-muted);
  margin-bottom: 40px;
}

.legal-content section {
  margin-bottom: 32px;
}

.legal-content h2 {
  font-family: 'Aldo the Apache', sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-primary);
  margin-bottom: 10px;
}

.legal-content h3 {
  font-family: 'Aldo the Apache', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 16px 0 8px;
}

.legal-content p {
  color: var(--white-muted);
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul, .legal-content ol {
  color: var(--white-muted);
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-content a:hover {
  color: var(--green-hover);
  text-decoration: underline;
}
.legal-content a:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.legal-content strong {
  color: var(--white);
  font-weight: 600;
}

.legal-content code {
  background: rgba(74, 222, 128, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--green-primary);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.06);
}

th {
  color: var(--white);
  font-weight: 600;
  background: rgba(74, 222, 128, 0.06);
}

td {
  color: var(--white-muted);
}

.copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(74, 222, 128, 0.06);
  font-size: 13px;
  color: var(--white-muted);
  opacity: 0.6;
}

/* ========== RESPONSIVE — TABLET ========== */
@media (max-width: 768px) {
  .legal-nav { padding: 14px 20px; }
  .back-link { font-size: 13px; }

  .legal-content { padding: 32px 20px 60px; }
  .legal-content h1 { font-size: 28px; margin-bottom: 2px; }
  .last-updated { font-size: 13px; margin-bottom: 32px; }

  .legal-content section { margin-bottom: 28px; }
  .legal-content h2 { font-size: 18px; margin-bottom: 8px; }
  .legal-content h3 { font-size: 15px; }
  .legal-content p { font-size: 14px; }
  .legal-content ul, .legal-content ol { font-size: 14px; padding-left: 20px; }

  table { font-size: 13px; }
  th, td { padding: 8px 10px; }

  .copyright { margin-top: 36px; padding-top: 20px; font-size: 12px; }
}

/* ========== RESPONSIVE — MOBILE ========== */
@media (max-width: 480px) {
  .legal-nav { padding: 12px 16px; }
  .back-link { font-size: 12px; gap: 4px; }
  .back-link svg { width: 14px; height: 14px; }

  .legal-content { padding: 24px 16px 48px; }
  .legal-content h1 { font-size: 24px; }
  .last-updated { font-size: 12px; margin-bottom: 24px; }

  .legal-content section { margin-bottom: 24px; }
  .legal-content h2 { font-size: 16px; }
  .legal-content h3 { font-size: 14px; }
  .legal-content p { font-size: 13px; line-height: 1.6; }
  .legal-content ul, .legal-content ol { font-size: 13px; padding-left: 18px; line-height: 1.6; }
  .legal-content li { margin-bottom: 4px; }

  .table-wrap { margin: 0 -16px 16px; padding: 0 16px; }
  table { font-size: 12px; min-width: 400px; }
  th, td { padding: 8px; white-space: nowrap; }

  .copyright { margin-top: 28px; padding-top: 16px; font-size: 11px; }
}
