/**
 * AlanX — premium policy / legal pages
 * body.alanx-page-policy
 */

body.alanx-page-policy #main-body {
  position: relative;
  overflow-x: clip;
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

body.alanx-page-policy #main-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    var(--homepage-flow-shine, none);
  z-index: 0;
}

body.alanx-page-policy #main-body > .container {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.policy-page--premium {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.policy-page__glow {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 50%;
  width: min(36rem, 90vw);
  height: 12rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  filter: blur(8px);
}

.policy-page__shell {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    linear-gradient(165deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 17, 23, 0.92) 42%, rgba(10, 12, 16, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  animation: policy-shell-in 0.65s ease backwards;
}

.policy-page__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  opacity: 0;
  animation: policy-shine 8s ease-in-out infinite;
}

@keyframes policy-shell-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes policy-shine {
  0%, 88%, 100% { opacity: 0; transform: translateX(-30%); }
  92% { opacity: 1; transform: translateX(30%); }
}

/* Hero */
.policy-hero {
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

.policy-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(37, 99, 235, 0.12);
}

.policy-hero__kicker i {
  font-size: 0.8rem;
}

.policy-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4.5vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.policy-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--gray);
}

.policy-hero__meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.policy-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(186, 198, 216, 0.95);
}

/* Highlight cards */
.policy-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 767.98px) {
  .policy-highlights {
    grid-template-columns: 1fr;
  }
}

.policy-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.policy-highlight:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(37, 99, 235, 0.12);
}

.policy-highlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.25);
}

.policy-highlight__value {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.policy-highlight__label {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.35;
}

/* Sections */
.policy-sections {
  padding: 0.5rem clamp(1rem, 3vw, 1.5rem) 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.policy-section {
  padding: 1.15rem 1.15rem 1.15rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.policy-section:hover {
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.04);
}

.policy-section__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.policy-section__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #93c5fd;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.policy-section__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--semi-primary);
  opacity: 0.9;
}

.policy-section__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.policy-section__body p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.policy-section__body p:last-child {
  margin-bottom: 0;
}

.policy-section__body a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-section__body a:hover {
  color: #bfdbfe;
}

/* Steps */
.policy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .policy-steps {
    grid-template-columns: 1fr;
  }
}

.policy-step {
  position: relative;
  padding: 0.85rem 0.85rem 0.85rem 2.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.policy-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.policy-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--semi-primary);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Related docs */
.policy-related {
  padding: 1rem clamp(1rem, 3vw, 1.5rem) 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.policy-related__title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}

.policy-related__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-related__chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.policy-related__chips a:hover {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
  color: #fff;
}

.policy-related__chips a i {
  font-size: 0.75rem;
  color: #93c5fd;
}

/* CTA bar */
.policy-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.04) 50%, transparent 100%);
}

.policy-cta-bar__text {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(186, 198, 216, 0.95);
  max-width: 22rem;
}

.policy-cta-bar__text strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.policy-cta-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.policy-cta-bar__actions .theme-btn {
  gap: 0.5rem;
}

.policy-cta-bar__actions .theme-btn > i {
  flex-shrink: 0;
}

.policy-cta-bar .theme-btn.--fill-primary {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.policy-cta-bar .theme-btn.--fill-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

@media (max-width: 575.98px) {
  .policy-cta-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .policy-cta-bar__actions {
    flex-direction: column;
  }

  .policy-cta-bar__actions .theme-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Abuse bildirimi — hafif kırmızı vurgu */
.policy-page--abuse .policy-page__glow {
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.14) 0%, rgba(59, 130, 246, 0.08) 45%, transparent 72%);
}

.policy-page--abuse .policy-page__shell {
  border-color: rgba(248, 113, 113, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(239, 68, 68, 0.06);
}

.policy-page--abuse .policy-highlight__icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}

.policy-page--abuse .policy-highlight:hover {
  border-color: rgba(248, 113, 113, 0.35);
}

.policy-page--abuse .policy-section__icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(248, 113, 113, 0.22);
}

.policy-page--abuse .policy-cta-bar--abuse {
  border-color: rgba(248, 113, 113, 0.22);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.2) 0%, rgba(30, 41, 59, 0.5) 50%, rgba(15, 17, 23, 0.9) 100%);
}

.policy-page--abuse .policy-cta-bar .theme-btn.--fill-primary {
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.policy-page--abuse .policy-cta-bar .theme-btn.--fill-primary:hover {
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.45);
}

.policy-corporate-dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.policy-corporate-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.policy-corporate-item dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-muted);
}

.policy-corporate-item dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.policy-corporate-item__pending {
  font-style: italic;
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  .policy-page__shell,
  .policy-page__shell::before,
  .policy-highlight,
  .policy-cta-bar .theme-btn.--fill-primary {
    animation: none;
    transition: none;
  }

  .policy-highlight:hover,
  .policy-cta-bar .theme-btn.--fill-primary:hover {
    transform: none;
  }
}
