/* Shared modern layout for About / FAQ / Contact / policy pages */
.page-shell {
  --sp-ink: #1c2434;
  --sp-muted: #5a6578;
  --sp-accent: #3949ab;
  --sp-accent-soft: rgba(92, 107, 192, 0.1);
  --sp-line: rgba(28, 36, 52, 0.08);
  --sp-paper: #fffefb;
  --sp-shadow: 0 16px 40px rgba(28, 36, 52, 0.07);
  --sp-radius: 18px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(92, 107, 192, 0.09), transparent 48%),
    radial-gradient(ellipse at 92% 12%, rgba(180, 120, 60, 0.06), transparent 42%),
    linear-gradient(180deg, #f7f8fc 0%, #eef1f7 100%);
  min-height: 70vh;
  padding: 2rem 0 3.5rem;
  color: var(--sp-ink);
}

.page-shell a {
  color: var(--sp-accent);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.page-shell a:hover {
  color: #2c387e;
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.page-hero {
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  border-radius: 22px;
  box-shadow: var(--sp-shadow);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: center;
}

.page-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(92, 107, 192, 0.16), rgba(57, 73, 171, 0.08));
  color: var(--sp-accent);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-accent);
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--sp-ink);
  line-height: 1.25;
}

.page-hero p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}

.page-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--sp-muted);
  margin-bottom: 1rem;
}

.page-crumb a {
  color: var(--sp-muted);
  font-weight: 500;
  text-decoration: none;
}

.page-crumb a:hover {
  color: var(--sp-accent);
}

.page-crumb span[aria-hidden="true"] {
  opacity: 0.45;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--sp-line);
  color: var(--sp-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.page-nav a:hover {
  background: #fff;
  color: var(--sp-accent);
  border-color: rgba(92, 107, 192, 0.28);
  transform: translateY(-1px);
}

.page-nav a.is-active {
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  border-color: rgba(92, 107, 192, 0.25);
}

.sp-card {
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius);
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.045);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(28, 36, 52, 0.08);
}

.sp-card--static:hover {
  transform: none;
}

.sp-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-accent);
}

.sp-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.sp-card h3 {
  margin: 1.15rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 650;
  color: #2c3e50;
}

.sp-card p,
.sp-card li {
  color: #4a5568;
  line-height: 1.75;
  font-size: 0.98rem;
}

.sp-card p:last-child,
.sp-card ul:last-child {
  margin-bottom: 0;
}

.sp-card ul {
  padding-left: 1.15rem;
  margin-bottom: 0.75rem;
}

.sp-card li + li {
  margin-top: 0.35rem;
}

.sp-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sp-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .sp-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.sp-grid .sp-card {
  margin-bottom: 0;
  height: 100%;
}

.sp-editor {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sp-editor__avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sp-editor__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sp-ink);
  margin-bottom: 0.2rem;
}

.sp-contact-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-contact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sp-contact-row:first-child {
  padding-top: 0;
}

.sp-contact-row i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  flex-shrink: 0;
}

.sp-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.sp-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f3f4f8;
  color: #4a5568;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sp-social a:hover {
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  color: #fff;
  transform: translateY(-2px);
}

.sp-form .form-label {
  font-weight: 600;
  color: var(--sp-ink);
  font-size: 0.9rem;
}

.sp-form .form-control,
.sp-form .form-select {
  border-radius: 12px;
  border-color: var(--sp-line);
  padding: 0.7rem 0.9rem;
  background: #fff;
}

.sp-form .form-control:focus,
.sp-form .form-select:focus {
  border-color: rgba(92, 107, 192, 0.45);
  box-shadow: 0 0 0 3px var(--sp-accent-soft);
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-btn:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(57, 73, 171, 0.28);
}

.sp-faq details {
  background: var(--sp-paper);
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(28, 36, 52, 0.04);
  overflow: hidden;
}

.sp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 650;
  color: var(--sp-ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sp-faq summary::-webkit-details-marker {
  display: none;
}

.sp-faq summary::before {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

.sp-faq details[open] summary::before {
  content: "−";
}

.sp-faq .sp-faq__answer {
  padding: 0 1.2rem 1.15rem;
  margin: 0 1.05rem 0.85rem;
  border-top: 1px solid var(--sp-line);
  padding-top: 0.9rem;
  color: #4a5568;
  line-height: 1.75;
  font-size: 0.98rem;
}

.sp-sitemap-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.18s ease;
}

.sp-sitemap-link:hover {
  background: var(--sp-accent-soft);
}

.sp-sitemap-link i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f4f8;
  color: var(--sp-accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.sp-sitemap-link strong {
  display: block;
  color: var(--sp-ink);
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.sp-sitemap-link span {
  display: block;
  color: var(--sp-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 400;
}

.sp-note {
  font-size: 0.9rem;
  color: var(--sp-muted);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sp-line);
}

.sp-path-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-path-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sp-line);
}

.sp-path-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sp-path-list li:first-child {
  padding-top: 0;
}

.sp-path-list .num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--sp-accent-soft);
  color: var(--sp-accent);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 575px) {
  .page-hero {
    grid-template-columns: 1fr;
    padding: 1.35rem;
  }

  .page-shell {
    padding: 1.35rem 0 2.75rem;
  }
}
