:root {
  --lgpd-primary: #9fc143;
  --lgpd-primary-dark: #6b822b;
  --lgpd-ink: #15181c;
  --lgpd-muted: #5f6872;
  --lgpd-border: #d9dee3;
  --lgpd-surface: #ffffff;
  --lgpd-backdrop: rgba(10, 12, 14, 0.72);
  --lgpd-focus: #1b70c9;
}

.lgpd-banner,
.lgpd-modal,
.lgpd-preferences-trigger,
.lgpd-embed-placeholder {
  font-family: "Jost", Arial, sans-serif;
  box-sizing: border-box;
}

.lgpd-banner *,
.lgpd-modal *,
.lgpd-preferences-trigger *,
.lgpd-embed-placeholder * {
  box-sizing: border-box;
}

.lgpd-banner[hidden],
.lgpd-modal[hidden],
.lgpd-preferences-trigger[hidden] {
  display: none !important;
}

.lgpd-banner {
  position: fixed;
  z-index: 2147483645;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--lgpd-ink);
  background: var(--lgpd-surface);
  border: 1px solid var(--lgpd-border);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

.lgpd-banner__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.lgpd-banner h2,
.lgpd-modal h2 {
  margin: 0 0 8px;
  color: var(--lgpd-ink);
  font-size: 1.35rem;
  line-height: 1.25;
}

.lgpd-banner p,
.lgpd-modal p {
  margin: 0;
  color: var(--lgpd-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.lgpd-banner a,
.lgpd-modal a,
.legal-page a {
  color: #52700f;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lgpd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.lgpd-button {
  min-height: 44px;
  padding: 10px 18px;
  color: var(--lgpd-ink);
  background: #fff;
  border: 2px solid #69727c;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lgpd-button:hover {
  background: #f0f3f5;
  transform: translateY(-1px);
}

.lgpd-button--primary {
  color: #111;
  background: var(--lgpd-primary);
  border-color: var(--lgpd-primary-dark);
}

.lgpd-button--primary:hover {
  background: #afd74c;
}

.lgpd-button:focus-visible,
.lgpd-switch input:focus-visible + .lgpd-switch__track,
.lgpd-modal__close:focus-visible,
.lgpd-preferences-trigger:focus-visible,
.legal-back:focus-visible {
  outline: 3px solid var(--lgpd-focus);
  outline-offset: 3px;
}

.lgpd-modal {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--lgpd-backdrop);
}

.lgpd-modal__panel {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  color: var(--lgpd-ink);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lgpd-modal__header,
.lgpd-modal__body,
.lgpd-modal__footer {
  padding: 22px 24px;
}

.lgpd-modal__header {
  position: relative;
  padding-right: 68px;
  border-bottom: 1px solid var(--lgpd-border);
}

.lgpd-modal__footer {
  border-top: 1px solid var(--lgpd-border);
}

.lgpd-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  color: var(--lgpd-ink);
  background: #f2f4f5;
  border: 1px solid var(--lgpd-border);
  border-radius: 50%;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.lgpd-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lgpd-border);
}

.lgpd-category:last-child {
  border-bottom: 0;
}

.lgpd-category h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.lgpd-category p {
  font-size: 0.94rem;
}

.lgpd-always-on {
  align-self: center;
  color: #47640b;
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.lgpd-switch {
  position: relative;
  align-self: center;
  width: 52px;
  height: 30px;
}

.lgpd-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lgpd-switch__track {
  position: absolute;
  inset: 0;
  display: block;
  background: #737b83;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lgpd-switch__track::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.lgpd-switch input:checked + .lgpd-switch__track {
  background: var(--lgpd-primary-dark);
}

.lgpd-switch input:checked + .lgpd-switch__track::after {
  transform: translateX(22px);
}

.lgpd-preferences-trigger {
  position: fixed;
  z-index: 2147483644;
  bottom: 18px;
  left: 18px;
  min-height: 42px;
  padding: 9px 15px;
  color: #fff;
  background: #22272c;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lgpd-embed-placeholder {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  color: #fff;
  text-align: center;
  background: #1a1e22;
  border: 1px solid #49515a;
  border-radius: 12px;
}

.lgpd-embed-placeholder p {
  max-width: 520px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.lgpd-embed-placeholder .lgpd-button {
  color: #111;
  background: var(--lgpd-primary);
  border-color: var(--lgpd-primary-dark);
}

.lgpd-video-shell iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

body.lgpd-modal-open {
  overflow: hidden;
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  color: #20252a;
  background: #f3f5f2;
  font-family: "Jost", Arial, sans-serif;
}

.legal-header {
  color: #fff;
  background: #191b1f;
  border-bottom: 4px solid var(--lgpd-primary);
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-brand img {
  width: 58px;
  height: 48px;
  object-fit: contain;
}

.legal-back {
  min-height: 42px;
  padding: 9px 16px;
  color: #111;
  background: var(--lgpd-primary);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.legal-main {
  padding: 48px 0 72px;
}

.legal-main h1 {
  margin: 0 0 10px;
  color: #181c20;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 32px;
  color: #65707a;
}

.legal-card {
  padding: clamp(22px, 5vw, 48px);
  background: #fff;
  border: 1px solid #dfe3e0;
  border-radius: 20px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.08);
}

.legal-card h2 {
  margin: 34px 0 12px;
  color: #263008;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 24px 0 8px;
  font-size: 1.12rem;
}

.legal-card p,
.legal-card li {
  font-size: 1rem;
  line-height: 1.7;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-notice {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f3f8e8;
  border-left: 5px solid var(--lgpd-primary-dark);
  border-radius: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 13px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #d9dee0;
}

.legal-table th {
  color: #fff;
  background: #30363b;
}

.legal-footer {
  padding: 30px 0 92px;
  color: #d9dcdf;
  background: #191b1f;
}

.legal-footer p {
  margin: 6px 0;
}

.legal-footer a {
  color: #c8ea78;
}

@media (max-width: 840px) {
  .lgpd-banner__content {
    grid-template-columns: 1fr;
  }

  .lgpd-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .lgpd-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 18px;
    border-radius: 14px;
  }

  .lgpd-actions,
  .lgpd-button {
    width: 100%;
  }

  .lgpd-modal {
    padding: 10px;
  }

  .lgpd-modal__header,
  .lgpd-modal__body,
  .lgpd-modal__footer {
    padding: 18px;
  }

  .lgpd-modal__header {
    padding-right: 62px;
  }

  .lgpd-category {
    gap: 10px;
  }

  .lgpd-preferences-trigger {
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .legal-header__inner {
    min-height: 76px;
  }

  .legal-brand span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgpd-button,
  .lgpd-switch__track,
  .lgpd-switch__track::after {
    scroll-behavior: auto;
    transition: none;
  }
}
