/*
 * Styles for the standalone legal pages (privacy.html, terms.html).
 *
 * Hand-written and served as a static asset rather than going through the Tailwind build:
 * these pages must render correctly with no JavaScript and no bundler involvement, so they
 * stay readable even if the app bundle fails to load. Colours mirror the landing page tokens.
 */

:root {
  --ink: #08080a;
  --panel: rgba(38, 38, 43, 0.5);
  --hairline: rgba(255, 255, 255, 0.1);
  --body: #f5f5f7;
  --secondary: #a8a8b0;
  --muted: #85858e;
  --accent-gradient: linear-gradient(100deg, #a855f7 0%, #ec4899 54%, #f97316 100%);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: var(--ink);
  color: var(--body);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient brand glow, matching the landing page backdrop. */
body::before {
  content: '';
  position: fixed;
  top: -18rem;
  left: 50%;
  width: 44rem;
  height: 34rem;
  transform: translateX(-50%);
  background: rgba(168, 85, 247, 0.16);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
}

/* ----------------------------------------------------------------- header --- */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 3rem;
}

.mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 52%, #f97316 100%);
  box-shadow: 0 6px 18px -4px rgba(236, 72, 153, 0.55);
}

.masthead a {
  color: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.masthead .back {
  margin-left: auto;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.masthead .back:hover {
  color: var(--body);
}

/* ------------------------------------------------------------------- text --- */

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p,
li {
  color: var(--secondary);
  font-size: 0.9375rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  color: var(--body);
  font-weight: 600;
}

a {
  color: #f0a5c9;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Callout for anything the site operator must fill in before publishing. */
.notice {
  margin: 0 0 2rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--panel);
  color: var(--secondary);
  font-size: 0.875rem;
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ----------------------------------------------------------------- footer --- */

.legal-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.legal-footer p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}
