/**
 * Yasal bilgilendirme sayfaları — SSS, KVKK, çerez, hakkında
 */

body:has(.legal-view:not(.hidden)) {
  background: #f0f3f7;
}

.legal-view {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: #1a2638;
  line-height: 1.55;
}

.legal-page {
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 2px 10px rgba(26, 38, 56, 0.05);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #2a3f54;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.legal-page h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.legal-updated {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: #64748b;
}

.legal-page h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2a3f54;
}

.legal-page p,
.legal-page li {
  font-size: 0.92rem;
  color: #334155;
}

.legal-page ul,
.legal-page ol {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-faq-item {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #eef1f6;
}

.legal-faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1e293b;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eef1f6;
  font-size: 0.85rem;
}

.legal-links button {
  padding: 0;
  border: none;
  background: none;
  color: #2a3f54;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.legal-contact-block {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft, #e2e8f0);
  border-radius: 8px;
  background: var(--surface-muted, #f8fafc);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-contact-block a {
  color: var(--link, #2563eb);
  text-decoration: none;
}

.legal-contact-block a:hover {
  text-decoration: underline;
}

.legal-note {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

.welcome-legal-links,
.login-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin-top: 0.65rem;
  font-size: 0.78rem;
}

.welcome-legal-links button,
.login-legal-links button {
  padding: 0;
  border: none;
  background: none;
  color: #64748b;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.welcome-legal-links button:hover,
.login-legal-links button:hover {
  color: #2a3f54;
}

.login-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.65rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #475569;
  width: 100%;
  box-sizing: border-box;
}

.login-consent-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.login-consent-label {
  display: block;
  font-weight: 600;
  color: #334155;
}

.login-consent-detail {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.45;
}

.login-consent-detail button {
  white-space: normal;
  word-break: break-word;
}

.login-consent input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  max-width: 1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 1rem;
  display: inline-block;
}

.login-consent button {
  padding: 0;
  border: none;
  background: none;
  color: #2a3f54;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: rgba(15, 23, 42, 0.94);
  color: #f1f5f9;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 720px) {
  .cookie-banner {
    max-height: 42vh;
    overflow-y: auto;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0));
  }
  .cookie-banner-text {
    font-size: 0.82rem;
    line-height: 1.35;
  }
  #view_login:not(.hidden) {
    padding-bottom: 8rem;
  }
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 2rem;
}

