/*
 * Shared styles for every page on lango.gallillio.com.
 *
 * One stylesheet rather than a <style> block per page: two of the five pages
 * are generated by scripts/build-legal.mjs and three are hand-written, so
 * anything inlined would have to be kept in sync across both.
 *
 * Colours match the app's dark theme (#0E1729 ground, #E8ECF4 text).
 */

:root { color-scheme: dark; }

body {
  margin: 0;
  background: #0E1729;
  color: #E8ECF4;
  font: 16px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 24px;
}

h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 24px; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 36px 0 12px; }

p, li { color: #C6D0E0; }
a { color: #7FB0FF; }

hr { border: 0; border-top: 1px solid #24314A; margin: 32px 0; }

ul { padding-left: 20px; }
li { margin: 6px 0; }

/* Wide tables scroll inside their own box rather than the page. */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}
th, td {
  border: 1px solid #24314A;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { color: #E8ECF4; }
td { color: #C6D0E0; }

/* Cross-links to the other required pages. A store reviewer landing on any one
   page can reach the rest from here. */
nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid #24314A;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
nav a { font-size: 0.9rem; }

/* The landing page is a centred hero, not a document column. */
body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
body.home main { max-width: 560px; text-align: center; padding: 32px 20px 12px; }
body.home h1 { margin: 0 0 12px; }
body.home p { margin: 0; }
body.home nav { border-top: 0; justify-content: center; padding-bottom: 24px; }
