/* Godbathing™ — shared styles for legal pages (privacy, terms).
   Matches the landing page design system. */

:root {
  --paper: #fffdf9;
  --wash: #f7f2e9;
  --ink: #24211d;
  --muted: #625d55;
  --line: #ddd2c3;
  --accent: #6a2c91;
  --accent-dark: #52226f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 46rem;
  --wide: 68rem;
  --page-gutter: clamp(1.25rem, 5vw, 2rem);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  min-width: 0;
  overflow-x: clip;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 3px solid #c3a0dd;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0.35rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: max(var(--page-gutter), env(safe-area-inset-left, 0px))
    max(var(--page-gutter), env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(36, 33, 29, 0.1);
  background: var(--paper);
}

.site-header__inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 0;
  flex-shrink: 0;
}

.wordmark img,
.site-logo {
  height: 2rem;
  width: auto;
  max-height: 2rem;
  max-width: 8.5rem;
  display: block;
  object-fit: contain;
}

.wordmark:hover {
  color: var(--accent);
}

.header-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  margin-inline-start: auto;
  text-align: end;
}

/* Legal document */
.legal {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding:
    clamp(2rem, 6vw, 4rem)
    max(var(--page-gutter), env(safe-area-inset-right, 0px))
    max(3rem, calc(2.5rem + env(safe-area-inset-bottom, 0px)))
    max(var(--page-gutter), env(safe-area-inset-left, 0px));
  overflow-wrap: break-word;
}

.legal__back {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 6.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal__updated {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal__entity {
  margin: 0 0 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.8vw, 1.6rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.legal h3 {
  margin: 1.75rem 0 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}

.legal p {
  margin: 0 0 1.1rem;
}

.legal ul {
  margin: 0 0 1.1rem;
  padding-inline-start: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal__note {
  margin: 2.25rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--wash);
  border-radius: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal__note p:last-child {
  margin-bottom: 0;
}

/* Contact form */
.contact-form {
  margin-top: 0.5rem;
}

.contact-form__field {
  margin-bottom: 1.15rem;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form__field input:focus-visible,
.contact-form__field select:focus-visible,
.contact-form__field textarea:focus-visible {
  outline: 3px solid #c3a0dd;
  outline-offset: 2px;
  border-color: var(--accent);
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.contact-form__submit:focus-visible {
  outline: 3px solid #c3a0dd;
  outline-offset: 4px;
}

.contact-form__note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-form__note:empty {
  display: none;
}

/* Footer — match index.html */
.site-footer {
  padding: 1.75rem 0;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--accent-dark);
}

/* Same horizontal inset as index.html footer (not the wider legal gutters) */
.site-footer .wrap {
  width: min(var(--wide), calc(100% - 2rem));
  padding-inline: 0;
}

@media (max-width: 47.99rem) {
  .site-header__inner {
    gap: 0.5rem;
    min-height: 3.5rem;
  }

  .wordmark {
    flex: 0 1 auto;
    min-width: 0;
  }

  .wordmark img,
  .site-logo {
    height: 1.75rem;
    max-height: 1.75rem;
    max-width: min(9.5rem, 46vw);
  }

  .header-link {
    white-space: nowrap;
    font-size: clamp(0.6875rem, 2.85vw, 0.875rem);
    line-height: 1.2;
  }
}

@media (max-width: 23.5rem) {
  :root {
    --page-gutter: 1.5rem;
  }

  .legal ul {
    padding-inline-start: 1rem;
  }

  .legal h2 {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
