/* ==========================================================================
   UrineColorCheck — page.css
   Static pages: About / Contact / Privacy Policy / Disclaimer / Editorial Policy.
   Layout: single centered column, max 760px. No sidebar.
   ========================================================================== */

/* ==========================================================================
   1. Container
   ========================================================================== */

/* base.css 已有 .container--narrow = 760px + padding，无需重复定义。
   这里只处理上下留白。 */

.static-page {
  padding-block: var(--sp-2) var(--sp-8);
}

@media (min-width: 768px) {
  .static-page {
    padding-block: var(--sp-3) var(--sp-9);
  }
}

/* ==========================================================================
   2. Breadcrumb override
   ========================================================================== */

.breadcrumb--page {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
}

@media (min-width: 768px) {
  .breadcrumb--page {
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-6);
  }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.static-page__hero {
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .static-page__hero {
    margin-bottom: var(--sp-7);
  }
}

.static-page__title {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .static-page__title {
    font-size: var(--fs-3xl);
  }
}

.static-page__lead {
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-base);
  color: var(--c-muted);
}

@media (min-width: 768px) {
  .static-page__lead {
    font-size: var(--fs-lg);
  }
}

/* ==========================================================================
   4. Body typography (prose handled by base.css; tune spacing here)
   ========================================================================== */

.static-page__body {
  max-width: var(--content-max);
}

.static-page__body h2 {
  margin: var(--sp-7) 0 var(--sp-3);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}

@media (min-width: 768px) {
  .static-page__body h2 {
    font-size: var(--fs-xl);
  }
}

.static-page__body h2:first-of-type {
  margin-top: var(--sp-5);
}

.static-page__body h3 {
  margin: var(--sp-6) 0 var(--sp-2);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}

.static-page__body p,
.static-page__body ul,
.static-page__body ol {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
}

.static-page__body ul,
.static-page__body ol {
  padding-left: 1.25rem;
}

.static-page__body li + li {
  margin-top: var(--sp-2);
}

.static-page__body > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   5. Contact form
   ========================================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background-color: var(--c-surface-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .contact-form {
    padding: var(--sp-6);
  }
}

/* ---------- Field ---------- */

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* ---------- Label ---------- */

.contact-form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

/* ---------- Input / textarea ---------- */

.contact-form__input {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background-color: var(--c-white);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.contact-form__input::placeholder {
  color: var(--c-muted);
}

.contact-form__input:hover {
  border-color: var(--c-primary);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}

/* Fallback for keyboard users on older browsers */
.contact-form__input:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

.contact-form__input--textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------- Note ---------- */

.contact-form__note {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--c-muted);
}

/* ---------- Submit button: reuse .btn .btn--primary from components.css ---------- */

/* ==========================================================================
   6. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .contact-form__input {
    transition: none;
  }
}