/* Global helpers for the static build. Page styling lives inline in the design files. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img { max-width: 100%; }
main { display: block; }

[data-if] { display: contents; }
[data-if][hidden] { display: none !important; }

.is-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #1A1A1A; color: #FFFFFF; padding: 10px 16px; border-radius: 6px; font-family: Inter, system-ui, sans-serif; }
.is-skip:focus { left: 8px; }

:focus-visible { outline: 3px solid #ED1C24; outline-offset: 2px; }

/* Long headings and grids on small screens */
@media (max-width: 640px) {
  h1 { font-size: clamp(30px, 8vw, 44px) !important; line-height: 1.15 !important; }
  h2 { font-size: clamp(24px, 6.5vw, 34px) !important; }
  [style*="minmax(340px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(270px"], [style*="minmax(280px"] { grid-template-columns: 1fr !important; }
  [style*="height: 420px"] { height: 240px !important; }
  [id^="menu-"] [style*="repeat(3, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Form feedback */
.is-form-msg { margin: 0; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.is-form-msg[data-kind="ok"] { background: #EAF6EE; color: #14532D; }
.is-form-msg[data-kind="err"] { background: #FDECEC; color: #8E0B20; }
.is-invalid { border-color: #C8102E !important; box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.15); }
.is-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Cookie banner */
.is-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; background: #1A1A1A; color: #FFFFFF; border-radius: 10px; padding: 18px 20px; box-shadow: 0 12px 32px rgba(0,0,0,0.25); font: 15px/1.5 Inter, system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.is-cookie p { margin: 0; flex: 1 1 320px; }
.is-cookie a { color: #FFFFFF; }
.is-cookie div { display: flex; gap: 10px; flex-wrap: wrap; }
.is-cookie button { font: 600 15px Jost, Inter, sans-serif; border-radius: 6px; padding: 11px 18px; min-height: 44px; cursor: pointer; }
.is-cookie .is-ok { background: #ED1C24; color: #FFFFFF; border: 0; }
.is-cookie .is-no { background: transparent; color: #FFFFFF; border: 1px solid #8A8A8A; }

/* Floating WhatsApp */
.is-wa { position: fixed; right: 18px; bottom: 18px; z-index: 150; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.22); }
.is-cookie:not([hidden]) ~ .is-wa { bottom: 120px; }

@media (max-width: 640px) {
  [data-ref="setStatsEl"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

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

/* Language switcher: EN is not live yet */
.is-soon { position: relative; color: rgba(255,255,255,.55); cursor: not-allowed; }
.is-soon::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #ED1C24; color: #FFFFFF; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 4px 8px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 60; }
.is-soon:hover::after, .is-soon:focus::after { opacity: 1; }
.is-soon:hover, .is-soon:focus { color: rgba(255,255,255,.8); outline: none; }

/* Legal pages */
.is-legal { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; font-family: Inter, system-ui, sans-serif; color: #1A1A1A; }
.is-crumb { font-size: 14px; color: #5A5A5A; margin-bottom: 24px; }
.is-crumb a { color: #C8102E; }
.is-legal-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.is-legal-nav { flex: 1 1 260px; max-width: 320px; border: 1px solid #ECECEC; border-radius: 10px; padding: 18px 20px; position: sticky; top: 16px; }
.is-legal-nav p { margin: 0 0 10px; font-family: Jost, sans-serif; font-weight: 600; font-size: 18px; }
.is-legal-nav ul { list-style: none; margin: 0; padding: 0; }
.is-legal-nav li a { display: block; padding: 9px 10px; border-radius: 6px; color: #1A1A1A; text-decoration: none; font-size: 15px; line-height: 1.35; }
.is-legal-nav li a:hover { background: #F7F7F7; }
.is-legal-nav li a[aria-current="page"] { background: #FDECEC; color: #8E0B20; font-weight: 600; }
.is-legal-doc { flex: 999 1 560px; min-width: 0; max-width: 820px; font-size: 16px; line-height: 1.7; }
.is-legal-doc h1 { font-family: Jost, sans-serif; font-weight: 600; font-size: 38px; line-height: 1.15; margin: 0 0 24px; }
.is-legal-doc h2 { font-family: Jost, sans-serif; font-weight: 600; font-size: 23px; line-height: 1.3; margin: 34px 0 10px; }
.is-legal-doc p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.is-legal-doc li { text-align: justify; }
.is-legal-doc h2, .is-legal-doc h3 { scroll-margin-top: 96px; }
.is-legal-doc h3 { font-family: Jost, sans-serif; font-weight: 600; font-size: 19px; line-height: 1.35; margin: 24px 0 8px; }
.is-toc { background: #F7F7F7; border-left: 3px solid #C8102E; border-radius: 8px; padding: 18px 22px; margin: 8px 0 28px; }
.is-toc h2 { margin: 0 0 10px !important; font-size: 20px !important; }
.is-toc ol { list-style: none; margin: 0; padding: 0; }
.is-toc li { margin: 6px 0; text-align: left; }
.is-toc a { color: #1A1A1A; text-decoration: none; }
.is-toc a:hover { color: #C8102E; text-decoration: underline; }
.is-alpha { list-style: none; padding-left: 0 !important; }
.is-alpha li { padding-left: 26px; text-indent: -26px; }
.is-alpha li span { display: inline-block; width: 26px; text-indent: 0; font-weight: 600; }
.is-legal-doc ul, .is-legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.is-legal-doc li { margin: 4px 0; }
.is-legal-doc a { color: #C8102E; word-break: break-word; }
.is-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.is-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.is-table th, .is-table td { border: 1px solid #DADADA; padding: 10px 12px; vertical-align: top; text-align: left; }
.is-table th { background: #F7F7F7; font-weight: 600; }
.is-legal-print { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 16px; background: #F7F7F7; border-radius: 8px; font-size: 15px; }
.is-legal-print button { background: #C8102E; color: #FFFFFF; border: 0; border-radius: 6px; font: 600 15px Jost, Inter, sans-serif; padding: 11px 18px; min-height: 44px; cursor: pointer; }
@media (max-width: 760px) { .is-legal-nav { position: static; max-width: none; } }
@media print {
  .is-legal-nav, .is-crumb, .is-legal-print, .is-cookie, .is-wa, header, footer, .is-skip { display: none !important; }
  main > *:not(.is-legal) { display: none !important; }
  .is-legal { padding: 0; }
  .is-legal-doc { max-width: none; font-size: 12pt; }
}
.is-table p { margin: 0 0 4px; text-align: left; }
.is-info { max-width: 720px; }
.is-info caption { text-align: left; font: 600 18px Jost, Inter, sans-serif; padding: 0 0 10px; }
.is-info th { width: 34%; background: #F7F7F7; font-weight: 600; text-align: left; white-space: nowrap; }
.is-info th, .is-info td { vertical-align: middle; text-align: left; }
@media (max-width: 560px) { .is-info th { white-space: normal; } }

/* Footer kalkan animasyonu */
.is-shield{display:block;width:min(170px,100%);height:auto;aspect-ratio:1;margin:auto auto 0;pointer-events:none}
.is-tick{stroke-dasharray:1;stroke-dashoffset:1;animation:is-tick 5s ease-in-out infinite}
.is-shine{animation:is-shine 5s ease-in-out infinite;transform:translateX(-10px) skewX(-18deg)}
@keyframes is-tick{0%,8%{stroke-dashoffset:1}30%,82%{stroke-dashoffset:0}100%{stroke-dashoffset:-1}}
@keyframes is-shine{0%,40%{transform:translateX(-10px) skewX(-18deg)}75%,100%{transform:translateX(30px) skewX(-18deg)}}
@media (max-width:760px){.is-shield{width:120px;margin:16px 0 0}}
@media (prefers-reduced-motion:reduce){.is-tick,.is-shine{animation:none;stroke-dashoffset:0}}

/* Site geneli: paragraflar iki yana yaslı (inline text-align olanlar korunur) */
main p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Mobilde sayfa başlığı ve sayılar bandındaki kalkan gizli (okunurluk); footer kalkanı kalır */
@media (max-width: 760px) { .is-hero-shield { display: none; } }
.is-legal-note { margin: 0 0 18px; padding: 12px 16px; background: #FFF5F5; border-left: 3px solid #C8102E; border-radius: 6px; font-size: 14px; color: #4A4A4A; text-align: left !important; }
.is-lang { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 0; line-height: 1; }
.is-lang strong, .is-lang a { font-size: 12px; font-weight: 700; letter-spacing: .5px; padding: 4px 9px; border-radius: 999px; text-decoration: none !important; }
.is-lang strong { background: #FFFFFF; color: #1A1A1A; }
.is-lang a { color: #FFFFFF !important; opacity: .85; }
.is-lang a:hover, .is-lang a:focus-visible { opacity: 1; background: rgba(255,255,255,.15); }
