/* ═══════════════════════════════════════════════════
   EMILIO — LEGAL PAGES (Privacy / Cookies)
   ═══════════════════════════════════════════════════ */

.legal {
  padding: 110px 0 60px;
  background: var(--black);
  min-height: 70vh
}

.legal__wrap {
  max-width: 880px
}

.legal__head {
  text-align: center;
  padding: 24px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 48px
}

.legal__kicker {
  font-family: var(--ff-display);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(212, 165, 116, .8);
  margin-bottom: 16px
}

.legal__title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 14px
}

.legal__sub {
  font-family: var(--ff-display);
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 6px
}

.legal__date {
  font-family: var(--ff-body);
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .04em
}

.legal__section {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.75
}

.legal__section h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: -.005em
}

.legal__section h3 {
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 400;
  color: rgba(255, 255, 255, .92);
  margin: 24px 0 10px
}

.legal__section p {
  margin: 0 0 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, .72)
}

.legal__section a {
  color: #d4a574;
  text-decoration: underline;
  text-decoration-color: rgba(212, 165, 116, .35);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s
}

.legal__section a:hover {
  text-decoration-color: #d4a574
}

.legal__section strong {
  color: rgba(255, 255, 255, .92);
  font-weight: 600
}

.legal__list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px
}

.legal__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: rgba(255, 255, 255, .72)
}

.legal__list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: rgba(212, 165, 116, .8);
  font-weight: 700
}

.legal__box {
  background: rgba(255, 255, 255, .025);
  border-left: 3px solid rgba(212, 165, 116, .5);
  padding: 18px 24px;
  border-radius: 4px;
  margin: 14px 0 18px
}

.legal__box p {
  margin: 0
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 14px
}

.legal__table thead {
  background: rgba(212, 165, 116, .08)
}

.legal__table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--ff-display);
  font-weight: 500;
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(212, 165, 116, .25);
  font-size: 13px;
  letter-spacing: .04em
}

.legal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  vertical-align: top;
  color: rgba(255, 255, 255, .72)
}

.legal__table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, .06);
  padding: 1px 6px;
  border-radius: 3px;
  color: rgba(212, 165, 116, .9)
}

.legal__note {
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  border-left: 2px solid rgba(212, 165, 116, .3);
  padding: 6px 0 6px 14px;
  margin-top: 12px
}

.legal__inline-btn {
  background: none;
  border: none;
  color: #d4a574;
  text-decoration: underline;
  text-decoration-color: rgba(212, 165, 116, .35);
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  padding: 0
}

.legal__inline-btn:hover {
  text-decoration-color: #d4a574
}

.legal__back {
  text-align: center;
  margin: 48px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08)
}

@media (max-width: 720px) {
  .legal {
    padding: 90px 0 40px
  }

  .legal__head {
    padding: 16px 0 28px;
    margin-bottom: 28px
  }

  .legal__section {
    margin-bottom: 28px
  }

  .legal__table {
    font-size: 13px
  }

  .legal__table th,
  .legal__table td {
    padding: 8px 10px
  }
}

/* ═══════════════════════════════════════════════════
   COOKIE WIDGET (floating FAB)
   ═══════════════════════════════════════════════════ */
.cc-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 15, 15, .92);
  color: #d4a574;
  border: 1px solid rgba(212, 165, 116, .4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity .3s, transform .3s, background .2s, color .2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  pointer-events: none;
  backdrop-filter: blur(8px)
}

.cc-widget.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto
}

.cc-widget:hover {
  background: #d4a574;
  color: #1a1a1a;
  transform: translateY(0) scale(1.06)
}

.cc-widget:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px
}

@media (max-width: 720px) {
  .cc-widget {
    bottom: 16px;
    left: 16px;
    width: 44px;
    height: 44px
  }
}

/* ═══════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════ */

.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(15, 15, 15, .98);
  border-top: 1px solid rgba(212, 165, 116, .25);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .5);
  padding: 22px 28px;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  font-family: var(--ff-body);
  color: rgba(255, 255, 255, .85)
}

.cc-banner.is-open {
  transform: translateY(0)
}

.cc-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap
}

.cc-banner__text {
  flex: 1 1 480px;
  font-size: 14px;
  line-height: 1.55
}

.cc-banner__text strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px
}

.cc-banner__text a {
  color: #d4a574;
  text-decoration: underline;
  text-underline-offset: 2px
}

.cc-banner__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.cc-btn {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 11px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap
}

.cc-btn--primary {
  background: #d4a574;
  color: #1a1a1a
}

.cc-btn--primary:hover {
  background: #e0b886
}

.cc-btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .25)
}

.cc-btn--secondary:hover {
  border-color: #d4a574;
  color: #d4a574
}

.cc-btn--text {
  background: transparent;
  color: rgba(255, 255, 255, .55);
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 11px 8px
}

.cc-btn--text:hover {
  color: #d4a574
}

@media (max-width: 720px) {
  .cc-banner {
    padding: 16px 18px
  }

  .cc-banner__inner {
    gap: 14px
  }

  .cc-banner__btns {
    width: 100%
  }

  .cc-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px
  }
}

/* ─ Settings modal ─ */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px)
}

.cc-modal.is-open {
  display: flex
}

.cc-modal__inner {
  background: #141414;
  border: 1px solid rgba(212, 165, 116, .25);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px
}

.cc-modal__title {
  font-family: var(--ff-display);
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 400
}

.cc-modal__sub {
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
  margin-bottom: 24px
}

.cc-cat {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0
}

.cc-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px
}

.cc-cat__name {
  font-family: var(--ff-display);
  font-size: 17px;
  color: #fff;
  font-weight: 500
}

.cc-cat__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.55
}

.cc-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0
}

.cc-toggle input {
  opacity: 0;
  width: 0;
  height: 0
}

.cc-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .15);
  border-radius: 11px;
  transition: background .2s;
  cursor: pointer
}

.cc-toggle__slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s
}

.cc-toggle input:checked + .cc-toggle__slider {
  background: #4a7d3a
}

.cc-toggle input:checked + .cc-toggle__slider::before {
  transform: translateX(20px)
}

.cc-toggle input:disabled + .cc-toggle__slider {
  background: rgba(212, 165, 116, .35);
  cursor: not-allowed
}

.cc-modal__btns {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  flex-wrap: wrap
}

.cc-modal__btns .cc-btn {
  flex: 1;
  min-width: 130px
}

/* ─ Settings link in footer ─ */
.cc-settings-link {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px
}

.cc-settings-link:hover {
  color: #d4a574
}

/* ─ Hide iframes that need consent ─ */
iframe[data-cc-src] {
  display: none !important
}

/* ─ Map placeholder when consent not given ─ */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed rgba(212, 165, 116, .3);
  width: 100%;
  height: 300px;
  text-align: center;
  padding: 24px;
  border-radius: 4px
}

.map-placeholder__text {
  font-family: var(--ff-body);
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  max-width: 480px;
  line-height: 1.5
}

.map-placeholder__btn {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 10px 20px;
  background: #d4a574;
  color: #1a1a1a;
  border: none;
  border-radius: 3px;
  cursor: pointer
}

.map-placeholder__btn:hover {
  background: #e0b886
}
