/**
 * QuickGigs — legal + help content pages (design tokens only).
 * Reading-width layout, TOC, FAQ accordion, help cards.
 * Do not put legal copy here — styles only.
 */
body.page-content,
body.trust-page {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.25s, color 0.25s;
}

/* ── Nav ── */
.page-content .nav,
.trust-page .nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-content .nav-logo,
.trust-page .nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: normal;
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Without this the transparent fill has nothing to clip against and the
   wordmark renders invisible rather than merely unstyled. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-content .nav-logo,
  .trust-page .nav-logo {
    background: none;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
  }
}

.page-content .nav-right,
.trust-page .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-content .back-btn,
.trust-page .back-btn {
  font-size: 13px;
  /* !important: qg-light-nav.css is appended at runtime and turns this
     accent-coloured in light mode. */
  color: var(--text-muted) !important;
  text-decoration: none;
  font-weight: 600;
}

.page-content .back-btn:hover,
.trust-page .back-btn:hover { color: var(--text) !important; text-decoration: none; }

.page-content .mode-btn,
.trust-page .mode-btn,
.page-content .mode-toggle {
  padding: 6px 14px;
  min-height: 36px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  /* !important throughout: qg-light-nav.css is appended at runtime, after this
     file, and fills the pill with var(--grad-accent) in light mode. */
  background: var(--surface-alt) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

/* ── Reading column ── */
.page-content .content,
.trust-page .content {
  max-width: 42rem; /* ~65–70ch at 16px */
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.page-content .page-label,
.trust-page .page-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}

.page-content .page-title,
.trust-page .page-title {
  font-family: 'DM Sans', sans-serif;
  /* !important, and scoped two classes deep, to beat qg-refine.css's
     `.page-title{font-size:28px !important}` — it is appended at runtime, so
     source order alone loses. Same reason on .section-title below. */
  font-size: 24px !important;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 480px) {
  .page-content .page-title,
  .trust-page .page-title { font-size: 22px !important; }
}

.page-content .page-date,
.page-content .page-sub,
.trust-page .page-date {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.page-content .section,
.trust-page .section {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 72px;
}

/* The TOC and the page date already end in a rule, so the first section's own
   top border would double it. */
.page-content .qg-content-toc + .section,
.page-content .page-date + .section { border-top: none; padding-top: 0; }

.page-content .section-title,
.trust-page .section-title {
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
  line-height: 1.35;
}

.page-content p,
.trust-page p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 72ch;
}

.page-content ul,
.page-content ol,
.trust-page ul,
.trust-page ol {
  padding-left: 1.25rem;
  margin-bottom: 12px;
  max-width: 72ch;
}

.page-content li,
.trust-page li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.page-content strong,
.trust-page strong {
  color: var(--text);
  font-weight: 600;
}

.page-content a,
.trust-page a {
  color: var(--primary);
}

.page-content a:hover,
.trust-page a:hover {
  text-decoration: underline;
}

/* ── Callout boxes ── */
.page-content .info-box,
.trust-page .info-box {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-content .info-box p,
.trust-page .info-box p {
  color: var(--text);
  margin: 0;
}

.page-content .highlight-box,
.trust-page .highlight-box {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  background: var(--danger-soft);
}

.page-content .highlight-box p,
.trust-page .highlight-box p {
  color: var(--danger);
  margin: 0;
}

.page-content .contact-card,
.trust-page .contact-card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 16px;
}

.page-content .contact-card p {
  margin-bottom: 4px;
}

.page-content .service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.page-content .service-card {
  border-radius: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-content .service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.page-content .service-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ── TOC (long legal) ── */
.qg-content-toc {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.qg-content-toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.qg-content-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  columns: 1;
  gap: 24px;
}

@media (min-width: 640px) {
  .qg-content-toc ol {
    columns: 2;
  }
}

.qg-content-toc li {
  break-inside: avoid;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.qg-content-toc a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.qg-content-toc a:hover {
  text-decoration: underline;
}

/* ── Help cards / steps ── */
.page-content .step-card,
.trust-page .step-card,
.qg-help-card {
  border-radius: 16px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.page-content .step-num,
.trust-page .step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.qg-help-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-alt);
  color: var(--primary);
  margin-bottom: 12px;
}

.qg-help-ico .qg-ico {
  width: 20px;
  height: 20px;
}

.page-content .step-card h3,
.trust-page .step-card h3,
.qg-help-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.page-content .step-card p,
.trust-page .step-card p,
.qg-help-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.qg-help-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.qg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.qg-content-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.qg-content-cta:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.qg-content-cta.is-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Guidelines tabs ── */
.page-content .tab-row,
.trust-page .tab-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-content .tab-btn,
.trust-page .tab-btn {
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.page-content .tab-btn.active,
.trust-page .tab-btn.active {
  background: var(--primary);
  color: var(--primary-text) !important;
  border-color: var(--primary) !important;
}

.page-content .tab-panel,
.trust-page .tab-panel {
  display: none;
}

.page-content .tab-panel.active,
.trust-page .tab-panel.active {
  display: block;
}

/* ── FAQ accordion ── */
.page-content .faq-item,
.trust-page .faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}

.page-content .faq-q,
.trust-page .faq-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  line-height: 1.4;
  list-style: none;
  user-select: none;
}

.page-content .faq-q span,
.trust-page .faq-q span {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s;
}

.page-content .faq-item.open .faq-q span,
.trust-page .faq-item.open .faq-q span {
  transform: rotate(45deg);
}

.page-content .faq-a,
.trust-page .faq-a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 0 16px 16px;
  display: none;
  max-width: none;
  margin: 0;
}

