@import url("./legal-pages.css");

.legal-main { width: min(1120px, calc(100% - 32px)); }
.legal-footer { width: min(1120px, calc(100% - 32px)); }

.content-hero { text-align: center; margin-bottom: 34px; }
.content-hero .eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.content-hero h1 { margin-top: 8px; }
.content-hero p { max-width: 700px; margin: 0 auto; color: var(--muted); }
.mobile-recommend {
  margin: 22px auto 0;
  padding: 13px 16px;
  border: 1px solid #b9d5c9;
  border-radius: 10px;
  background: #edf8f3;
  color: #285f4c;
  font-weight: 700;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.page-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.page-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(32, 58, 94, 0.09); }
.page-card .card-icon { font-size: 1.8rem; }
.page-card h2, .page-card h3 { margin: 10px 0 6px; }
.page-card p { margin: 0; color: var(--muted); }
.page-card .read-more { margin-top: auto; padding-top: 14px; color: #1769aa; font-weight: 700; }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 0 26px 50px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 5px;
  left: 16px;
  width: 2px;
  background: var(--line);
}
.steps h3 { margin: 0 0 5px; }
.steps p { margin: 0; color: var(--muted); }
.article-meta { margin: -14px 0 24px; color: var(--muted); font-size: 0.85rem; }
.article-callout {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: #edf8f3;
}
.content-cta { margin-top: 36px; padding: 26px; border-radius: 14px; background: var(--brand-dark); color: #fff; text-align: center; }
.content-cta h2 { margin-top: 0; color: #fff; }
.content-cta a { display: inline-block; padding: 10px 20px; border-radius: 999px; background: #fff; color: var(--brand-dark); text-decoration: none; font-weight: 800; }

.guide-intro { max-width: 760px; margin: 0 auto 28px; color: var(--muted); text-align: center; }
.guide-video {
  max-width: 860px;
  margin: 0 auto 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101820;
  box-shadow: 0 16px 36px rgba(32, 58, 94, 0.12);
}
.guide-video video { display: block; width: 100%; max-height: 72vh; }
.media-caption { margin: 9px 0 0; color: var(--muted); font-size: 0.86rem; text-align: center; }
.guide-section { margin-top: 42px; }
.guide-section > h2 { margin-bottom: 8px; }
.step-gallery,
.settings-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 32px;
}
.step-shot,
.settings-shot,
.sample-panel {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.step-shot img,
.settings-shot img,
.sample-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.step-shot figcaption,
.settings-shot figcaption,
.sample-panel figcaption {
  padding: 10px 4px 2px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
}
.wide-screen-sample { margin: 20px 0 32px; }
.wide-screen-sample img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.certificate-sample {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: 30px;
  margin: 24px 0 34px;
}
.certificate-sample .sample-panel { background: #f4f6f9; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sample-actions a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.sample-actions a.secondary { border: 1px solid var(--brand); background: #fff; color: var(--brand); }

.pricing-note { margin-bottom: 24px; text-align: center; color: var(--muted); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 2px 18px;
}
.pricing-card {
  position: relative;
  min-width: 0;
  padding: 24px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pricing-card.recommended { border: 2px solid var(--brand); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 7px; background: var(--brand); color: #fff; box-shadow: 0 3px 8px rgba(32, 58, 94, 0.18); font-size: 0.75rem; font-weight: 800; line-height: 1.35; white-space: nowrap; }
.pricing-card h2 { margin: 5px 0 4px; }
.price { margin: 10px 0; color: var(--brand-dark); font-size: 1.65rem; font-weight: 800; }
.price small { font-size: 0.75rem; font-weight: 500; }
.annual-price { min-height: 2.8em; color: var(--muted); font-size: 0.86rem; }
.pricing-card ul { padding-left: 20px; }
.plan-cta { display:block; margin-top:22px; padding:11px 14px; border-radius:8px; background:#315fd8; color:#fff; text-align:center; text-decoration:none; font-weight:800; }
.pricing-card li { margin-bottom: 7px; }
.pricing-status { padding: 12px 16px; border-radius: 9px; background: var(--notice); text-align: center; }
.comparison-table { min-width: 720px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}

@media (max-width: 720px) {
  .page-grid { grid-template-columns: 1fr; }
  .step-gallery,
  .settings-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .certificate-sample { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .legal-main { width: calc(100% - 20px); }
  .pricing-grid { grid-template-columns: 1fr; }
  .step-shot,
  .settings-shot,
  .sample-panel { padding: 7px; }
  .step-shot figcaption,
  .settings-shot figcaption { font-size: 0.78rem; }
}
