/* Regulamento — Desafio Loop Mídia Copa 2026 */

:root {
  --reg-max-read: 720px;
  --reg-header-h: 72px;
}

body.regulamento-page {
  padding-top: var(--reg-header-h);
}

/* Header compacto */
.reg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--reg-header-h);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.reg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.reg-header__logo img {
  width: min(140px, 36vw);
  height: auto;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.25rem 0 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "/";
  color: var(--gray-600);
  pointer-events: none;
}

.breadcrumbs__list a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.breadcrumbs__list a:hover {
  color: var(--green);
}

.breadcrumbs__list [aria-current="page"] {
  color: var(--white);
  font-weight: 500;
}

/* Hero */
.reg-hero {
  position: relative;
  padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3rem);
  overflow: hidden;
}

.reg-hero__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 120vw);
  height: 320px;
  background: radial-gradient(ellipse, rgba(39, 224, 90, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.reg-hero__inner {
  position: relative;
  max-width: var(--reg-max-read);
  margin-inline: auto;
}

.reg-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.reg-hero__title {
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.reg-hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--gray-400);
  line-height: 1.65;
  max-width: 52ch;
  margin-bottom: 1.25rem;
}

.reg-hero__meta {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 1.75rem;
}

.reg-hero__meta time {
  color: var(--gray-400);
  font-weight: 500;
}

.reg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn--google {
  background: linear-gradient(135deg, #fbbc04 0%, #f9a825 100%);
  color: var(--black);
  box-shadow: 0 4px 24px rgba(251, 188, 4, 0.25);
}

.btn--google:hover {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  box-shadow: 0 6px 28px rgba(251, 188, 4, 0.35);
}

/* Conteúdo do regulamento */
.reg-content {
  max-width: var(--reg-max-read);
  margin-inline: auto;
  padding: 0 0 clamp(3rem, 8vw, 5rem);
}

.reg-content__heading {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.reg-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.reg-prose > * + * {
  margin-top: 1rem;
}

.reg-prose h2,
.reg-prose h3,
.reg-prose h4 {
  scroll-margin-top: calc(var(--reg-header-h) + 1.5rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.reg-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.reg-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.reg-prose h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
}

.reg-prose p {
  margin: 0;
}

.reg-prose ul,
.reg-prose ol {
  padding-left: 1.35rem;
  margin: 0.75rem 0 0;
}

.reg-prose li + li {
  margin-top: 0.4rem;
}

.reg-prose ul {
  list-style: disc;
}

.reg-prose ol {
  list-style: decimal;
}

.reg-prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reg-prose a:hover {
  color: #32f065;
}

.reg-prose strong {
  font-weight: 600;
  color: var(--white);
}

.reg-prose hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

.reg-prose__doc-title {
  font-size: 1.0625rem;
  margin-bottom: 2rem !important;
}

.reg-prose__signoff {
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--gray-400);
}

.reg-prose__signoff p {
  margin: 0 0 0.75rem;
}

.reg-prose__signoff em {
  font-style: italic;
  color: var(--gray-400);
}

/* Âncoras automáticas nos títulos */
.reg-prose .heading-anchor {
  position: relative;
  display: inline;
}

.reg-prose .heading-anchor__link {
  position: absolute;
  left: -1.35rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--green);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.875rem;
  transition: opacity var(--transition);
}

.reg-prose h2:hover .heading-anchor__link,
.reg-prose h3:hover .heading-anchor__link,
.reg-prose h4:hover .heading-anchor__link,
.reg-prose .heading-anchor__link:focus-visible {
  opacity: 1;
}

.reg-prose__placeholder {
  padding: 2rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass);
  color: var(--gray-400);
  text-align: center;
  font-size: 0.9375rem;
}

/* Card de contato */
.reg-contact {
  max-width: var(--reg-max-read);
  margin: 0 auto clamp(3rem, 8vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.reg-contact__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
}

/* Footer simples */
.reg-footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0 5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-600);
}

.reg-footer p {
  margin: 0 0 0.35rem;
}

.reg-footer a {
  color: var(--green);
}

/* WhatsApp flutuante — ajuste para não conflitar com barra mobile */
.regulamento-page .whatsapp-float {
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  .reg-hero__actions {
    flex-direction: column;
  }

  .reg-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .reg-prose .heading-anchor__link {
    display: none;
  }

  .regulamento-page .whatsapp-float {
    display: flex;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: 1rem;
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 768px) {
  .reg-prose h2,
  .reg-prose h3,
  .reg-prose h4 {
    padding-left: 0.25rem;
  }
}
