:root {
  --privacy-primary: #238f67;
  --privacy-primary-dark: #176a4c;
  --privacy-text: #1c2137;
  --privacy-muted: #5f6878;
  --privacy-border: #dfe4e8;
  --privacy-surface: #ffffff;
}

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

.cookie-consent {
  position: fixed;
  z-index: 100000;
  left: 16px;
  bottom: 16px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid rgba(28, 33, 55, 0.1);
  border-radius: 14px;
  background: var(--privacy-surface);
  box-shadow: 0 14px 40px rgba(28, 33, 55, 0.24);
  color: var(--privacy-text);
  font-family: "Manrope", Arial, sans-serif;
}

.cookie-consent__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.cookie-consent__header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.cookie-consent__close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid var(--privacy-text);
  border-radius: 6px;
  background: #fff;
  color: var(--privacy-text);
  font-size: 26px;
  line-height: 1;
}

.cookie-consent p {
  margin: 0 0 16px;
  color: var(--privacy-muted);
  font-size: 13px;
  line-height: 1.65;
}

.cookie-consent a {
  color: var(--privacy-primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cookie-consent__actions--preferences {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.cookie-consent__button {
  min-height: 48px;
  padding: 9px 10px;
  border: 2px solid var(--privacy-primary);
  border-radius: 8px;
  background: #fff;
  color: var(--privacy-primary-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: var(--privacy-primary-dark);
  background: var(--privacy-primary);
  color: #fff;
}

.cookie-consent button:focus-visible,
.footer-cookie-settings:focus-visible,
.legal-cookie-button:focus-visible {
  outline: 3px solid rgba(35, 143, 103, 0.35);
  outline-offset: 2px;
}

.cookie-consent__intro {
  margin-bottom: 12px !important;
}

.cookie-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--privacy-border);
}

.cookie-consent__category strong,
.cookie-consent__category span {
  display: block;
}

.cookie-consent__category strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.cookie-consent__category > div > span {
  color: var(--privacy-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cookie-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  margin: 0;
}

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

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aeb6bf;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-switch__slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  content: "";
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--privacy-primary);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch__slider {
  outline: 3px solid rgba(35, 143, 103, 0.35);
  outline-offset: 2px;
}

.cookie-switch input:disabled + .cookie-switch__slider {
  cursor: not-allowed;
  opacity: 0.75;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.footer-cookie-settings {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.kvkk-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--privacy-border);
  border-radius: 8px;
  background: #f8faf9;
}

.kvkk-form-check input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  accent-color: var(--privacy-primary);
}

.kvkk-form-check label {
  margin: 0;
  color: var(--privacy-text);
  font-size: 13px;
  line-height: 1.55;
}

.kvkk-form-check a {
  color: var(--privacy-primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

.legal-breadcrumb {
  background: url("../images/banner/pages-banner.png") no-repeat center;
  background-size: cover;
}

.legal-page {
  background: #f7f9f8;
}

.legal-card {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #e4e9e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(28, 33, 55, 0.06);
  color: #495367;
}

.legal-card h2 {
  margin-bottom: 24px;
  font-size: clamp(25px, 4vw, 38px);
}

.legal-card h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 21px;
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.8;
}

.legal-version {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--privacy-border);
  color: var(--privacy-muted);
  font-size: 13px !important;
}

.legal-note {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--privacy-primary);
  border-radius: 0 8px 8px 0;
  background: #eef8f3;
  color: var(--privacy-text);
  line-height: 1.7;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
}

.legal-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border: 1px solid var(--privacy-border);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.legal-table th {
  background: #eef8f3;
  color: var(--privacy-text);
}

.legal-cookie-button {
  padding: 12px 18px;
  border: 2px solid var(--privacy-primary);
  border-radius: 8px;
  background: var(--privacy-primary);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 640px) {
  .cookie-consent {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .cookie-consent__actions,
  .cookie-consent__actions--preferences {
    grid-template-columns: 1fr;
  }

  .cookie-consent__button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent *,
  .cookie-consent *::before {
    transition: none !important;
  }
}

