/* Beauby — legal notice page */

body {
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  overflow-wrap: break-word; /* long emails and URLs never overflow on phones */
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(46rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0.5rem max(var(--gutter), env(safe-area-inset-right)) 3rem max(var(--gutter), env(safe-area-inset-left));
}

h1, h2 {
  font-family: "Matcha Style", cursive;
  font-weight: normal;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--turquoise-green);
}

.updated {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--calamine-blue);
}

/* Each legal section sits on a white card */
section {
  position: relative;
  margin-top: clamp(1rem, 3vw, 1.5rem);
  padding: clamp(1rem, 3.5vw, 1.5rem) clamp(1.1rem, 4vw, 1.75rem) clamp(1.1rem, 4vw, 1.75rem);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(78, 155, 201, 0.12);
}

main > p.updated + section { margin-top: 2rem; }

h2 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--calamine-blue);
  margin-bottom: 0.5rem;
}

p + p, p + ul, ul + p { margin-top: 0.75rem; }

ul { padding-left: 1.25rem; }

address { font-style: normal; }

main a {
  color: var(--grenadine-pink);
  text-decoration: none;
}

@media (hover: hover) {
  main a:hover { color: var(--turquoise-green); }
}
