/* Shared styles for the legal pages (/legal/*.html) */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body { background: #ffffff; }
.navbar { background: rgba(244,245,245,1); }
.navbar.scrolled { background: rgba(244,245,245,0.45); }

.article-hero {
  max-width: 860px;
  width: calc(100% - 24px);
  margin: 66px auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: #F4F5F5;
}

.article-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

/* ─── Animated gradient header (replaces the hero photo) ─── */
.policy-gradient {
  position: relative;
  overflow: hidden;
  background: var(--pg-base);
}
.policy-gradient::before,
.policy-gradient::after {
  content: "";
  position: absolute;
  inset: -40%;
  will-change: transform;
  pointer-events: none;
}
.policy-gradient::before {
  background:
    radial-gradient(38% 48% at 28% 32%, var(--pg-1) 0%, transparent 70%),
    radial-gradient(42% 52% at 74% 30%, var(--pg-2) 0%, transparent 70%),
    radial-gradient(48% 58% at 52% 78%, var(--pg-3) 0%, transparent 72%);
  animation: pg-drift-a 26s ease-in-out infinite alternate;
}
.policy-gradient::after {
  background:
    radial-gradient(34% 44% at 70% 72%, var(--pg-4) 0%, transparent 70%),
    radial-gradient(36% 46% at 24% 70%, var(--pg-2) 0%, transparent 70%);
  opacity: 0.8;
  animation: pg-drift-b 34s ease-in-out infinite alternate;
}
@keyframes pg-drift-a {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(6%, 5%, 0) rotate(22deg) scale(1.08); }
}
@keyframes pg-drift-b {
  0%   { transform: translate3d(5%, 4%, 0) rotate(0deg) scale(1.04); }
  100% { transform: translate3d(-6%, -5%, 0) rotate(-18deg) scale(0.96); }
}
.policy-gradient--orders    { --pg-base:#fff3ec; --pg-1:#ffb48c; --pg-2:#ff86b1; --pg-3:#ffd486; --pg-4:#ff9d8a; }
.policy-gradient--legal     { --pg-base:#ecf2ff; --pg-1:#7db7ff; --pg-2:#9d8dff; --pg-3:#62d2e8; --pg-4:#4f8cff; }
.policy-gradient--standards { --pg-base:#edfaf3; --pg-1:#7fdfb6; --pg-2:#72c7ff; --pg-3:#c6ee8e; --pg-4:#3fc8a8; }
.policy-gradient--security  { --pg-base:#f0edff; --pg-1:#917dff; --pg-2:#5470ff; --pg-3:#c28dff; --pg-4:#5dd2e6; }
@media (prefers-reduced-motion: reduce) {
  .policy-gradient::before, .policy-gradient::after { animation: none; }
}

.article-hero-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 44px 56px 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.article-date {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: 0.02em;
}

.article-hero-title {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin: 0;
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 56px 64px;
}

.article-content h2 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.3px;
  margin: 64px 0 20px;
  line-height: 1.18;
}

.article-content h3 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.1px;
  margin: 48px 0 14px;
  line-height: 1.25;
}

.article-content p {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.76;
  margin: 0 0 24px;
  letter-spacing: 0.004em;
}

.article-content p.lead {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.55;
  letter-spacing: -0.1px;
  margin-bottom: 40px;
}

.article-content ul, .article-content ol {
  padding-left: 0;
  list-style: none;
  margin: 0 0 28px;
}

.article-content ul li {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  color: #1d1d1f;
  line-height: 1.76;
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86868b;
}

.article-content a {
  color: #0071e3;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content strong {
  font-weight: 600;
  color: #1d1d1f;
}

.article-divider {
  width: 100%;
  height: 1px;
  background: #d2d2d7;
  margin: 48px 0;
}

.footer-legal-section {
  position: relative;
  z-index: 10;
  background: #ffffff;
  border-top: none;
  padding: 20px 40px 48px;
  max-width: 1100px;
  margin: 60px auto 0;
}
.legal-block p { color: #a1a1a6; font-size: 12px; }

@media (max-width: 768px) {
  .article-hero { width: calc(100% - 16px); border-radius: 18px; margin-top: 56px; }
  .article-hero-img { height: 280px; }
  .article-hero-body { padding: 32px 28px 16px; }
  .article-hero-title { font-size: 30px; }
  .article-content { padding: 0 28px 40px; }
  .article-content h2 { font-size: 24px; margin-top: 48px; }
  .article-content h3 { font-size: 19px; margin-top: 36px; }
  .footer-legal-section { padding: 36px 24px 32px; }
}

@media (max-width: 480px) {
  .article-hero { width: calc(100% - 12px); border-radius: 16px; margin-top: 48px; }
  .article-hero-img { height: 200px; }
  .article-hero-body { padding: 24px 20px 12px; }
  .article-hero-title { font-size: 26px; letter-spacing: -0.5px; }
  .article-content { padding: 0 20px 32px; }
  .article-content h2 { font-size: 22px; }
  .article-content p, .article-content ul li { font-size: 16px; }
  .article-content p.lead { font-size: 19px; }
  .footer-legal-section { padding: 28px 16px 24px; }
}
