/* Shared styling for RedForge legal pages. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600&family=Inter:wght@400;500&family=JetBrains+Mono:wght@500&display=swap');

:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f2efe8;
  color: #272321;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(161, 18, 18, 0.22); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.nav {
  border-bottom: 1px solid #d7d0c6;
  position: sticky; top: 0;
  background: rgba(242, 239, 232, 0.92);
  backdrop-filter: blur(12px);
}
header.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #272321; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.brand span { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: #272321; letter-spacing: -0.02em; }
.brand .fx { color: #a11212; }
.back { color: #605951; text-decoration: none; font-size: 13px; }
.back:hover { color: #a11212; }

main.wrap { padding-top: 72px; padding-bottom: 96px; }
h1 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.035em; line-height: 1.05;
  margin: 0 0 8px;
}
.updated { color: #706960; font-size: 12px; margin: 0 0 40px; }
h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; color: #272321; margin: 40px 0 12px; letter-spacing: -0.02em; }
p, li { color: #605951; font-size: 15px; }
strong { color: #272321; font-weight: 600; }
a { color: #a11212; }
a:hover { color: #7f1010; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
hr { border: none; border-top: 1px solid #d7d0c6; margin: 40px 0; }
pre { background: #fff; border: 1px solid #d7d0c6; border-radius: 10px; padding: 18px; overflow-x: auto; color: #4d4741; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.6; }
footer.legal { border-top: 1px solid #d7d0c6; background: #ebe6df; }
footer.legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 28px 24px; color: #706960; font-size: 13px; }
a:focus-visible, .back:focus-visible, .brand:focus-visible { outline: 2px solid rgba(161,18,18,0.7); outline-offset: 3px; border-radius: 4px; }
