/* Shared layout & typography for info / legal / contact pages */
:root {
  --brand: #7851a9;
  --brand-dark: #5e3d96;
  --brand-light: #f3ecff;
  --brand-gradient: linear-gradient(135deg, #7851a9 0%, #9b6fd4 100%);
  --text: #2e1f47;
  --muted: #6b7280;
  --border: #e8e0f4;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 16px 48px rgba(46, 31, 71, 0.1);
  --btn-height: 52px;
}

/* Full-site pages (contact, faq) — signup.css sets its own body rules */
body.content-page-body {
  background-color: #f9f7fc;
  background-image: url('/assets/backgrounds/Sprinkle.svg');
  background-size: cover;
  background-attachment: fixed;
}

body.content-page-body .main-content {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 56px;
}

.content-page {
  width: min(720px, 100%);
  font-family: 'Assistant', sans-serif;
  color: var(--text);
}

.content-page--wide {
  width: min(860px, 100%);
}

.content-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: clip;
}

.content-card--gradient {
  background: linear-gradient(165deg, #fff 0%, #faf7ff 55%, #f3ecff 100%);
}

.content-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(165deg, #fff 0%, #faf7ff 100%);
}

.content-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-family: 'Secular One', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: var(--brand);
  line-height: 1.25;
  font-weight: 400;
}

.content-title .content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-light);
  font-size: 1.3rem;
  line-height: 1;
}

.content-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.content-body {
  padding: 28px 32px 32px;
}

.content-body > p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: #4b3d66;
}

.content-body > p:last-child {
  margin-bottom: 0;
}

.content-callout {
  margin: 0 32px 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--brand-light);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4b3d66;
}

.content-callout a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-callout a:hover {
  color: var(--brand-dark);
}

.content-page a:not(.btn-primary) {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page a:not(.btn-primary):hover {
  color: var(--brand-dark);
}

/* Forms */
.content-form {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.content-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4b3d66;
  margin-bottom: 6px;
}

.content-form .input,
.content-form input[type='email'],
.content-form input[type='text'],
.content-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.content-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.content-form .input:focus,
.content-form input:focus,
.content-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(120, 81, 169, 0.15);
}

.btn-primary {
  appearance: none;
  width: 100%;
  min-height: var(--btn-height);
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(120, 81, 169, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(120, 81, 169, 0.42);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-response {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}

.form-response:not(:empty) {
  display: block;
}

.form-response.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.form-response.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.form-response.is-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: 14px;
  background: #faf8fd;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(120, 81, 169, 0.25);
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(120, 81, 169, 0.08);
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::marker {
  content: '';
}

.faq-summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-inline-start: auto;
  border-inline-end: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
}

.faq-summary:hover .faq-question {
  color: var(--brand);
}

.faq-summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 10px;
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0 0 0.65rem;
  line-height: 1.6;
  color: #4b3d66;
  font-size: 0.96rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer .faq-note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Legal / markdown prose (privacy, terms) */
.legal-page {
  padding: 28px 32px 36px;
  font-family: 'Assistant', sans-serif;
  color: var(--text);
  line-height: 1.65;
}

.legal-embed .legal-page {
  padding: 20px 24px 28px;
  max-width: none;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-family: 'Secular One', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  color: var(--brand);
  line-height: 1.3;
}

.legal-page h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
  color: var(--brand-dark);
  line-height: 1.35;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type {
  border-top: none;
  margin-top: 1.25rem;
}

.legal-page h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: #4b3d66;
}

.legal-page p {
  margin: 0 0 0.85rem;
  color: #4b3d66;
}

.legal-page ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
  color: #4b3d66;
}

.legal-page li {
  margin-bottom: 0.35rem;
}

.legal-page a {
  color: var(--brand);
  font-weight: 600;
}

.legal-page a:hover {
  color: var(--brand-dark);
}

.legal-page hr {
  margin: 1.75rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.legal-page strong {
  color: var(--text);
}

.legal-meta {
  margin: 0 0 1.25rem;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-light);
  font-size: 0.9rem;
  color: var(--brand-dark);
}

.legal-embed {
  margin: 0;
  background: #fff;
  color: var(--text);
}

@media (max-width: 600px) {
  .content-header,
  .content-body,
  .legal-page {
    padding-inline: 20px;
  }

  .content-callout {
    margin-inline: 20px;
  }
}
