:root {
  --screen: #eee9e1;
  --surface: #f5f1ea;
  --text: #2a2622;
  --text-muted: #5a524a;
  --tint: #0a7ea4;
  --border: #d5cec4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background: var(--screen);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--tint);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.legal-header a {
  text-decoration: none;
  font-weight: 600;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9375rem;
}

.legal-nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.legal-nav a.is-active {
  color: var(--text);
  font-weight: 600;
}

.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.legal-main h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.legal-version {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-section + .legal-section {
  margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.legal-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.legal-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 32px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.pricing-main {
  max-width: 1200px;
}

.pricing-main h1 {
  margin-bottom: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
  align-items: stretch;
}

.pricing-card {
  padding: 20px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.pricing-card--highlight {
  border-color: var(--tint);
  box-shadow: 0 8px 24px rgba(10, 126, 164, 0.08);
}

.pricing-card h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.pricing-price {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--tint);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-detail {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.pricing-features {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pricing-features li + li {
  margin-top: 6px;
}

.pricing-note {
  text-align: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.85;
}

.store-badge img {
  display: block;
  height: 40px;
  width: auto;
}

.pricing-disclaimer {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36rem;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .legal-nav {
    gap: 8px 14px;
    font-size: 0.875rem;
  }

  .legal-main {
    padding: 24px 16px 40px;
  }

  .legal-main h1 {
    font-size: 1.75rem;
  }

  .legal-version {
    margin-bottom: 20px;
    font-size: 0.9375rem;
  }

  .legal-section p,
  .faq-item p,
  .contact-primary p,
  .pricing-disclaimer {
    font-size: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-card h2 {
    font-size: 1.375rem;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .pricing-features {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .legal-header {
    padding: 18px 32px;
  }

  .legal-main {
    padding: 40px 32px 56px;
  }

  .pricing-page .legal-main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .pricing-grid {
    gap: 20px;
  }

  .pricing-card {
    padding: 22px 24px;
  }
}

@media (min-width: 1040px) {
  .pricing-grid {
    gap: 24px;
  }

  .pricing-card {
    padding: 24px 28px;
  }
}

.pricing-page .legal-footer {
  max-width: 1200px;
}

.contact-primary {
  margin-bottom: 28px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-primary h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.contact-primary p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--screen);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

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

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--tint);
  outline-offset: 1px;
}

.contact-submit {
  justify-self: start;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--tint);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-submit:hover {
  opacity: 0.92;
}

.contact-hidden {
  margin: 0;
}

.contact-crisis p {
  margin: 0;
  color: var(--text-muted);
}

.legal-section p + p {
  margin-top: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--text-muted);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--text-muted);
}
