/* Atualizações de mídia, planos, rodapé e privacidade. */

.student-video-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1.25rem;
  border: 1px solid rgba(151, 110, 70, .12);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 10% 10%, rgba(225, 176, 91, .16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(244, 237, 226, .72));
  box-shadow: 0 20px 55px -38px rgba(81, 57, 39, .5);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}

.student-video {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .94);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 14px 30px rgba(81, 57, 39, .14);
  scroll-snap-align: start;
}

.student-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: #20150f;
  object-fit: contain;
}

.student-video figcaption {
  display: grid;
  gap: .2rem;
  padding: .9rem 1rem 1rem;
  color: var(--brand-brown);
}

.student-video figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.student-video figcaption span {
  color: var(--brand-brown-mid);
  font-size: .875rem;
  line-height: 1.5;
}

.daily-video {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.daily-section-layout {
  display: grid;
  gap: 2rem;
}

.daily-video-frame {
  width: min(100%, 25rem);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, .94);
  border-radius: 2rem;
  background: #20150f;
  box-shadow: 0 24px 55px -28px rgba(81, 57, 39, .5);
}

.daily-video video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.daily-video > p {
  max-width: 34rem;
  color: var(--brand-brown-mid);
  font-size: .9375rem;
  text-align: center;
}

@media (min-width: 900px) {
  .daily-section-layout {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
  }
  .daily-section-layout .daily-video {
    justify-items: end;
    margin-top: 0;
  }
}

.plans-note { max-width: 44rem; margin-inline: auto; }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--brand-brown-mid);
  font-size: .8125rem;
  line-height: 1.55;
}

.privacy-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .15rem;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.privacy-check a {
  color: var(--brand-brown);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.footer-credits { display: grid; gap: .2rem; }
.footer-builder { color: rgba(255, 250, 242, .48); font-size: .72rem; }
.footer-builder a { color: rgba(255, 250, 242, .66); font-weight: 700; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.footer-legal button { cursor: pointer; transition: color .2s ease, opacity .2s ease; }
.footer-legal button:hover { color: var(--primary); opacity: .9; }

.cookie-bar {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  width: min(calc(100% - 2rem), 68rem);
  margin-inline: auto;
  padding: 1.15rem;
  border: 1px solid rgba(225, 176, 91, .32);
  border-radius: 1.35rem;
  background: rgba(60, 41, 29, .98);
  color: #fffaf2;
  box-shadow: 0 26px 65px -24px rgba(32, 21, 15, .72);
}

.cookie-bar[hidden], .cookie-modal[hidden] { display: none !important; }
.cookie-bar h2 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.cookie-bar p { margin-top: .25rem; color: rgba(255, 250, 242, .78); font-size: .84rem; line-height: 1.55; }
.cookie-bar a { color: #f5cd7b; font-weight: 700; text-decoration: underline; text-underline-offset: .18rem; }
.cookie-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; }
.cookie-button {
  min-height: 2.65rem;
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 250, 242, .28);
  border-radius: 999px;
  color: #fffaf2;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.cookie-button:hover { border-color: #f5cd7b; }
.cookie-button-primary { border-color: transparent; background: linear-gradient(120deg, #f1c56e, #d99a4b); color: #3c291d; }

.cookie-modal {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(32, 21, 15, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cookie-panel {
  width: min(100%, 35rem);
  max-height: min(88vh, 44rem);
  overflow-y: auto;
  padding: 1.4rem;
  border: 1px solid #eadfce;
  border-radius: 1.5rem;
  background-color: #fffdf9;
  color: #513927;
  box-shadow: 0 30px 75px -24px rgba(32, 21, 15, .68);
  isolation: isolate;
  opacity: 1;
}

.cookie-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cookie-panel h2 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.cookie-panel-intro { margin-top: .55rem; color: #6f523a; font-size: .88rem; line-height: 1.6; }
.cookie-close { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 1px solid #ded0bc; border-radius: 999px; background: #fff; color: #513927; cursor: pointer; font-size: 1.2rem; }
.cookie-options { display: grid; gap: .8rem; margin-top: 1.25rem; }
.cookie-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: 1rem; border: 1px solid #eadfce; border-radius: 1rem; background: #f8f1e7; }
.cookie-option strong { display: block; font-size: .95rem; }
.cookie-option p { margin-top: .2rem; color: #6f523a; font-size: .8rem; line-height: 1.5; }
.cookie-option input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: #d99a4b; }
.cookie-panel-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.cookie-panel-footer .cookie-button { border-color: #ded0bc; background: #fff; color: #513927; }
.cookie-panel-footer .cookie-button-primary { border-color: transparent; color: #3c291d; }

.privacy-page { min-height: 100vh; background: var(--background); color: var(--foreground); }
.privacy-header { border-bottom: 1px solid var(--border); background: rgba(255, 253, 249, .92); }
.privacy-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 2.5rem, 72rem); margin-inline: auto; padding-block: 1rem; }
.privacy-brand { font-family: var(--font-display); color: var(--brand-brown); font-size: 1.15rem; font-weight: 600; }
.privacy-back { padding: .65rem 1rem; border: 1px solid var(--border); border-radius: 999px; color: var(--brand-brown); font-size: .85rem; font-weight: 700; }
.privacy-content { width: min(100% - 2.5rem, 48rem); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5.5rem); }
.privacy-content h1 { color: var(--brand-brown); font-size: clamp(2.15rem, 6vw, 3.25rem); line-height: 1.08; }
.privacy-updated { margin-top: .8rem; color: var(--brand-brown-mid); font-size: .85rem; }
.privacy-summary { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--border); border-radius: 1rem; background: rgba(244, 237, 226, .65); color: var(--brand-brown-mid); line-height: 1.7; }
.privacy-section { margin-top: 2.25rem; }
.privacy-section h2 { color: var(--brand-brown); font-size: 1.5rem; }
.privacy-section h2::after { display: none; }
.privacy-section p, .privacy-section li { color: var(--brand-brown-mid); line-height: 1.75; }
.privacy-section p { margin-top: .75rem; }
.privacy-section ul { display: grid; gap: .55rem; margin-top: .85rem; padding-left: 1.2rem; list-style: disc; }
.privacy-section a { color: var(--brand-brown); font-weight: 700; text-decoration: underline; text-underline-offset: .18rem; }
.privacy-footer { padding: 1.25rem; background: var(--brand-brown); color: rgba(255, 250, 242, .7); font-size: .78rem; text-align: center; }

@media (max-width: 767px) {
  .student-video-gallery {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72vw, 17rem);
    gap: 1rem;
    margin-inline: -1.25rem;
    padding: 1rem 1.25rem 1.25rem;
    border-inline: 0;
    border-radius: 0;
    scrollbar-width: none;
  }
  .student-video-gallery::-webkit-scrollbar { display: none; }
  .cookie-bar { grid-template-columns: 1fr; max-height: calc(100vh - 2rem); overflow-y: auto; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-actions [data-cookie-manage] { grid-column: 1 / -1; }
  .cookie-button { white-space: normal; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .student-video, .cookie-button { transition: none; }
}
