/*
  Shared styles for the "Are CD Keys Legal?" / "Buying with Confidence" trust page.
  Single source of truth for ALL language variants (legal-page.html + legal-page.de/fr/he.html),
  so a styling/mobile tweak made here applies to every localised version at once.
  Linked from each language file via an absolute <link> so it resolves under /de/, /fr/, /he/ too.
  Visual language mirrors templates/__custom/about-page.html. Brand red: #cd1e24.
*/
.cjs-leg * { box-sizing: border-box; }

/* Hide the shared CMS breadcrumb + duplicate page-title heading: this page has
   its own hero, and the main menu already sits above it. */
.breadcumb_wrap { display: none; }
.about-wrap > h2 { display: none; }

.cjs-leg {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1d24;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.cjs-leg h1, .cjs-leg h2, .cjs-leg h3 { color: #111827; margin: 0 0 12px; line-height: 1.25; letter-spacing: -.4px; }
.cjs-leg p {
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.cjs-leg-section > p { font-size: 17px; }
.cjs-leg a { color: #cd1e24; text-decoration: none; }
.cjs-leg a:hover { text-decoration: underline; }

/* Hero */
.cjs-leg-hero { text-align: center; padding: 24px 8px 8px; }
.cjs-leg-hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; }
.cjs-leg-hero .cjs-leg-sub {
  font-size: 16px; color: #6b7280;
  max-width: 720px; margin: 12px auto 0; line-height: 1.6;
}

/* Content cards */
.cjs-leg-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 26px 28px;
  margin: 18px 0 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.cjs-leg-section:first-of-type { margin-top: 28px; }
.cjs-leg-section h2 {
  font-size: 22px; font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  display: flex; align-items: flex-start; gap: 10px;
}
.cjs-leg-section h2 .cjs-leg-icn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #cd1e24, #b81c13);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(205,30,36,.22);
}
.cjs-leg-section h2 .cjs-leg-icn svg { width: 18px; height: 18px; fill: #fff; }

/* Defensive: force dark text on the Reviews.io carousel since it sits on a light card */
.cjs-leg-reviewsio #carousel-inline-widget-cjsleg,
.cjs-leg-reviewsio #carousel-inline-widget-cjsleg * { color: #2f2f2f; }
.cjs-leg-reviewsio #carousel-inline-widget-cjsleg a { color: #cd1e24; }

/* CTA */
.cjs-leg-cta { text-align: center; margin-top: 36px; }
.cjs-leg-cta-btn {
  display: inline-block;
  background: #111827; color: #fff !important;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px; font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(17,24,39,.20);
  transition: background .15s, transform .08s, box-shadow .15s;
}
.cjs-leg-cta-btn:hover { background: #1f2937; box-shadow: 0 8px 24px rgba(17,24,39,.26); color: #fff !important; }
.cjs-leg-cta-btn:active { transform: scale(.97); }

.cjs-leg-signoff {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: #6b7280;
}
.cjs-leg-signoff strong { color: #111827; display: block; font-size: 16px; margin-top: 4px; }

/* ---------------------------------------------------------------------------
   RTL support (Hebrew). The hero stays centred; body copy and headings flip to
   right-aligned, and the flexbox icon automatically moves to the right edge.
--------------------------------------------------------------------------- */
.cjs-leg[dir="rtl"] { text-align: right; }
.cjs-leg[dir="rtl"] .cjs-leg-hero { text-align: center; }
.cjs-leg[dir="rtl"] .cjs-leg-cta,
.cjs-leg[dir="rtl"] .cjs-leg-signoff { text-align: center; }
.cjs-leg[dir="rtl"] .cjs-leg-section h2 { letter-spacing: 0; }

/* ---------------------------------------------------------------------------
   Mobile / responsive
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .cjs-leg { padding: 18px 14px 52px; }
  .cjs-leg-hero { padding: 16px 4px 4px; }
  .cjs-leg-section { padding: 22px 20px; margin-top: 14px; }
  .cjs-leg-section:first-of-type { margin-top: 22px; }
}

@media (max-width: 600px) {
  .cjs-leg { padding: 14px 12px 48px; }
  .cjs-leg p { font-size: 15.5px; line-height: 1.6; }
  .cjs-leg-section > p { font-size: 16px; }
  .cjs-leg-hero .cjs-leg-sub { font-size: 15px; }
  .cjs-leg-section { padding: 18px 16px; border-radius: 10px; }
  .cjs-leg-section h2 { font-size: 18px; gap: 9px; }
  .cjs-leg-section h2 .cjs-leg-icn { width: 30px; height: 30px; border-radius: 7px; }
  .cjs-leg-section h2 .cjs-leg-icn svg { width: 16px; height: 16px; }
  /* Full-width, comfortable tap target for the primary CTA on phones */
  .cjs-leg-cta { margin-top: 28px; }
  .cjs-leg-cta-btn { display: block; width: 100%; padding: 15px 20px; }
}

@media (max-width: 380px) {
  .cjs-leg-section { padding: 16px 14px; }
  .cjs-leg-section h2 { font-size: 17px; }
  .cjs-leg p { font-size: 15px; }
}
