/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * Shared styling for the static legal pages (privacy.html, terms.html,
 * refund-policy.html). These sit outside the React bundle and outside
 * Tailwind, so they carry their own small stylesheet - deliberately, so
 * they keep rendering if the app bundle ever fails to load. Colors mirror
 * the app's "Engineered Dough" palette.
 */

:root {
  --oat: #fdfcf8;
  --charcoal: #2c2a26;
  --charcoal-500: #6b665e;
  --terracotta: #b85c38;
  --rule: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--oat);
  color: var(--charcoal);
  font-family: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

header.site img {
  width: 2.5rem;
  height: 2.5rem;
}

header.site a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.updated {
  color: var(--charcoal-500);
  font-size: 0.8rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.6rem;
}

p,
li {
  font-size: 0.94rem;
  color: #3f3b35;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--terracotta);
}

/* Marks a value the operator still has to supply. Deliberately loud: these
   pages are scaffolding, and an unfilled placeholder shipping to production
   should be impossible to miss on the page itself. */
.todo {
  background: #fff3cd;
  border-bottom: 2px solid #e0a800;
  padding: 0 0.25rem;
  font-weight: 600;
  color: #6b4e00;
}

.notice {
  background: #fff3cd;
  border: 1px solid #e0a800;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.86rem;
  color: #6b4e00;
}

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
}

footer.site a {
  color: var(--charcoal-500);
  text-decoration: none;
  font-weight: 600;
}

footer.site a:hover {
  color: var(--terracotta);
}
