/* ===========================
   Block Escape - LFBE.IO Clone
   =========================== */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #fff;
}

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

/* ===========================
   HEADER
   =========================== */

#header {
  background-color: #0e0d0d;
  padding: 2vw 4vw;
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-title-logo img {
  height: 50px;
  display: block;
  object-fit: contain;
}

.header-title-logo a {
  display: block;
}

.header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.burger-line {
  display: block;
  width: 22px;
  height: 1px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Close X animation */
.is-open .burger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.is-open .burger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ===========================
   MENU OVERLAY
   =========================== */

.header-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: #0e0d0d;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 2vw 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.header-menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.overlay-close-btn .burger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.overlay-close-btn .burger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ===========================
   MAIN CONTENT
   =========================== */

#page {
  background: #ffffff;
}

.page-section {
  padding: 60px 4vw;
}

.page-section.white-bg {
  background: #ffffff;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.content-block {
  max-width: 720px;
  margin: 0 auto;
}

/* ===========================
   TYPOGRAPHY - TOS / POLICY
   =========================== */

.sqs-html-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.sqs-html-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}

.sqs-html-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  line-height: 1.4;
}

.sqs-html-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.sqs-html-content p {
  margin: 0 0 1rem;
  line-height: 1.75;
  font-size: 0.95rem;
  color: #333;
}

.sqs-html-content ul, .sqs-html-content ol {
  margin: 0 0 1rem;
  padding-left: 1.75rem;
}

.sqs-html-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
  font-size: 0.95rem;
  color: #333;
}

.sqs-html-content strong {
  font-weight: 700;
  color: #1a1a1a;
}

.sqs-html-content .doc-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.sqs-html-content hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

/* app-ads.txt link */
.app-ads-link {
  margin-top: 2rem;
  padding-top: 0.5rem;
}

.app-ads-link a {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: underline;
}

.app-ads-link a:hover {
  color: #ffffff;
}

/* ===========================
   FOOTER
   =========================== */

#footer {
  background: #000000;
  color: #ffffff;
}

.footer-section {
  padding: 40px 4vw;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-text h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-text p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.footer-text strong {
  color: #ffffff;
}

.footer-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-btn {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.45rem 1rem;
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-btn:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 767px) {
  #header {
    padding: 6vw 6vw;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .header-title-logo img {
    height: 30px;
  }

  .header-actions {
    position: static;
    transform: none;
    margin-left: auto;
  }

  .page-section {
    padding: 40px 6vw;
  }

  .content-block {
    max-width: 100%;
  }

  .sqs-html-content h1 {
    font-size: 1.5rem;
  }

  .sqs-html-content h2 {
    font-size: 1.15rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-buttons {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .footer-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}
