/* Yasal sayfalar — iletişim / site panel diliyle uyumlu */

.site-legal-page {
  --legal-accent: rgba(22, 119, 255, 0.14);
  --legal-accent-line: rgba(105, 177, 255, 0.35);
}

.site-legal-page--terms {
  --legal-accent: rgba(245, 158, 11, 0.12);
  --legal-accent-line: rgba(251, 191, 36, 0.35);
}

.site-legal-page--cookies {
  --legal-accent: rgba(16, 185, 129, 0.12);
  --legal-accent-line: rgba(52, 211, 153, 0.35);
}

.site-legal-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--site-text-muted, #94a3b8);
  font-size: 0.9375rem;
}

/* Hero */
.site-legal-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1e2739;
  box-shadow:
    var(--site-panel-shadow, 0 12px 40px rgba(0, 0, 0, 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-legal-hero__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 70% at 100% 0%, var(--legal-accent), transparent 58%);
}

.site-legal-hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 1.5rem;
  padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) {
  .site-legal-hero__inner {
    padding: 2rem 2.25rem;
    align-items: center;
  }
}

.site-legal-hero__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  border: 1px solid var(--legal-accent-line);
  background: rgba(22, 119, 255, 0.1);
  color: var(--site-accent-bright, #69b1ff);
}

.site-legal-page--terms .site-legal-hero__icon-wrap {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.site-legal-page--cookies .site-legal-hero__icon-wrap {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.site-legal-hero__icon-svg {
  width: 1.75rem;
  height: 1.75rem;
}

.site-legal-hero__text {
  min-width: 0;
  flex: 1 1 14rem;
}

.site-legal-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(22, 119, 255, 0.28);
  background: rgba(22, 119, 255, 0.1);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--site-accent-bright, #69b1ff);
}

.site-legal-hero__title {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.625rem, 4.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.site-legal-hero__intro {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
}

/* Layout */
.site-legal-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .site-legal-layout {
    grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.site-legal-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .site-legal-layout__aside {
    position: sticky;
    top: 5.5rem;
  }
}

.site-legal-layout__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Side nav */
.site-legal-nav {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(30, 39, 57, 0.95) 0%, rgba(24, 31, 46, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-legal-nav__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.site-legal-nav__icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.85;
}

.site-legal-nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 1023px) {
  .site-legal-nav__links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.site-legal-nav__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

.site-legal-nav__link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.site-legal-nav__link--active {
  color: #f1f5f9;
  background: rgba(22, 119, 255, 0.12);
  border-color: rgba(22, 119, 255, 0.28);
}

.site-legal-nav__link-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

.site-legal-nav__link--active .site-legal-nav__link-dot {
  opacity: 1;
  background: var(--site-accent-bright, #69b1ff);
}

/* TOC (desktop sidebar) */
.site-legal-toc {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.35);
}

.site-legal-toc--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .site-legal-toc--desktop {
    display: block;
  }
}

.site-legal-toc__label {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.site-legal-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-legal-toc__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-legal-toc__link:hover {
  color: var(--site-accent-bright, #69b1ff);
}

/* Sections */
.site-legal-sections {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-legal-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(30, 39, 57, 0.88) 0%, rgba(24, 31, 46, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  scroll-margin-top: 6rem;
}

.site-legal-section__index {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(105, 177, 255, 0.22);
  padding-top: 0.15rem;
}

.site-legal-page--terms .site-legal-section__index {
  color: rgba(251, 191, 36, 0.22);
}

.site-legal-page--cookies .site-legal-section__index {
  color: rgba(52, 211, 153, 0.22);
}

.site-legal-section__content {
  min-width: 0;
}

.site-legal-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.site-legal-section__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: #94a3b8;
}

/* CTA */
.site-legal-cta {
  border-radius: 1rem;
  border: 1px solid rgba(22, 119, 255, 0.2);
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.08) 0%, rgba(30, 39, 57, 0.6) 100%);
  overflow: hidden;
}

.site-legal-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.35rem;
}

.site-legal-cta__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(22, 119, 255, 0.15);
  color: var(--site-accent-bright, #69b1ff);
  flex-shrink: 0;
}

.site-legal-cta__icon {
  width: 1.35rem;
  height: 1.35rem;
}

.site-legal-cta__text {
  flex: 1 1 12rem;
  min-width: 0;
}

.site-legal-cta__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
}

.site-legal-cta__desc {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
}

.site-legal-cta__btn {
  flex-shrink: 0;
  border-radius: 0.75rem !important;
  padding: 0.6rem 1.25rem !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
}

/* Light theme */
[data-theme="light"] .site-legal-hero {
  background: var(--site-surface, #fff) !important;
  border-color: rgba(22, 119, 255, 0.14) !important;
}

[data-theme="light"] .site-legal-hero__title {
  color: #0f172a !important;
}

[data-theme="light"] .site-legal-hero__intro {
  color: #64748b !important;
}

[data-theme="light"] .site-legal-hero__eyebrow {
  color: #1677ff !important;
  border-color: rgba(22, 119, 255, 0.28) !important;
  background: rgba(22, 119, 255, 0.08) !important;
}

[data-theme="light"] .site-legal-nav,
[data-theme="light"] .site-legal-section {
  background: var(--site-surface, #fff) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .site-legal-nav__link {
  color: #64748b !important;
}

[data-theme="light"] .site-legal-nav__link--active {
  color: #0f172a !important;
  background: rgba(22, 119, 255, 0.08) !important;
}

[data-theme="light"] .site-legal-toc {
  background: rgba(241, 245, 249, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .site-legal-section__title {
  color: #0f172a !important;
}

[data-theme="light"] .site-legal-section__body {
  color: #475569 !important;
}

[data-theme="light"] .site-legal-cta {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.06) 0%, #f8fafc 100%) !important;
  border-color: rgba(22, 119, 255, 0.18) !important;
}

[data-theme="light"] .site-legal-cta__title {
  color: #0f172a !important;
}

[data-theme="light"] .site-legal-cta__desc {
  color: #64748b !important;
}
