/* PatiTakip — ortak site stilleri (header, footer, yasal sayfalar) */
:root {
  --gradient-start: #FF6B35;
  --gradient-end: #FF9F1C;
  --bg: #FAFAF9;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --border: #EBEBEA;
  --footer-bg: #1A1A1A;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 10px 40px -10px rgba(26, 26, 26, 0.12);
  --gradient: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: min(1120px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: nowrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(26, 26, 26, 0.04);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-gradient:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  width: 100%;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
.mobile-nav-links a:hover { background: var(--bg); }
.mobile-menu .btn-gradient { width: 100%; text-align: center; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hamburger { display: none !important; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 767px) {
  .nav-actions .btn-gradient { display: none; }
  .hamburger { display: flex; }
}

/* Legal / inner pages */
.page { padding: 48px 0 80px; }
.page h1 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}
.page-intro {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 720px;
}
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.legal-card h2 {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
}
.legal-card h3 {
  margin: 20px 0 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.legal-card h3:first-child { margin-top: 0; }
.legal-card p, .legal-card ul, .legal-card ol {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.legal-card ul, .legal-card ol { padding-left: 1.25rem; }
.legal-card li { margin-bottom: 8px; }
.legal-card a {
  color: var(--gradient-start);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-card a:hover { opacity: 0.85; }
.legal-card p:last-child, .legal-card ul:last-child, .legal-card ol:last-child { margin-bottom: 0; }

.lang-heading {
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}
.lang-heading:first-of-type { margin-top: 0; }

.steps-list {
  list-style: none;
  padding-left: 0 !important;
  margin: 0 0 16px;
}
.steps-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 10px;
}
.steps-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 56px 0 32px;
}
.footer--compact {
  padding: 28px 0 24px;
}
.footer--compact .footer-bottom {
  padding-top: 0;
  align-items: center;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text { color: #fff; }
.footer-tag {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
}
.footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.footer-links a,
.footer-links .footer-sep {
  flex-shrink: 0;
  white-space: nowrap;
}
.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-sep { color: rgba(255, 255, 255, 0.22); user-select: none; font-size: 0.75rem; }
.social {
  display: flex;
  gap: 12px;
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.social a:hover { background: rgba(255, 255, 255, 0.15); }
.social svg { width: 20px; height: 20px; fill: #fff; opacity: 0.9; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom-meta { display: flex; flex-direction: column; gap: 4px; }
.footer-attrib {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #888;
}
.footer-attrib a { color: #FF6B35; transition: opacity 0.2s; }
.footer-attrib a:hover { opacity: 0.85; }

@media (max-width: 767px) {
  .footer-links { justify-content: flex-start; }
  .footer-top .footer-links {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}

/* 404 */
.page-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
}
.page-404-inner { text-align: center; max-width: 440px; }
.err-code {
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.page-404-inner h1 {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}
.page-404-inner p {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1rem;
}
.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(255, 107, 53, 0.45);
  transition: transform 0.2s;
}
.btn-home:hover { transform: translateY(-2px); }

body.page-stretch {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-stretch main { flex: 1; }
