/* MiPose website — shared styles. Colours and fonts match the app. */

:root {
  --bg: #f7f0ee;
  --ink: #292929;
  --text: #4a4340;
  --muted: #6b625e;
  --burgundy: #6b0f2a;
  --burgundy-dark: #520b20;
  --tint: #f1e1de;
  --line: #e6d8d4;
  --card: #ffffff;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Nav ---------- */

.nav {
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wordmark:hover {
  text-decoration: none;
}

.back {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.back:hover {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Legal pages ---------- */

.doc {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

h1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 12px;
}

.doc h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 26px 0 8px;
}

.doc p {
  margin-bottom: 14px;
}

.doc ul {
  margin: 0 0 14px 22px;
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--ink);
}

.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--burgundy);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact / thank you ---------- */

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  gap: 28px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 20px 60px rgba(107, 15, 42, 0.08);
}

.card h1 {
  font-size: 2.2rem;
  text-align: center;
}

.sub {
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.field {
  margin-bottom: 20px;
}

input,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 15, 42, 0.12);
  background: #fff;
}

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

.button {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  background: var(--burgundy);
  border: 0;
  border-radius: 100px;
  padding: 15px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(107, 15, 42, 0.2);
}

.button:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(107, 15, 42, 0.28);
  text-decoration: none;
}

.button:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

.alt {
  text-align: center;
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.hidden {
  display: none;
}

.help {
  width: 100%;
  max-width: 520px;
}

.help h2 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.help details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.help details p {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover {
  color: var(--ink);
}

@media (max-width: 520px) {
  .nav {
    padding: 16px 20px;
  }

  .doc {
    padding: 44px 20px 72px;
  }

  h1 {
    font-size: 2.1rem;
  }

  .card {
    padding: 34px 24px;
  }
}