.cookie-banner-close {
  position: absolute;
  top: 0.15rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cookie-banner-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-banner-text button {
  padding: 0;
  border: none;
  background: none;
  color: #93c5fd;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cookie-banner-actions button {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-accept {
  background: #2a3f54;
  color: #fff;
}

.cookie-btn-essential {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.cookie-prefs-link,
.welcome-legal-links .cookie-prefs-link,
.login-legal-links .cookie-prefs-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-prefs-fab {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(42, 63, 84, 0.14);
  background: #fff;
  color: #2d6a4f;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.cookie-prefs-fab.hidden {
  display: none !important;
}

.cookie-prefs-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-prefs-fab:hover,
.cookie-prefs-fab:focus-visible {
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

@media (max-width: 720px) {
  .legal-view {
    padding: 0.75rem 0.65rem 2rem;
  }
  .legal-page {
    padding: 1rem;
  }
}

/* ——— Uygulama detayları (ürün turu) ——— */
.legal-view--tour {
  max-width: 860px;
}

.legal-detail-cta {
  margin: 1rem 0 0.35rem;
}

.legal-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border: 1px solid #c5d4e8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
  color: #1e3a5f;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 38, 56, 0.06);
}

.legal-cta-btn:hover,
.legal-cta-btn:focus-visible {
  border-color: #2a3f54;
  background: #fff;
}

.tour-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.tour-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 0 0 1.35rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e4e9f0;
  border-radius: 10px;
  background: #f8fafc;
}

.tour-toc a,
.tour-toc button {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2a3f54;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.tour-toc a:hover,
.tour-toc a:focus-visible,
.tour-toc button:hover,
.tour-toc button:focus-visible {
  background: #e8eef6;
  text-decoration: underline;
}

.tour-block {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eef1f6;
}

.tour-block:last-of-type {
  border-bottom: none;
}

.tour-block h2 {
  scroll-margin-top: 1rem;
}

.tour-visual {
  margin: 0.85rem 0 0;
}

.tour-visual figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}

.tour-mock {
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #f4f7fb;
  padding: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tour-mock-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.tour-mock-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.tour-mock-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.tour-mock-kpis > div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.tour-mock-kpis b {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
}

.tour-mock-kpis small {
  font-size: 0.68rem;
  color: #64748b;
}

.tour-mock-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.tour-mock-tiles i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.tour-mock--calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.65rem;
  align-items: stretch;
}

.tour-mock-calc-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.tour-mock-row {
  display: flex;
  justify-content: space-between;
  padding: 0.28rem 0;
  border-bottom: 1px dashed #eef1f6;
  font-size: 0.8rem;
}

.tour-mock-row:last-of-type {
  border-bottom: none;
}

.tour-mock-btn {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem;
  border-radius: 7px;
  background: #2a3f54;
  color: #fff;
}

.tour-mock-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(160deg, #e8edf4, #f7f5f0);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  min-height: 9.5rem;
  padding: 0.55rem 0.4rem;
}

.tour-mock-frame {
  width: 4.2rem;
  height: 5.2rem;
  border: 10px solid #5c4033;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  background:
    linear-gradient(45deg, transparent 48%, #c4a574 48%, #c4a574 52%, transparent 52%),
    #f0ebe3;
  transform: perspective(220px) rotateY(-18deg) rotateX(4deg);
}

.tour-mock-frame.tour-mock-frame--strip {
  border-color: transparent;
  background: linear-gradient(#f7f1e6, #f7f1e6) padding-box;
  border: 14px solid transparent;
  border-image: var(--tour-strip) 40 fill stretch;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.tour-framed {
  --tour-frame-w: 15px;
  width: 5.6rem;
  height: 7rem;
  box-sizing: border-box;
  border: var(--tour-frame-w) solid transparent;
  border-image: var(--tour-strip) 42 stretch;
  background: #f4efe6;
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transform: perspective(280px) rotateY(-14deg) rotateX(5deg);
  overflow: hidden;
}

.tour-framed-mat {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 0.28rem;
  background: #f7f2ea;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.tour-framed-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tour-mock--orders {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tour-mock-order {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.tour-mock-order b {
  font-size: 0.82rem;
}

.tour-mock-order small {
  grid-column: 2;
  font-size: 0.72rem;
  color: #64748b;
}

.tour-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  grid-row: span 2;
}

.tour-badge--wait {
  background: #fff7ed;
  color: #c2410c;
}

.tour-badge--prep {
  background: #eff6ff;
  color: #1d4ed8;
}

.tour-badge--done {
  background: #ecfdf5;
  color: #047857;
}

.tour-mock--quote {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.tour-mock-quote-opt {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem;
  text-align: center;
}

.tour-mock-quote-opt.is-pick {
  border-color: #2a3f54;
  box-shadow: 0 0 0 2px rgba(42, 63, 84, 0.15);
}

.tour-mock-quote-opt b {
  display: block;
  font-size: 0.8rem;
}

.tour-mock-quote-opt small {
  font-size: 0.72rem;
  color: #64748b;
}

.tour-mock--customers {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem;
}

.tour-mock-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  flex-shrink: 0;
}

.tour-mock--customers b {
  display: block;
  font-size: 0.9rem;
}

.tour-mock--customers small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
}

.tour-mock--stock {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.tour-mock--stock table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.tour-mock--stock th,
.tour-mock--stock td {
  padding: 0.4rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #eef1f6;
}

.tour-mock--stock th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

.tour-mock--finance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.tour-mock-fin {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}

.tour-mock-fin b {
  display: block;
  font-size: 0.95rem;
  color: #0f766e;
}

.tour-mock-fin small {
  font-size: 0.7rem;
  color: #64748b;
}

.tour-mock--gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
}

.tour-mock--gallery i {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid #d7dee8;
  background:
    linear-gradient(135deg, #d6c3a8 0%, #8b6914 40%, #3d2914 100%);
}

.tour-mock--gallery i:nth-child(2) {
  background: linear-gradient(135deg, #c9b8a8, #5c4033);
}

.tour-mock--gallery i:nth-child(3) {
  background: linear-gradient(135deg, #e8e0d5, #6b5344);
}

.tour-mock--gallery i:nth-child(4) {
  background: linear-gradient(135deg, #b0a090, #2c1810);
}

.tour-mock--gallery i:nth-child(5) {
  background: linear-gradient(135deg, #dfd0b8, #4a3728);
}

.tour-mock--gallery i:nth-child(6) {
  background: linear-gradient(135deg, #a89880, #1a120c);
}

.tour-mock--gallery-real {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.55rem;
  background: #f4f7fb;
}

.tour-strip {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid #d7dee8;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tour-strip img {
  display: block;
  width: 100%;
  height: 4.25rem;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  background: #ece7df;
}

.tour-strip figcaption {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.02em;
  text-align: center;
}

.tour-mock--setup ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
  counter-reset: step;
}

.tour-mock--setup li {
  flex: 1;
  counter-increment: step;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.tour-mock--setup li::before {
  content: counter(step) ". ";
}

.tour-mock--setup li.is-done {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.tour-mock--setup li.is-active {
  color: #1e3a5f;
  border-color: #2a3f54;
  background: #fff;
}

.tour-mock--mail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.tour-mock-mail-head {
  padding: 0.5rem 0.75rem;
  background: #2a3f54;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.tour-mock-mail-body {
  padding: 0.75rem;
  font-size: 0.82rem;
  color: #475569;
}

.tour-mock--plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.tour-mock--plans > div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.tour-mock--plans > div.is-hot {
  border-color: #2a3f54;
  background: #f8fafc;
}

.tour-mock--plans b {
  display: block;
  font-size: 0.9rem;
}

.tour-mock--plans small {
  font-size: 0.72rem;
  color: #64748b;
}

.tour-foot {
  margin: 0.5rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f0f7f4;
  border: 1px solid #cce5d8;
  font-size: 0.9rem;
  color: #1e3a32;
}

@media (max-width: 640px) {
  .tour-mock-kpis,
  .tour-mock-tiles,
  .tour-mock--quote,
  .tour-mock--finance,
  .tour-mock--plans,
  .tour-mock--calc {
    grid-template-columns: 1fr 1fr;
  }

  .tour-mock--gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .tour-mock--gallery-real {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-mock--setup ol {
    flex-direction: column;
  }
}
