<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="icon" type="image/png" href="/static/favicon.png" />
  <title>{% block title %}CleanCopy{% endblock %}</title>
  <style>
    @font-face {
      font-family: "CascadiaCode";
      src: url("/static/fonts/CaskaydiaCoveNerdFont-Regular.ttf") format("truetype");
      font-weight: normal;
      font-style: normal;
    }

    @font-face {
      font-family: "CascadiaCode";
      src: url("/static/fonts/CaskaydiaCoveNerdFont-Bold.ttf") format("truetype");
      font-weight: bold;
      font-style: normal;
    }

    :root {
      --color-bg-base: #1c2128;
      --color-bg-elevated: #22272e;
      --color-border-subtle: #2d333b;
      --color-border-muted: #444c56;
      --color-text-primary: #adbac7;
      --color-text-secondary: #768390;
      --color-text-emphasis: #cdd9e5;
      --color-accent: #b39cd0;
      --color-accent-hover: rgba(179, 156, 208, 0.85);
      --color-accent-text-on: #1c2128;
      --color-success: #4ade80;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html,
    body,
    .container {
      height: 100%;
    }

    body {
      display: flex;
      flex-direction: column;
      font-family: "CascadiaCode", monospace;
      background: var(--color-bg-base);
      color: var(--color-text-primary);
      line-height: 1.7;
    }

    .container {
      display: flex;
      flex-direction: column;
      max-width: 720px;
      margin: 0 auto;
      padding: 2rem;
      padding-bottom: 0;
    }

    main {
      flex: 1;
    }

    h1 {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      color: var(--color-accent);
    }

    h2 {
      font-size: 1.2rem;
      margin-top: 2rem;
      margin-bottom: 0.5rem;
      color: var(--color-accent);
    }

    p {
      margin-bottom: 1rem;
    }

    ul,
    ol {
      margin-bottom: 1rem;
    }

    ul {
      padding-left: 1.5rem;
    }

    ol {
      padding-left: 2.5rem;
    }

    li {
      margin-bottom: 0.4rem;
    }

    a {
      color: var(--color-accent);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .back {
      display: inline-block;
      margin-bottom: 1.5rem;
    }

    .topnav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 2rem;
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--color-border-subtle);
    }

    .topnav-brand {
      font-size: 1.1rem;
      font-weight: bold;
      color: var(--color-accent);
      text-decoration: none;
    }

    .topnav-links a {
      color: var(--color-text-primary);
      text-decoration: none;
      margin-left: 1.5rem;
      font-size: 0.95rem;
    }

    .topnav-links a:hover {
      color: var(--color-accent);
    }

    footer {
      margin-top: 2rem;
      padding: 1rem 0;
      border-top: 1px solid var(--color-border-subtle);
      color: var(--color-text-secondary);
      font-size: 0.9rem;
    }

    footer a {
      color: var(--color-accent);
      text-decoration: none;
    }
  </style>
  {% block head %}{% endblock %}
</head>

<body>
  <div class="container">
    <nav class="topnav">
      <a href="/" class="topnav-brand">CleanCopy</a>
      <div class="topnav-links">
        <a href="/docs">Docs</a>
      </div>
    </nav>
    <main>
    {% block content %}{% endblock %}
    </main>
    <footer>
      <div><a href="/terms">Terms</a> &middot; <a href="/refunds">Refunds</a> &middot; <a href="/privacy">Privacy</a></div>
      <p>&copy; 2026 CleanCopy. All rights reserved.</p>
    </footer>
  </div>
  <!-- Simple Analytics - 100% privacy-first analytics -->
  <script async src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
  <noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
</body>

</html>
