/* Legal / support / updates pages — built on the shared tokens in styles.css */

.legal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.legal-hero {
  background:
    radial-gradient(36rem 20rem at 50% -20%, rgba(221, 32, 42, 0.06), transparent 70%),
    var(--wash);
  padding: calc(var(--nav-h) + 5rem) 1.25rem 4rem;
  text-align: center;
}

.legal-hero-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.legal-hero .lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.legal-body {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  flex: 1;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-clauses {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.legal-clause {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.25rem 0.5rem;
}

.legal-num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-3);
  padding-top: 0.2rem;
}

.legal-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(10, 10, 10, 0.78);
}

.legal-text strong {
  color: var(--ink);
  font-weight: 700;
}

.legal-text a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(221, 32, 42, 0.35);
  transition: text-decoration-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.legal-text a:hover {
  color: var(--red-deep);
  text-decoration-color: currentColor;
}

/* —— Support —— */
.support-hero {
  background:
    radial-gradient(36rem 20rem at 50% -20%, rgba(221, 32, 42, 0.06), transparent 70%),
    var(--wash);
  padding: calc(var(--nav-h) + 5rem) 1.25rem 4rem;
  text-align: center;
}

.support-hero-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.support-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.support-hero .lead {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.support-hero .sub {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--ink-3);
}

.support-body {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  flex: 1;
}

.support-body h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.faq-item:hover {
  border-color: var(--line-2);
}

.faq-item[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform var(--dur-med) var(--ease-spring);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item .faq-a {
  padding: 0 1.25rem 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  overflow: hidden;
  transition: height var(--dur-med) var(--ease);
}

.faq-item .faq-a a {
  color: var(--red);
  font-weight: 600;
}

.support-contact {
  padding: 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--wash);
}

.support-contact h2 {
  margin-top: 0;
}

.support-contact p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.support-contact a.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
  transition: color var(--dur-fast) var(--ease);
}

.support-contact a.mail:hover {
  color: var(--red-deep);
}

/* —— Updates —— */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--paper);
  transition: border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.update-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}

.update-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.update-card .version {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.update-card .date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.update-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.update-card li + li {
  margin-top: 0.375rem;
}

.update-card li::marker {
  color: var(--red);
}
