/* ===== Shared page-section wrapper ===== */
.page-section { padding-top: 1.5rem; padding-bottom: 3rem; }

.page-title { font-size: 1.75rem; font-weight: 700; color: var(--ink); margin-bottom: 1.5rem; }
@media (min-width: 640px) { .page-title { font-size: 2.5rem; } }
.page-title--center { text-align: center; }

.content-card {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (min-width: 640px) { .content-card { padding: 2.5rem; } }
.content-card--narrow { max-width: 48rem; }

/* ===== Contact Page ===== */
.contact-header-image { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); height: 200px; margin-bottom: 1.5rem; background: var(--bg); }
@media (min-width: 640px) { .contact-header-image { height: 240px; } }
.contact-header-image img { width: 100%; height: 100%; object-fit: cover; }

.form-success {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  text-align: center;
}
.form-success__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-success h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.form-success p { font-size: 0.8rem; color: var(--ink-soft); max-width: 26rem; margin: 0 auto; line-height: 1.6; }

.form-error {
  background: #FDEEEF;
  border: 1px solid #C0435580;
  color: #7A263A;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form__field label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); }
.contact-form__field input,
.contact-form__field textarea {
  padding: 0.75rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  resize: vertical;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: rgba(85,85,85,.5); }
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: none; border-color: var(--accent); }
.contact-form__submit { width: 100%; padding: 0.9rem; font-size: 0.8rem; }
.contact-form__fine { font-size: 0.68rem; color: var(--ink-soft); text-align: center; }

/* ===== Legal Pages ===== */
.legal-page { max-width: 52rem; }
.legal-page__header { display: flex; align-items: center; gap: 0.9rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.legal-page__icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legal-page__header h1 { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .legal-page__header h1 { font-size: 2.2rem; } }

.legal-content { display: flex; flex-direction: column; gap: 2rem; color: var(--ink); }
.legal-intro { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.legal-intro p, .legal-section p { font-size: 0.85rem; line-height: 1.7; color: var(--ink-soft); }
.legal-section { display: flex; flex-direction: column; gap: 0.75rem; }
.legal-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 0.75rem; }
.legal-section h3 { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.legal-section ul { list-style: disc; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.legal-section li { font-size: 0.85rem; line-height: 1.7; color: var(--ink-soft); }
.legal-subsection { display: flex; flex-direction: column; gap: 0.3rem; }

/* ===== 404 ===== */
.notfound { text-align: center; }
.notfound__code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .notfound__code { font-size: 7rem; } }
.notfound__desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 30rem;
  margin: 0 auto 2rem;
}
.notfound-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.notfound-search:focus-within { border-color: var(--accent); }
.notfound-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--ink);
  font-family: var(--font-body);
}
.notfound-search input::placeholder { color: rgba(85,85,85,.55); }
.notfound__divider { height: 1px; background: var(--border); max-width: 28rem; margin: 2rem auto; }
.notfound__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.notfound__topics { justify-content: center; margin-bottom: 2rem; }
.notfound__home { margin: 0 auto; }
