/* Contact, Privacy Policy and Terms of Service pages — /contact, /privacy, /terms.
   Shared frame: white header with logo, centered card, black footer. */

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

:root {
  --brand-blue: #3D6FE8;
  --near-black: #1A1A1A;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #F2F2F2;
  --border: #e0e0e0;
  --white: #FFFFFF;
  --black: #000000;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #F5F5F5;
  color: var(--dark-gray);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { height: 26px; width: auto; display: block; }

.card {
  width: 100%;
  max-width: 720px;
  margin: 24px auto;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--near-black);
  margin-bottom: 6px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--dark-gray);
  margin-bottom: 20px;
}

/* ── Contact form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 5px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--near-black);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--near-black);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(61, 111, 232, 0.15);
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-blue);
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: #2f5cd0; }

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.notice--ok { background: #e8f5e9; color: #1e7d2e; border: 1px solid #b7dfc0; }
.notice--error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }

/* ── Legal documents ── */
.card--legal { padding: 32px; }

.legal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--near-black);
  margin-bottom: 4px;
}

.legal-updated {
  font-size: 13px;
  color: var(--medium-gray);
  margin-bottom: 20px;
}

.card--legal h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--near-black);
  margin: 26px 0 8px;
}

.card--legal h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--near-black);
  margin: 18px 0 6px;
}

.card--legal p {
  margin: 0 0 12px;
}

.card--legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.card--legal li {
  margin-bottom: 6px;
}

.card--legal a {
  color: var(--brand-blue);
}

/* ── Footer ── */
.page-footer {
  margin-top: auto;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 14px 16px;
  font-size: 12px;
}

.page-footer p { margin-bottom: 6px; }

.page-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.page-footer nav a {
  color: #cfd6e4;
  text-decoration: none;
}

.page-footer nav a:hover { color: var(--white); text-decoration: underline; }
