/* Blog hub and article pages. Uses the legal-pages theme. */

body.blog-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

body.blog-page,
body.blog-page *,
body.blog-page *::before,
body.blog-page *::after {
  box-sizing: border-box;
}

.blog-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 20px clamp(48px, 8vw, 72px);
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 24px);
  font-size: 13px;
  color: var(--legal-muted);
}

.blog-breadcrumb a {
  color: var(--legal-link);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-kicker {
  margin: 0 0 8px;
  color: var(--legal-accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-main h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.blog-intro {
  margin: 0;
  max-width: 42rem;
  color: var(--legal-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-section {
  margin-top: clamp(28px, 5vw, 40px);
}

.blog-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.blog-empty {
  padding: 20px;
  border: 1px solid rgba(158, 200, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.blog-empty p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.blog-empty p:last-child {
  margin-bottom: 0;
}

.blog-section a,
.blog-article a {
  color: var(--legal-link);
}

.blog-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.blog-resources a {
  color: var(--legal-link);
  text-decoration: none;
}

.blog-resources a:hover {
  text-decoration: underline;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(158, 200, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
}

.blog-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(8, 16, 32, 0.55);
}

.blog-card__media img,
.blog-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.blog-card__media--contain,
.blog-card__media--contain img {
  object-fit: contain;
}

.blog-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 16px;
  background: rgba(8, 16, 32, 0.55);
}

.blog-hero-wrap--contain {
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin: 0;
}

.blog-hero-wrap--contain .blog-hero {
  object-fit: contain;
}

.blog-figure {
  margin: 1.5rem 0;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.35);
}

.blog-figure figcaption {
  margin-top: 0.5rem;
  color: var(--legal-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.blog-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-faq details {
  margin: 0;
  padding: 0;
  background: var(--legal-bg-card);
  border: 1px solid var(--legal-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-faq details[open] {
  border-color: var(--legal-accent-border);
  box-shadow: 0 0 0 1px rgba(142, 180, 255, 0.12);
}

.blog-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  font-size: clamp(15px, 2.8vw, 17px);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.blog-faq summary::-webkit-details-marker,
.blog-faq summary::marker {
  display: none;
  content: "";
}

.blog-faq summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--legal-accent-soft);
  color: var(--legal-accent);
  font-size: 12px;
  line-height: 28px;
  text-align: center;
  transition: transform 0.25s ease, background 0.2s;
}

.blog-faq details[open] summary::after {
  transform: rotate(180deg);
  background: rgba(142, 180, 255, 0.28);
}

.blog-faq summary:hover {
  color: var(--legal-accent);
}

.blog-faq details > :not(summary) {
  margin: 0 20px 10px;
  color: #c8cdd6;
  font-size: clamp(14px, 2.6vw, 16px);
  line-height: 1.7;
}

.blog-faq details > :not(summary):last-child {
  margin-bottom: 18px;
}

.blog-faq details a {
  color: var(--legal-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-faq details a:hover {
  color: var(--legal-accent-hover);
}

.blog-faq details ul {
  margin-left: 1.1rem;
  padding: 0;
}

.blog-faq details li {
  margin-bottom: 6px;
}

.blog-faq details li::marker {
  color: var(--legal-accent);
}

@media (max-width: 600px) {
  .blog-faq summary {
    padding: 16px;
  }

  .blog-faq details > :not(summary) {
    margin-left: 16px;
    margin-right: 16px;
  }

  .blog-faq details > :not(summary):last-child {
    margin-bottom: 16px;
  }
}

.blog-card__meta {
  margin: 0;
  color: var(--legal-muted);
  font-size: 13px;
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.blog-section a.blog-card__cta,
.blog-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  align-self: start;
  width: auto;
  min-width: 11.5rem;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 11px 22px;
  border: none;
  border-radius: 5px;
  background-color: #3A63F3;
  color: #fff;
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.blog-section a.blog-card__cta:hover,
.blog-section a.blog-card__cta:focus,
.blog-card__cta:hover,
.blog-card__cta:focus,
.blog-article a.blog-purchase:hover,
.blog-article a.blog-purchase:focus {
  background-color: #0d39d4;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.blog-article a.blog-purchase span,
.blog-card__cta span {
  display: block;
  line-height: 1;
  font-weight: 700;
}

.blog-article a.blog-purchase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px 0 8px;
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  background-color: #3A63F3;
  color: #fff;
  font-family: "Fira Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.blog-article {
  max-width: 42rem;
}

.blog-article h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.35rem;
}

.blog-article h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.1rem;
}

.blog-article p,
.blog-article li {
  line-height: 1.7;
}

.blog-toc {
  margin: 20px 0;
  padding: 16px 16px 16px 32px;
  border: 1px solid rgba(158, 200, 255, 0.25);
  border-radius: 12px;
}

@media (max-width: 480px) {
  .blog-main {
    padding-left: 16px;
    padding-right: 16px;
  }
}
