/* Styles for the text-heavy legal and support pages. Reuses the design tokens
   from styles.css so these pages read as part of the same site. */

.doc {
  padding: 40px 0 90px;
}

.doc-shell {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.doc-header {
  margin-bottom: 34px;
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
}

.doc .doc-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-body {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 52px);
}

.doc-body > :first-child {
  margin-top: 0;
}

.doc-body h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.2em 0 0.5em;
}

.doc-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.6em 0 0.4em;
}

.doc-body p,
.doc-body li {
  color: var(--ink);
  line-height: 1.72;
}

.doc-body p {
  margin: 0.8em 0;
}

.doc-body ul {
  margin: 0.8em 0;
  padding-left: 1.3em;
}

.doc-body li {
  margin: 0.45em 0;
}

.doc-body a {
  color: var(--red-dark);
  text-underline-offset: 3px;
}

.doc-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.96rem;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-body th {
  font-weight: 600;
  background: var(--bg-2);
}

.doc-body tbody tr:last-child td {
  border-bottom: none;
}

/* Contact / highlight block */
.doc-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 1.6em 0;
}

.doc-card h2,
.doc-card h3 {
  margin-top: 0;
}

.doc-card p:last-child {
  margin-bottom: 0;
}

/* Support page FAQ */
.doc-faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin: 12px 0;
  overflow: hidden;
}

.doc-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

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

.doc-faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1;
  flex: none;
}

.doc-faq details[open] summary::after {
  content: "–";
}

.doc-faq details > :not(summary) {
  padding: 0 20px;
}

.doc-faq details > :last-child {
  padding-bottom: 18px;
}


@media (max-width: 640px) {
  .doc-body table,
  .doc-body thead,
  .doc-body tbody,
  .doc-body tr,
  .doc-body th,
  .doc-body td {
    display: block;
  }

  .doc-body thead {
    display: none;
  }

  .doc-body tbody tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .doc-body tbody tr:last-child {
    border-bottom: none;
  }

  .doc-body td {
    border: none;
    padding: 3px 0;
  }

  .doc-body td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}
