/* Compliance components: EU co-funding strip, legal pages, consent-gated embeds, printable forms. */

/* ---------- EU co-funding strip (ΠΘΑΥ 2021-2027 communication guide, section 3.2.1) ----------
   White background so the coloured EU emblem needs no white outline (guide, Annex A3).
   Logos share one height so no logo is larger than the EU emblem. */
.eu-strip {
  background: #fff;
  color: #111;
  border-bottom: 1px solid #e5e5e5;
}
.eu-strip_inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
/* Gaps keep the emblem's protection zone (guide, Annex A4) clear of the other logo and the text. */
.eu-strip_logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.eu-strip_logos img {
  height: 56px;
  width: auto;
  display: block;
}
.eu-strip_text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #333;
  max-width: 34rem;
}
.eu-strip_text a {
  color: #003399;
  font-weight: 700;
  text-decoration: underline;
}
@media screen and (max-width: 767px) {
  .eu-strip_inner {
    padding: 0.75rem 1rem;
    justify-content: center;
    text-align: center;
  }
  .eu-strip_logos {
    gap: 1.5rem;
  }
  .eu-strip_logos img {
    height: 44px;
  }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 4rem 0 2rem;
}
.legal-hero .heading-wp2024 {
  margin: 0;
}
.legal-hero_meta {
  margin-top: 1rem;
  color: var(--wp-2024--neutral, #ababab);
  font-size: 1rem;
}
.legal-body {
  max-width: 52rem;
  color: var(--wp-2024--neutral, #ababab);
  font-size: 1rem;
  line-height: 1.6;
}
.legal-body h2 {
  color: var(--wp-2024--neutral-light, #fdfdfd);
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}
.legal-body h3 {
  color: var(--wp-2024--neutral-light, #fdfdfd);
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}
.legal-body p,
.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
}
.legal-body ul,
.legal-body ol {
  padding-left: 1.25rem;
}
.legal-body li {
  margin-bottom: 0.35rem;
}
.legal-body strong {
  color: var(--wp-2024--neutral-light, #fdfdfd);
}
.legal-body a {
  color: #5c9dff;
  text-decoration: underline;
}
.legal-body .legal-note {
  border-left: 3px solid #146ef5;
  background: rgba(20, 110, 245, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--wp-2024--neutral-light, #fdfdfd);
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 36rem;
}
.legal-body th,
.legal-body td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #2c2c2c;
}
.legal-body th {
  color: var(--wp-2024--neutral-light, #fdfdfd);
  background: #1b1b1b;
  font-weight: 600;
}
.legal-button {
  display: inline-block;
  background: #146ef5;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- EU project page ---------- */
.eu-project_statement {
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
.eu-project_statement p {
  margin: 0;
}
.eu-project_statement p + p {
  margin-top: 0.75rem;
}

/* ---------- Footer additions ---------- */
.footer-wp2024_content {
  flex-wrap: wrap;
}
button.footer-wp2024_link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--wp-2024--neutral, #ababab);
}
.footer-legal a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Consent-gated embeds (filled in by cookie-consent.js) ---------- */
.consent-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 1.5rem;
  text-align: center;
  background: #1b1b1b;
  color: #fdfdfd;
  border: 1px dashed #444;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.consent-placeholder a {
  color: #5c9dff;
  text-decoration: underline;
}
.consent-placeholder button {
  background: #146ef5;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Printable parental consent form ---------- */
.consent-form {
  background: #fff;
  color: #111;
  border-radius: 8px;
  padding: 2rem;
  max-width: 52rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
}
/* The site styles headings and bold text light for its dark theme; the form card is white. */
.legal-body .consent-form h2,
.legal-body .consent-form h3,
.legal-body .consent-form strong,
.legal-body .eu-project_statement strong {
  color: #111;
}
.consent-form h2 {
  font-size: 1.375rem;
  margin: 0 0 0.25rem;
}
.consent-form h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.consent-form p,
.consent-form ul {
  margin: 0 0 0.75rem;
}
.consent-form ul {
  padding-left: 1.25rem;
}
.consent-form_logos {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.consent-form_logos img {
  height: 48px;
  width: auto;
}
.consent-form_field {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin: 0 0 0.9rem;
}
.consent-form_field span {
  white-space: nowrap;
}
.consent-form_field i {
  flex: 1;
  border-bottom: 1px solid #111;
  min-height: 1.4rem;
}
.consent-form_check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 0.6rem;
}
.consent-form_check b {
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid #111;
  margin-top: 0.15rem;
}
.consent-form_small {
  font-size: 0.8125rem;
  color: #444;
}
.consent-form_actions {
  margin: 0 0 1.5rem;
}

@media print {
  .navbar-wp2024_component,
  .eu-strip,
  .legal-hero,
  .section_orga-wp2024,
  .section_inscription-wp2024,
  .footer-wp2024_component,
  .consent-form_actions,
  .cookie-banner {
    display: none !important;
  }
  .main-wrapper.is-wp2024 {
    padding-top: 0 !important;
  }
  .page-wrapper.is-wp2024,
  body {
    background: #fff !important;
  }
  .padding-global,
  .padding-section-medium {
    padding: 0 !important;
  }
  .consent-form {
    padding: 0;
    max-width: none;
    border-radius: 0;
  }
}

/* ---------- Homepage partner logos (black section) ----------
   Order: EU, Republic of Cyprus, Cyprus Athletic Tourism, Pissouri Community Council.
   The EU emblem is the official dark-background version (white outline, guide Annex A3) and
   is never smaller than the largest other logo (guide, section 3.1.3). */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}
.partner-logos li {
  margin: 0;
}
.partner-logos img {
  display: block;
  width: auto;
  height: 120px;
}
.partner-logos img.is-wide {
  height: 60px;
}
@media screen and (max-width: 767px) {
  .partner-logos {
    gap: 2rem 2.5rem;
  }
  .partner-logos img {
    height: 88px;
  }
  .partner-logos img.is-wide {
    height: 44px;
  }
}

/* ---------- Note for parents inside the TicketingHub booking modal ---------- */
.booking-minors-note {
  margin: 0 2.5rem 1rem 0;
  padding: 0.75rem 1rem;
  background: #eef4ff;
  border-left: 3px solid #146ef5;
  color: #111;
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}
.booking-minors-note a {
  color: #0b4fc2;
  text-decoration: underline;
}

/* ---------- Fixed partner bar (homepage) ----------
   Slides in under the fixed navbar once the "Organised & supported by" logos scroll out of view.
   Same order and size rule as .partner-logos; horizontal dark-background EU emblem. */
.partner-bar {
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--wp-2024--neutral-dark, #111);
  border-bottom: 1px solid rgba(20, 110, 245, 0.6);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.partner-bar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.partner-bar_list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}
.partner-bar_list li {
  margin: 0;
}
.partner-bar_list img {
  display: block;
  width: auto;
  height: 48px;
}
.partner-bar_list img.is-wide {
  height: 30px;
}
@media screen and (max-width: 767px) {
  .partner-bar_list {
    gap: 0.875rem;
    padding: 0.4rem 0.75rem;
  }
  .partner-bar_list img {
    height: 30px;
  }
  .partner-bar_list img.is-wide {
    height: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .partner-bar,
  .partner-bar.is-visible {
    transition: none;
  }
}

/* Nav CTA buttons wrap to two lines on tablet/mobile and would cover the EU strip;
   the homepage already hides them at this width (its hero repeats the CTAs). */
@media screen and (max-width: 991px) {
  .page-wrapper:has(.eu-strip) .navbar-wp2024_buttons-wrapper,
  .page-wrapper:has(.legal-body) .navbar-wp2024_buttons-wrapper {
    display: none !important;
  }
}