.page-content .faq-item.open .faq-a,
.trust-page .faq-item.open .faq-a {
  display: block;
}

/* ── 404 ── */
.qg-err-wrap {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  max-width: 28rem;
  margin: 0 auto;
}

.qg-err-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 8px;
  font-style: normal;
}

.qg-err-wrap .page-title {
  margin-bottom: 12px;
}

.qg-err-wrap .page-date {
  margin-bottom: 28px;
}

/* ── Feedback form ── */
body.page-feedback .content {
  max-width: 32rem;
}

.page-feedback .nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.page-feedback .beta-note {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.page-feedback .field {
  margin-bottom: 18px;
}

.page-feedback .field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.page-feedback .req {
  color: var(--attention);
}

.page-feedback .field-input,
.page-feedback .field-select,
.page-feedback .field-textarea {
  width: 100%;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-sizing: border-box;
}

.page-feedback .field-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239C93AC' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.page-feedback .field-textarea {
  min-height: 140px;
  resize: vertical;
}

.page-feedback .field-input:focus,
.page-feedback .field-select:focus,
.page-feedback .field-textarea:focus {
  border-color: var(--primary);
  outline: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); outline-offset: 0; box-shadow: none;
}

.page-feedback .field-input.is-invalid,
.page-feedback .field-select.is-invalid,
.page-feedback .field-textarea.is-invalid {
  border-color: var(--danger);
}

.page-feedback .field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.page-feedback .msg-box {
  display: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.page-feedback .msg-box.err {
  display: block;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
  color: var(--danger);
}

.page-feedback .msg-box.err[hidden] {
  display: none !important;
}

.page-feedback .qg-help-ico {
  margin-bottom: 16px;
}

.page-feedback .success-icon .qg-ico {
  width: 28px;
  height: 28px;
}

.qg-help-card .section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 10px;
}

.qg-help-card ul:last-child {
  margin-bottom: 0;
}

.page-feedback .submit-btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.page-feedback .submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.page-feedback .footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-feedback .success-screen {
  display: none;
  text-align: center;
  padding: 40px 8px;
}

.page-feedback .success-screen.show {
  display: block;
}

.page-feedback .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--money-soft);
  color: var(--green);
}

.page-feedback .success-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.page-feedback .success-sub {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.page-feedback .home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
  font-weight: 600;
}

/* ── Footer ── */
.page-content .site-footer,
.trust-page .site-footer {
  text-align: center;
  padding: 24px 20px 32px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
  max-width: 42rem;
  margin: 0 auto;
}

.page-content .site-footer a,
.trust-page .site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-content .site-footer a:hover,
.trust-page .site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Footer brand slot rendered by qg-site.js. Same wordmark treatment as the
   nav, one step smaller. */
.page-content .qg-foot-brand,
.trust-page .qg-foot-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  background: var(--grad-wordmark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 2px;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-content .qg-foot-brand,
  .trust-page .qg-foot-brand {
    background: none;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
  }
}

/* Cookie banner (kept from qg-trust) */
#qgCookieBanner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9998;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  display: none;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

#qgCookieBanner.show {
  display: flex;
}

#qgCookieBanner p {
  margin: 0;
  line-height: 1.55;
  flex: 1;
  color: var(--text-muted);
}

#qgCookieBanner a {
  color: var(--primary);
}

#qgCookieBanner button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
