/* ============================================================
 * Legal pages — shared layout for:
 *   /sayfa/gizlilik-politikasi
 *   /sayfa/mesafeli-satis-sozlesmesi
 *   /sayfa/skipass-kurallari
 *   /sayfa/satis-sozlesmesi-on-onay
 *
 * Used as the only page-specific stylesheet for these four pages —
 * they share heading hierarchy, readability constraints, and a calm
 * dark hero with site brand accents.
 * ============================================================ */

.legal-page { background: var(--u-snow); min-height: 100vh; }

/* ===== Hero ===== */
.legal-hero {
  background: linear-gradient(180deg, #0a1622 0%, #1f3854 100%);
  color: #fff;
  padding: 80px 0 96px;
  border-bottom: 3px solid var(--u-yellow);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.legal-hero .wrap { position: relative; z-index: 2; }
.legal-hero .crumbs {
  font-family: 'Mark Pro', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 22px;
}
.legal-hero .crumbs a { color: rgba(255,255,255,0.6); }
.legal-hero .crumbs a:hover { color: var(--u-yellow); }
.legal-hero .crumbs .now { color: var(--u-yellow); }
.legal-hero .eyebrow {
  color: var(--u-yellow);
  font-family: 'Mark Pro', sans-serif; font-weight: 900; font-style: italic;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.legal-hero h1 {
  font-family: 'Mark Pro', sans-serif; font-weight: 900;
  font-size: 56px; line-height: 1.0; color: #fff;
  letter-spacing: -0.02em; margin: 10px 0 0;
}
.legal-hero h1 em {
  color: var(--u-yellow); font-style: italic;
}
.legal-hero .updated {
  font-family: 'Gotham', sans-serif; font-size: 13.5px;
  color: rgba(255,255,255,0.7); margin-top: 18px;
}

/* ===== Body (long-form readable text) ===== */
.legal-body {
  max-width: 820px; margin: 0 auto;
  padding: 64px 0 96px;
  font-family: 'Gotham', sans-serif;
  font-size: 15px; line-height: 1.7;
  color: var(--u-slate);
}
.legal-body > p:first-of-type { margin-top: 0; }

.legal-body h2 {
  font-family: 'Mark Pro', sans-serif; font-weight: 700;
  font-size: 28px; line-height: 1.2; color: var(--u-black);
  margin: 48px 0 12px; letter-spacing: -0.01em;
  scroll-margin-top: 80px;     /* anchor-link offset for sticky header */
  padding-top: 12px;
  border-top: 1px dashed #d4dae3;
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-family: 'Mark Pro', sans-serif; font-weight: 700;
  font-size: 19px; color: var(--u-black);
  margin: 28px 0 8px;
}
.legal-body h4 {
  font-family: 'Mark Pro', sans-serif; font-weight: 700;
  font-size: 15.5px; color: var(--u-black);
  margin: 20px 0 6px;
}
.legal-body p { margin: 10px 0; }
.legal-body ul,
.legal-body ol {
  padding-left: 22px; margin: 10px 0;
}
.legal-body ul li,
.legal-body ol li { margin: 6px 0; }
.legal-body a { color: var(--u-fuchsia); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--u-black); }
.legal-body strong { color: var(--u-black); }

.legal-body blockquote {
  margin: 18px 0;
  padding: 16px 20px;
  background: rgba(245,196,47,0.10);
  border-left: 4px solid var(--u-yellow);
  border-radius: 0 12px 12px 0;
  font-family: 'Mark Pro', sans-serif;
  font-style: italic;
  font-size: 15px;
  color: var(--u-black);
}

/* ===== Definition / data tables (responsive) ===== */
.legal-table {
  display: grid;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin: 18px 0;
  background: #fff;
}
.legal-table .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #f1f3f6;
}
.legal-table .row:last-child { border-bottom: 0; }
.legal-table .k {
  background: #fafbfc;
  padding: 14px 18px;
  font-family: 'Mark Pro', sans-serif; font-weight: 700;
  font-size: 13.5px; color: var(--u-black);
  border-right: 1px solid #f1f3f6;
}
.legal-table .v {
  padding: 14px 18px;
  font-family: 'Gotham', sans-serif; font-size: 14px;
  color: var(--u-slate); line-height: 1.55;
}
@media (max-width: 600px) {
  .legal-table .row { grid-template-columns: 1fr; }
  .legal-table .k {
    border-right: 0;
    border-bottom: 1px solid #f1f3f6;
    background: #f3f4f6;
  }
}

/* ===== Aside: related legal documents ===== */
.legal-aside {
  margin-top: 56px;
  padding: 24px 28px;
  background: #fff;
  border: 2px solid var(--u-black);
  border-radius: 18px;
  box-shadow: var(--u-shadow);
}
.legal-aside h3 {
  font-family: 'Mark Pro', sans-serif; font-weight: 900; font-style: italic;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--u-fuchsia); margin: 0 0 12px;
}
.legal-aside ul { list-style: none; padding: 0; margin: 0; }
.legal-aside li {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.legal-aside li:last-child { border-bottom: 0; }
.legal-aside a {
  display: flex; align-items: center; gap: 8px;
  color: var(--u-black); text-decoration: none;
  font-family: 'Mark Pro', sans-serif; font-weight: 700;
  font-size: 14px;
}
.legal-aside a::before {
  content: '→'; color: var(--u-fuchsia);
  transition: transform 160ms ease;
}
.legal-aside a:hover { color: var(--u-fuchsia); }
.legal-aside a:hover::before { transform: translateX(4px); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .legal-hero { padding: 56px 0 64px; }
  .legal-hero h1 { font-size: 42px; }
  .legal-body { padding: 40px 0 64px; font-size: 14px; }
  .legal-body h2 { font-size: 24px; margin-top: 36px; }
  .legal-body h3 { font-size: 17px; }
}
@media (max-width: 480px) {
  .legal-hero { padding: 40px 0 48px; }
  .legal-hero h1 { font-size: 32px; line-height: 1.05; }
  .legal-hero .updated { font-size: 12px; }
  .legal-body { padding: 32px 0 56px; font-size: 14px; }
  .legal-body h2 { font-size: 20px; margin-top: 28px; padding-top: 8px; }
  .legal-body h3 { font-size: 16px; }
  .legal-aside { padding: 18px 20px; }
}
