/* ==========================================================================
   HIGHBRIDGE LABS — LEGAL DOCUMENT TEMPLATE
   "Austeridad Técnica" — Immersive B2B Reading Experience
   ========================================================================== */

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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Nunito:wght@300;400;600&family=Fira+Code:wght@400&display=swap');

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --cyan-electric: #00FFFF;
  --bg-absolute: #030304;
  --text-heading: #FFFFFF;
  --text-body: #A0A0A5;
  --text-accent: #00FFFF;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-absolute);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-absolute); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.35);
}

/* ==========================================================================
   1. TERMINAL BREADCRUMB (Navigation)
   ========================================================================== */
.legal-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(3, 3, 4, 0.95) 0%, rgba(3, 3, 4, 0) 100%);
  backdrop-filter: blur(8px);
}

.back-to-mainframe {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-electric);
  text-decoration: none;
  letter-spacing: 1.5px;
  transition: text-shadow 300ms ease, opacity 300ms ease;
  opacity: 0.8;
}

.back-to-mainframe:hover {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  opacity: 1;
}

/* ==========================================================================
   2. DOCUMENT WRAPPER (Reading Container)
   ========================================================================== */
.legal-document-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 20px 80px;
  /* Fade-up entrance */
  opacity: 0;
  transform: translateY(20px);
  animation: legalFadeIn 800ms ease-out forwards;
  animation-delay: 200ms;
}

@keyframes legalFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   3. TYPOGRAPHIC HIERARCHY
   ========================================================================== */

/* H1 — Document Title */
.legal-document-wrapper h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

/* Last Updated Date */
.last-updated {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-electric);
  letter-spacing: 1.5px;
  margin-bottom: 60px;
  text-transform: uppercase;
}

/* H2 — Section / Article Headings */
.legal-document-wrapper h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Body Text */
.legal-document-wrapper p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 24px;
}

/* Lists */
.legal-document-wrapper ul {
  padding-left: 20px;
  list-style-type: square;
  margin-bottom: 24px;
}

.legal-document-wrapper li {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 8px;
}

.legal-document-wrapper li::marker {
  color: var(--cyan-electric);
}

/* Strong / emphasis */
.legal-document-wrapper strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Inline email / links */
.legal-document-wrapper a {
  color: var(--cyan-electric);
  text-decoration: none;
  transition: text-shadow 300ms ease;
}

.legal-document-wrapper a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* ==========================================================================
   4. FOOTER SEPARATOR
   ========================================================================== */
.legal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.legal-footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #555555;
  letter-spacing: 1px;
}

.legal-footer a {
  color: #777777;
  text-decoration: none;
  transition: color 200ms ease;
}

.legal-footer a:hover {
  color: var(--cyan-electric);
}

/* ==========================================================================
   5. RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
  .legal-document-wrapper {
    padding: 100px 16px 60px;
  }

  .legal-document-wrapper h1 {
    font-size: 24px;
  }

  .legal-document-wrapper h2 {
    font-size: 18px;
    margin-top: 36px;
  }
}
