/*
 * ROBEXMER — KVKK / Çerez onayı / Yasal sayfalar
 * Banner, tercih penceresi, form onay kutusu, yasal sayfa düzeni.
 */

/* =========================================================
   ÇEREZ BANNER'I
   ========================================================= */

.rx-consent {
  --rx-c-bg: #0b1118;
  --rx-c-panel: #111a24;
  --rx-c-line: rgba(255, 255, 255, 0.12);
  --rx-c-text: #c9d1d9;
  --rx-c-strong: #ffffff;
  --rx-c-orange: #ff6a1a;

  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.rx-consent[hidden],
.rx-consent [hidden] {
  display: none !important;
}

.rx-consent *,
.rx-consent *::before,
.rx-consent *::after {
  box-sizing: border-box;
}

.rx-consent p {
  margin: 0;
}

.rx-consent__banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60000;

  display: flex;
  align-items: center;
  gap: 28px;

  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 22px;

  border: 1px solid var(--rx-c-line);
  border-top: 3px solid var(--rx-c-orange);
  background: var(--rx-c-bg);
  color: var(--rx-c-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);

  font-size: 13.5px;
  line-height: 1.55;

  animation: rx-consent-in 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rx-consent-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.rx-consent__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rx-consent__title {
  color: var(--rx-c-strong);
  font: 800 15px/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.02em;
}

.rx-consent__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.rx-consent a {
  color: #ff8a4c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rx-consent a:hover,
.rx-consent a:focus-visible {
  color: #fff;
}

.rx-consent__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.rx-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 132px;
  min-height: 46px;
  margin: 0;
  padding: 0 18px;

  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #0b1118;

  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;

  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.rx-consent__btn--primary {
  border-color: var(--rx-c-orange);
  background: var(--rx-c-orange);
  color: #111;
}

.rx-consent__btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

@media (hover: hover) {
  .rx-consent__btn:hover {
    border-color: #ff8a4c;
    background: #ff8a4c;
    color: #111;
  }
}

.rx-consent__btn:focus-visible,
.rx-consent__close:focus-visible,
.rx-consent__switch input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* =========================================================
   TERCİH PENCERESİ
   ========================================================= */

.rx-consent__overlay {
  position: fixed;
  inset: 0;
  z-index: 60010;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(3px);
}

.rx-consent__dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;

  width: min(620px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 24px;

  border: 1px solid var(--rx-c-line);
  border-top: 3px solid var(--rx-c-orange);
  background: var(--rx-c-bg);
  color: var(--rx-c-text);

  font-size: 13.5px;
  line-height: 1.55;
}

.rx-consent__dialog:focus {
  outline: 0;
}

.rx-consent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rx-consent__head .rx-consent__title {
  font-size: 18px;
}

.rx-consent__close {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--rx-c-line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.rx-consent__close::before,
.rx-consent__close::after {
  position: absolute;
  top: 21px;
  left: 13px;
  width: 16px;
  height: 2px;
  background: #fff;
  content: "";
}

.rx-consent__close::before { transform: rotate(45deg); }
.rx-consent__close::after { transform: rotate(-45deg); }

.rx-consent__cats {
  display: grid;
  gap: 10px;
}

.rx-consent__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 14px 16px;

  border: 1px solid var(--rx-c-line);
  background: var(--rx-c-panel);
}

.rx-consent__cat-title {
  margin-bottom: 4px !important;
  color: var(--rx-c-strong);
  font-weight: 700;
  font-size: 14px;
}

.rx-consent__always {
  flex: 0 0 auto;
  color: var(--rx-c-orange);
  font: 700 11px/1 Inter, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rx-consent__switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 52px;
  height: 30px;
  cursor: pointer;
}

.rx-consent__switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rx-consent__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a4552;
  transition: background-color 160ms ease;
  pointer-events: none;
}

.rx-consent__switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.rx-consent__switch input:checked + span {
  background: var(--rx-c-orange);
}

.rx-consent__switch input:checked + span::after {
  transform: translateX(22px);
}

.rx-consent__actions--modal {
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 4px;
}

html.rx-consent-modal-open,
html.rx-consent-modal-open body {
  overflow: hidden;
}

/* Banner açıkken sağ alttaki servis butonu banner'ın altında kalmasın */
html.rx-consent-banner-open .rx-floating-service,
html.rx-consent-banner-open .rx-service-flow {
  visibility: hidden;
}

@media (max-width: 900px) {
  .rx-consent__banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .rx-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rx-consent__actions .rx-consent__btn--ghost {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 560px) {
  .rx-consent__banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-y: auto;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    font-size: 13px;
  }

  .rx-consent__btn {
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
  }

  .rx-consent__overlay {
    align-items: flex-end;
    padding: 0;
  }

  .rx-consent__dialog {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .rx-consent__actions--modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rx-consent__actions--modal .rx-consent__btn--ghost {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-consent__banner { animation: none; }
  .rx-consent__btn,
  .rx-consent__switch span,
  .rx-consent__switch span::after { transition: none; }
}

/* =========================================================
   FORM — KVKK ONAY KUTUSU
   ========================================================= */

.rx-kvkk-ack {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 4px 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.rx-kvkk-ack input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #ff6a1a;
  cursor: pointer;
}

.rx-kvkk-ack label {
  display: block;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.88;
  cursor: pointer;
}

.rx-kvkk-ack a {
  color: #ff6a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================
   FOOTER YASAL BAĞLANTILAR
   ========================================================= */

body .rx-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

body .rx-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (max-width: 760px) {
  body.robexmer-ui-page .rx-footer__utility.rx-footer__legal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 18px;
  }
}

/* İzin verilene kadar gösterilen harita/video kutusu: sitenin harita filtresi uygulanmasın */
body iframe[data-rx-consent-src],
body.robexmer-ui-page .rx-footer__map-frame iframe[data-rx-consent-src] {
  filter: none !important;
}

/* =========================================================
   YASAL SAYFALAR
   ========================================================= */

.rx-legal-hero {
  padding: clamp(118px, 13vw, 168px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(120deg, rgba(255, 106, 26, 0.12), transparent 45%),
    #05070a;
  color: #fff;
}

.rx-legal-hero__inner,
.rx-legal__inner {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.rx-detail .rx-legal-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.6);
  font: 600 13px/1.3 Inter, Arial, sans-serif;
}

.rx-legal-hero__breadcrumb a {
  text-decoration: none;
}

.rx-legal-hero__breadcrumb a:hover {
  color: #ff6a1a;
}

.rx-legal-hero__breadcrumb strong {
  color: #fff;
  font-weight: 700;
}

.rx-detail .rx-legal-hero__kicker {
  margin: 0 0 12px;
  color: #ff6a1a;
  font: 700 13px/1 "Archivo Narrow", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.rx-legal-hero__title {
  margin: 0;
  color: #fff;
  font: 700 clamp(38px, 6vw, 72px)/0.95 "Archivo Narrow", Arial, sans-serif;
  text-transform: uppercase;
}

.rx-legal {
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  background: #f3f6f8;
  color: #1d2733;
}

.rx-legal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.rx-legal__tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd8e0;
  background: #fff;
  color: #1d2733;
  font: 700 13px/1 Inter, Arial, sans-serif;
  text-decoration: none;
}

.rx-legal__tabs a.is-active,
.rx-legal__tabs a:hover {
  border-color: #ff6a1a;
  color: #c94a07;
}

.rx-legal__admin-notice {
  margin: 0 0 20px !important;
  padding: 12px 14px;
  border-left: 4px solid #d93a1a;
  background: #fff1ec;
  color: #8a2410 !important;
  font: 600 14px/1.5 Inter, Arial, sans-serif !important;
}

.rx-legal__body {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid #dfe6ec;
  background: #fff;
  font: 400 16px/1.7 Inter, Arial, sans-serif;
}

.rx-detail .rx-legal__body p,
.rx-detail .rx-legal__body li {
  font-size: 16px;
  line-height: 1.7;
}

.rx-legal__body p {
  margin: 0 0 16px;
}

.rx-legal__body .rx-legal__lead {
  font-size: 17px;
  color: #33404d;
}

.rx-legal__body h2 {
  margin: 38px 0 14px;
  padding-top: 26px;
  border-top: 1px solid #e6ecf1;
  color: #0b1118;
  font: 700 clamp(22px, 2.4vw, 28px)/1.2 "Archivo Narrow", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.rx-legal__body h3 {
  margin: 24px 0 8px;
  color: #0b1118;
  font: 700 18px/1.3 Inter, Arial, sans-serif;
}

.rx-legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.rx-legal__body li {
  margin-bottom: 6px;
}

.rx-legal__body li::marker {
  color: #ff6a1a;
}

.rx-legal__body a {
  color: #c94a07;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.rx-legal__body code {
  padding: 1px 5px;
  background: #eef2f5;
  font-size: 0.86em;
  white-space: nowrap;
}

.rx-legal__body .rx-legal__facts {
  display: grid;
  gap: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e3e9ee;
}

.rx-legal__body .rx-legal__facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e9ee;
}

.rx-legal__body .rx-legal__facts li:last-child {
  border-bottom: 0;
}

.rx-legal__facts span {
  color: #6a7684;
  font-weight: 600;
  font-size: 14px;
}

.rx-legal__table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rx-legal__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.5;
}

.rx-legal__table th,
.rx-legal__table td {
  padding: 11px 12px;
  border: 1px solid #e3e9ee;
  text-align: left;
  vertical-align: top;
}

.rx-legal__table th {
  background: #0b1118;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.rx-legal__table tbody tr:nth-child(even) td {
  background: #f8fafb;
}

.rx-legal__button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: #ff6a1a;
  color: #111;
  font: 800 12px/1 Inter, Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.rx-legal__button:hover,
.rx-legal__button:focus-visible {
  background: #0b1118;
  color: #fff;
  outline: 0;
}

.rx-legal__body .rx-legal__meta {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e6ecf1;
  color: #6a7684;
  font-size: 14px;
}

@media (max-width: 640px) {
  .rx-legal-hero__inner,
  .rx-legal__inner {
    width: calc(100% - 32px);
  }

  .rx-legal__body {
    padding: 20px 16px;
  }

  .rx-detail .rx-legal__body p,
  .rx-detail .rx-legal__body li {
    font-size: 15px;
  }

  .rx-legal__body .rx-legal__facts li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
