/* Legal / policy pages — modern layout with photo heroes */

.policy-page {
  background: var(--white);
}

.policy-hero {
  position: relative;
  border-bottom: none;
}

.policy-hero-banner {
  position: relative;
  min-height: clamp(300px, 44vh, 460px);
  overflow: hidden;
  background: var(--blue-dark);
}

.policy-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policy-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 65, 196, 0.9) 0%,
    rgba(0, 93, 255, 0.65) 42%,
    rgba(255, 195, 23, 0.16) 100%
  );
  pointer-events: none;
}

.policy-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 9vw, 88px) 0 clamp(48px, 7vw, 64px);
  max-width: 620px;
}

.policy-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.policy-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
}

.policy-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.policy-hero-float {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  margin-bottom: 8px;
}

.policy-hero-badge {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  border: 4px solid var(--white);
  box-shadow: 0 12px 32px rgba(0, 65, 196, 0.22);
  background: linear-gradient(145deg, #dbeafe, #93c5fd);
}

.policy-page--privacy-policy .policy-hero-badge {
  background: linear-gradient(145deg, #dbeafe, #93c5fd);
}
.policy-page--terms-and-conditions .policy-hero-badge {
  background: linear-gradient(145deg, #ede9fe, #c4b5fd);
}
.policy-page--refund .policy-hero-badge {
  background: linear-gradient(145deg, #d1fae5, #6ee7b7);
}
.policy-page--shipping-policy .policy-hero-badge {
  background: linear-gradient(145deg, #cffafe, #67e8f9);
}
.policy-page--cancelation .policy-hero-badge {
  background: linear-gradient(145deg, #ffedd5, #fdba74);
}

.policy-body {
  position: relative;
  padding: 48px 0 80px;
  overflow: hidden;
}

.policy-body-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(0, 93, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 20%, rgba(255, 195, 23, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 50%, #fffbeb 100%);
  pointer-events: none;
}

.policy-body .container {
  position: relative;
  z-index: 1;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 20px 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 65, 196, 0.06);
}

.policy-sidebar-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 12px;
}

.policy-sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-sidebar nav li {
  margin-bottom: 6px;
}

.policy-sidebar nav a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}

.policy-sidebar nav a:hover,
.policy-sidebar nav a.is-active {
  background: rgba(0, 93, 255, 0.08);
  color: var(--blue);
}

.policy-main-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px 40px;
  box-shadow: 0 8px 40px rgba(0, 65, 196, 0.08);
  border-top: 4px solid var(--blue);
}

.policy-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.policy-breadcrumb a {
  color: var(--blue);
  font-weight: 600;
}

.policy-prose {
  max-width: none;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text);
}

.policy-prose .content-card {
  border: none;
  padding: 0;
  background: transparent;
}

.policy-prose h1,
.policy-prose h1 strong,
.policy-prose h2,
.policy-prose h2 strong,
.policy-prose h3,
.policy-prose h3 strong {
  font-weight: 800;
  color: var(--blue-dark);
}

.policy-prose h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(0, 93, 255, 0.12);
}

.policy-prose h2,
.policy-prose .policy-section-title {
  margin: 2rem 0 0.85rem;
  padding-top: 1.35rem;
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: none;
  border-top: 1px solid var(--border);
}

.policy-prose h1 + h2,
.policy-prose h1 + .policy-section-title {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: none;
}

.policy-prose h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.98rem;
  line-height: 1.4;
}

.policy-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  text-align: left;
}

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

.policy-prose strong {
  font-weight: 800;
  color: var(--blue-dark);
}

.policy-prose .policy-definition {
  margin: 0.65rem 0 1rem;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 12px;
  border-left: 3px solid var(--blue);
  color: var(--text);
}

.policy-prose .policy-list,
.policy-prose ul.policy-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  color: var(--muted);
}

.policy-prose .policy-list li {
  position: relative;
  margin: 0 0 0.65rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.policy-prose .policy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.policy-prose .policy-sublist,
.policy-prose ol.policy-sublist {
  margin: 0 0 1.15rem 1.1rem;
  padding: 0;
  color: var(--muted);
}

.policy-prose .policy-sublist li {
  margin-bottom: 0.55rem;
  padding-left: 0.35rem;
  line-height: 1.7;
}

.policy-prose ul:not(.policy-list),
.policy-prose ol:not(.policy-sublist) {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
}

.policy-prose li {
  margin-bottom: 0.5rem;
}

.policy-updated {
  margin-top: 32px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--yellow);
}

.policy-error {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.policy-quick-links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-sidebar {
    position: static;
  }
  .policy-main-card {
    padding: 24px 20px 32px;
  }
}

@media (max-width: 640px) {
  .policy-hero-float {
    margin-top: -32px;
  }
  .policy-hero-badge {
    width: 68px;
    height: 68px;
    font-size: 1.75rem;
  }
}
