/* =========================================================
   Shared base styles & typography
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Default body style for legal pages (terms/privacy).
   The main competition page overrides this further down. */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101010;
  color: #e7e7e7;
  line-height: 1.65;
}

/* Focus outlines for accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #7ac9ff;
  outline-offset: 2px;
}

/* =========================================================
   MAIN COMPETITION PAGE LAYOUT
   (index.html)
   ========================================================= */

/* Use this on the main page:
   <body class="page-main"> */
body.page-main {
  background: #000;
  height: 100svh;
  overflow: hidden;
}

/* Header / nav bar over Typeform */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.logo img {
  height: 15px;
  width: auto;
  flex-shrink: 0;
}

/* Main title in header */
.title-one-line {
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(16px, 3vw, 28px);
  letter-spacing: 1px;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  background: linear-gradient(180deg, #fff8d4 0%, #e2c27a 40%, #c19c52 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(255, 225, 150, 0.45);
}

.title-one-line .small {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 2px;
  margin-right: 2px;
  vertical-align: 2px;
}

/* Hamburger menu */
.menu-toggle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  position: relative;
  width: 16px;
  height: 2px;
  background: #fff;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.menu-toggle.open span {
  background: transparent;
}

.menu-toggle.open span::before {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle.open span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  top: 64px;
  right: 16px;
  background: rgba(0, 0, 0, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  z-index: 15;
  display: none;
}

.menu-panel.open {
  display: block;
}

.menu-panel a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  margin: 4px 0;
}

.menu-panel a:hover {
  text-decoration: underline;
}



/* Typeform wrapper under header */
.typeform-wrapper {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: calc(100svh - 64px);
  z-index: 1;
  overflow: hidden;
}

.typeform-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: none; /* shown after consent */
}

/* Consent overlay */
.consent-overlay {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 5;
}

.consent-box {
  max-width: 480px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 12px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.consent-box p {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.consent-button {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: #00b894; /* change this colour as needed */
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
}

.consent-box a {
  color: #fff;
  text-decoration: underline;
}

/* =========================================================
   LEGAL PAGES (TERMS & PRIVACY)
   terms.html / privacy.html
   ========================================================= */

/* Use this on legal pages:
   <body class="page-legal"> */
body.page-legal {
  background: #101010;
  color: #e7e7e7;
  line-height: 1.65;
}

/* Header for legal pages */
.page-legal header {
  padding: 32px 20px 10px;
  text-align: center;
}

.page-legal .title-main {
  font-weight: 700;
  letter-spacing: -0.2px;
  font-size: clamp(20px, 3vw, 32px);
  margin: 0;
  color: #ffffff;
}

.page-legal header p {
  margin: 6px 0 0;
  font-size: 14px;
  color: #b5b5b5;
}

/* Legal subpage title under header */
.legal-page-title {
  margin-top: 64px; /* pushes down below fixed header */
  padding: 20px 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  background: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content container */
.page-legal .container {
  max-width: 860px;
  width: 100%;
  padding: 32px 24px 48px;
  margin: 20px auto 32px;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Legal headings and text */
.page-legal h2 {
  font-weight: 600;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 6px;
  color: #ffffff;
}

.page-legal p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #e0e0e0;
}

.page-legal ul {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.page-legal li {
  margin-bottom: 6px;
  font-size: 15px;
  color: #dcdcdc;
}

.page-legal a {
  color: #7ac9ff;
  text-decoration: underline;
}

/* Footer for legal pages */
.page-legal footer {
  text-align: center;
  padding: 16px 20px 24px;
  font-size: 13px;
  color: #8a8a8a;
  margin-top: auto;
}