/*
 * baber.app — content / legal page styles.
 *
 * Used by help, contact, privacy and refund. Extends styles.css with
 * a long-form reading layout: tight kicker, big editorial h1, an
 * optional table of contents on the left, and a centered prose
 * column on the right.
 */

.page-shell { max-width: var(--max); margin: 0 auto; padding: 48px 48px 80px; }

.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 48px;
}
.page-hero .kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 860px;
}
.page-hero p {
  font-size: 17px;
  color: var(--dim);
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}
.page-hero .updated {
  font-size: 12px;
  color: var(--dim);
  margin-top: 16px;
  letter-spacing: 0.04em;
}

/* Layout — TOC + prose */
.page-content { display: grid; grid-template-columns: 240px 1fr; gap: 80px; }
.page-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  font-size: 12px;
  font-weight: 600;
}
.page-toc .toc-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-toc a {
  display: block;
  padding: 6px 0;
  color: var(--dim);
  cursor: pointer;
  position: relative;
  padding-left: 14px;
}
.page-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1px;
  background: var(--dim);
  transform: translateY(-50%);
}
.page-toc a:hover { color: var(--ink); }
.page-toc a.active { color: var(--ink); font-weight: 700; }
.page-toc a.active::before { width: 8px; background: var(--ink); height: 2px; }

/* Prose */
.page-prose { font-size: 16px; line-height: 1.65; color: var(--ink); max-width: 720px; }
.page-prose section + section { margin-top: 56px; }
.page-prose h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  scroll-margin-top: 100px;
}
.page-prose h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.005em;
  margin: 24px 0 8px;
}
.page-prose p { margin: 0 0 12px; color: var(--ink); }
.page-prose ul {
  margin: 12px 0 16px;
  padding-left: 18px;
}
.page-prose ul li {
  margin-bottom: 6px;
  padding-left: 4px;
}
.page-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-prose strong { font-weight: 700; }
.page-prose code {
  background: var(--tint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: "SF Mono", Menlo, monospace;
}

/* Topic cards on the help page */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
.topic-card {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}
.topic-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.topic-card p {
  font-size: 13px;
  color: var(--dim);
  margin: 0;
  line-height: 1.5;
}

/* FAQ details */
.faq details {
  border-top: 1px solid var(--hair);
  padding: 20px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--dim);
  transition: transform 0.2s ease;
  line-height: 0.8;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.6;
}

/* Contact form + cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 16px;
  background: #fff;
}
.contact-card .kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.contact-card p { margin: 0 0 12px; font-size: 14px; color: var(--dim); }
.contact-card a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px;
  background: #fff;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.contact-form label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: 0;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .submit {
  width: 100%;
  padding: 14px 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  margin-top: 6px;
}
.contact-form .submitted {
  display: none;
  padding: 16px 18px;
  background: var(--tint);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}
.contact-form.sent .submit { display: none; }
.contact-form.sent .submitted {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  padding: 20px 18px;
  background: var(--tint);
  border-radius: 12px;
  margin-top: 12px;
  font-size: 14px;
}
.contact-form .submitted strong {
  font-weight: 800;
  font-size: 15px;
}
.contact-form .submitted a {
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .page-shell { padding: 32px 18px 64px; }
  .page-hero { padding: 24px 0 28px; margin-bottom: 32px; }
  .page-hero h1 { font-size: 36px; }
  .page-content { grid-template-columns: 1fr; gap: 32px; }
  .page-toc { position: static; }
  .topic-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}
