/* MamaJourney — Static Privacy Website */

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

:root {
  --color-bg: #fbf8f6;
  --color-bg-alt: #f3eeea;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-muted: #5c5650;
  --color-accent: #9b5a5a;
  --color-accent-hover: #7d4545;
  --color-border: #e5ddd6;
  --color-focus: #c4857a;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --content-width: 780px;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --radius: 8px;
  --header-height: 4rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  width: 100%;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 248, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-height);
  min-width: 0;
}

.site-logo {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
  min-height: 2.75rem;
}

.site-logo__icon {
  order: 1;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.site-logo__wordmark {
  order: 2;
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(14rem, 52vw);
  flex-shrink: 1;
  min-width: 0;
  object-fit: contain;
  object-position: left center;
}

/* Navigation */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  justify-content: flex-end;
}

.site-nav a {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  min-height: 2.75rem;
  line-height: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
}

.site-nav a:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

.site-nav a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

.site-nav__toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.site-nav__toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.site-nav__toggle-icon {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 1rem;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background-color: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.site-nav__toggle-bar::before {
  content: "";
  top: -6px;
}

.site-nav__toggle-bar::after {
  content: "";
  top: 6px;
}

.site-header--nav-open .site-nav__toggle-bar {
  transform: translateY(-50%) rotate(45deg);
}

.site-header--nav-open .site-nav__toggle-bar::before {
  opacity: 0;
}

.site-header--nav-open .site-nav__toggle-bar::after {
  top: 0;
  transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__toggle-bar,
  .site-nav__toggle-bar::before,
  .site-nav__toggle-bar::after {
    transition: none;
  }
}

/* Main */

main {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
  min-width: 0;
}

/* Home page */

.hero {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
}

.hero__title {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-sm);
}

.hero__logo {
  display: block;
  height: clamp(2rem, 6vw, 2.75rem);
  width: auto;
  max-width: min(16rem, 88vw);
  margin: 0 auto;
  object-fit: contain;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--color-accent);
  margin: 0 0 var(--space-lg);
  font-weight: 500;
}

.hero__description {
  color: var(--color-text-muted);
  margin: 0 auto var(--space-xl);
  max-width: 36rem;
}

.hero__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__links a {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  min-height: 2.75rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  min-width: 16rem;
  text-align: center;
}

.hero__links a:hover {
  border-color: var(--color-accent);
  background-color: var(--color-bg-alt);
}

/* Page header */

.page-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.02em;
}

.page-header__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.page-header__date {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Table of contents */

.toc {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.toc h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: var(--space-xs);
}

.toc a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.toc a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Legal content */

.legal-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-top: var(--space-sm);
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.legal-content h2:first-of-type {
  margin-top: var(--space-lg);
}

.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

.legal-content p {
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.legal-content ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.legal-content .intro {
  color: var(--color-text-muted);
}

.legal-content .section-label {
  font-weight: 600;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

/* Table */

.table-wrapper {
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 32rem;
}

th,
td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg-alt);
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

/* Contact page */

.contact-content {
  max-width: 36rem;
}

.contact-content p {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
}

.contact-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  word-break: break-all;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.site-footer__brand {
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.site-footer__tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
}

.site-footer__links a {
  font-size: 0.9375rem;
}

.site-footer__email {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

.site-footer__email a {
  word-break: break-all;
}

/* Layout wrapper */

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

/* Mobile navigation */

@media (max-width: 600px) {
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    min-height: var(--header-height);
  }

  .site-logo {
    flex: 1;
    min-width: 0;
  }

  .site-nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    order: 1;
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
  }

  .site-header--nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    line-height: 2.75rem;
    padding: 0 var(--space-sm);
  }

  main {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
  }

  .toc {
    padding: var(--space-md);
  }

  .hero__links a {
    width: 100%;
    min-width: unset;
  }

  .site-logo__icon {
    height: 2.125rem;
    width: 2.125rem;
  }

  .site-logo__wordmark {
    height: 2rem;
    max-width: min(11.5rem, 48vw);
  }

  .table-wrapper {
    overflow-x: visible;
    border: none;
    background: transparent;
    padding: 0;
  }

  .table-wrapper table {
    min-width: 0;
    width: 100%;
  }

  .table-wrapper thead {
    display: none;
  }

  .table-wrapper tbody tr {
    display: block;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-surface);
  }

  .table-wrapper tbody tr:last-child {
    margin-bottom: 0;
  }

  .table-wrapper td {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .table-wrapper td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.125rem;
  }

  .table-wrapper td:not(:last-child) {
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
  }
}
