update static site with privacy and terms

This commit is contained in:
2026-11-09 20:24:28 +01:00
parent cae4e35a70
commit 9d3dd426db
6 changed files with 695 additions and 9 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
__SITE_ADDRESS__ {
root * /var/www/innersquare
encode zstd gzip
try_files {path}.html {path}
file_server
header {
@@ -14,6 +15,6 @@ __SITE_ADDRESS__ {
@immutable path /fonts/* /favicon.ico
header @immutable Cache-Control "public, max-age=31536000, immutable"
@html path / /index.html
@html path / /index.html /privacy /terms-conditions
header @html Cache-Control "no-cache"
}
+35 -8
View File
@@ -6,14 +6,20 @@ newsletter form, and no JavaScript — just static files and Caddy.
```
deploy/static/
├── index.html # page + inline CSS; uses the app's real brand tokens
├── fonts/ # DM Sans + DM Serif Display woff2 files
├── favicon.ico # copied from priv/static
├── Caddyfile # site block template; rendered by deploy.sh --caddy
├── deploy.sh # upload files; optional marked Caddy block
├── index.html # page + inline CSS; uses the app's real brand tokens
├── privacy.html # privacy policy, served at /privacy
├── terms-conditions.html # terms, served at /terms-conditions
├── legal.css # shared styles for the legal pages
├── fonts/ # DM Sans + DM Serif Display woff2 files
├── favicon.ico # copied from priv/static
├── Caddyfile # site block template; rendered by deploy.sh --caddy
├── deploy.sh # upload files; optional marked Caddy block
└── README.md
```
The Caddyfile uses `try_files {path}.html {path}` so `/privacy` and
`/terms-conditions` serve the matching `.html` files without a redirect.
## Preview locally
```sh
@@ -21,6 +27,26 @@ python3 -m http.server 8080 --directory deploy/static
# open http://localhost:8080
```
Python maps URLs directly to files, so it serves `/privacy.html` and
`/terms-conditions.html` but not the extensionless `/privacy` or
`/terms-conditions` links. Those depend on Caddy's `try_files`.
To preview the exact production routing, run the Caddyfile locally:
```sh
sed -e 's#__SITE_ADDRESS__#:8098#' \
-e 's#/var/www/innersquare#/srv#' \
deploy/static/Caddyfile > /tmp/Caddyfile.local
docker run --rm -it -p 8098:8098 \
-v "$PWD/deploy/static:/srv:ro" \
-v /tmp/Caddyfile.local:/etc/caddy/Caddyfile:ro \
caddy:2-alpine \
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile
```
Then open `http://localhost:8098/`, `/privacy` and `/terms-conditions`.
The page is deliberately light-only — it uses the brand's paper palette
regardless of the visitor's OS theme. It references `/fonts/...` and
`/favicon.ico` from the site root, so preview it at the root (as above), not
@@ -77,7 +103,7 @@ Pass `--caddy` and a `SITE_ADDRESS` to have the script add or update the site
block:
```sh
SITE_ADDRESS="innersquarechess.com, www.innersquarechess.com" \
SITE_ADDRESS="innersquare.app, www.innersquare.app" \
VPS_HOST=203.0.113.10 \
VPS_USER=ubuntu \
./deploy/static/deploy.sh --caddy
@@ -110,7 +136,7 @@ the main Caddyfile:
```sh
REMOTE_CADDYFILE=/etc/caddy/conf.d/innersquare.caddy \
SITE_ADDRESS=innersquarechess.com \
SITE_ADDRESS=innersquare.app \
VPS_HOST=203.0.113.10 \
VPS_USER=ubuntu \
./deploy/static/deploy.sh --caddy
@@ -126,7 +152,8 @@ Optional overrides: `SSH_PORT`, `WEB_ROOT` (default `/var/www/innersquare`),
## What this page deliberately does not do
- **No newsletter signup** — that waits on real mail delivery (#84) and the
gated app (#116).
gated app (#116). The legal pages are linked from the footer so the public
site has a privacy policy and terms while the signup is still gated.
- **No analytics, cookies, or JavaScript.**
- **No indexing** — `robots.txt` is absent and Caddy sends
`X-Robots-Tag: noindex, nofollow` plus the page has a robots meta tag.
+15
View File
@@ -454,6 +454,17 @@
font-size: 11px;
}
.footer-links {
display: flex;
gap: 18px;
color: var(--color-muted);
font-size: 12px;
}
.footer-links a:hover {
color: var(--color-body);
}
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
@@ -685,6 +696,10 @@
</a>
<p>Short, focused endgame training.</p>
</div>
<nav class="footer-links" aria-label="Legal">
<a href="/privacy">Privacy</a>
<a href="/terms-conditions">Terms</a>
</nav>
<small>&copy; 2026 Inner Square Chess</small>
</footer>
</body>
+277
View File
@@ -0,0 +1,277 @@
@font-face {
font-family: "DM Sans";
font-style: normal;
font-weight: 100 1000;
font-display: swap;
src: url("/fonts/dm-sans-variable.woff2") format("woff2");
}
@font-face {
font-family: "DM Serif Display";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("/fonts/dm-serif-display.woff2") format("woff2");
}
@font-face {
font-family: "DM Serif Display";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url("/fonts/dm-serif-display-italic.woff2") format("woff2");
}
:root {
--ink: #17352d;
--ink-soft: #587068;
--paper: #f4f0e6;
--cream: #fffcf4;
--mint: #b9d7c9;
--coral: #ef755d;
--coral-dark: #d95d48;
--line: rgba(23, 53, 45, 0.15);
--color-canvas: var(--paper);
--color-canvas-raised: var(--cream);
--color-body: var(--ink);
--color-muted: var(--ink-soft);
--color-hairline: var(--line);
--color-deep: var(--ink);
--color-on-deep: var(--paper);
--color-coral: var(--coral);
--color-coral-text: #b8432c;
color-scheme: light;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
min-width: 320px;
min-height: 100vh;
min-height: 100dvh;
margin: 0;
display: flex;
flex-direction: column;
background: var(--color-canvas);
color: var(--color-body);
font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
-webkit-font-smoothing: antialiased;
}
a {
color: inherit;
text-decoration: none;
}
:focus-visible {
outline: 2px solid var(--color-coral-text);
outline-offset: 2px;
}
main {
flex: 1 0 auto;
overflow: hidden;
}
.nav-wrap {
width: min(1180px, calc(100% - 48px));
height: 92px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--color-hairline);
}
.brand {
display: inline-flex;
align-items: center;
gap: 10px;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.18em;
}
.brand-mark {
display: grid;
place-items: center;
width: 35px;
height: 35px;
border-radius: 50%;
background: var(--color-deep);
color: var(--color-on-deep);
font-size: 21px;
letter-spacing: 0;
}
.status {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border: 1px solid var(--color-hairline);
border-radius: 999px;
color: var(--color-muted);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
white-space: nowrap;
}
.status::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--color-coral);
}
.legal {
width: min(760px, calc(100% - 48px));
margin: 0 auto;
padding: 84px 0 120px;
}
.legal h1 {
max-width: none;
margin: 0;
font-family: "DM Serif Display", Georgia, serif;
font-size: clamp(42px, 5vw, 62px);
font-weight: 400;
letter-spacing: -0.035em;
line-height: 1.02;
}
.legal-meta {
margin-top: 14px;
color: var(--color-muted);
font-size: 13px;
}
.legal h2 {
margin: 42px 0 12px;
font-family: "DM Serif Display", Georgia, serif;
font-size: 26px;
font-weight: 400;
letter-spacing: -0.02em;
line-height: 1.15;
}
.legal p,
.legal li {
color: var(--color-muted);
font-size: 15px;
line-height: 1.75;
}
.legal p + p {
margin-top: 12px;
}
.legal ul {
display: grid;
gap: 8px;
margin: 12px 0 0 20px;
list-style: disc;
}
.legal strong {
color: var(--color-body);
font-weight: 600;
}
.legal a {
color: var(--color-coral-text);
text-decoration: underline;
text-underline-offset: 2px;
}
.legal a:hover {
opacity: 0.75;
}
.site-footer {
width: min(1180px, calc(100% - 48px));
margin: 0 auto;
padding: 44px 0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
border-top: 1px solid var(--color-hairline);
}
.footer-brand {
display: flex;
flex-direction: column;
gap: 12px;
}
.footer-brand p {
margin: 0;
color: var(--color-muted);
font-size: 13px;
}
.site-footer > small {
color: var(--color-muted);
font-size: 11px;
}
.footer-links {
display: flex;
gap: 18px;
color: var(--color-muted);
font-size: 12px;
}
.footer-links a:hover {
color: var(--color-body);
}
@media (max-width: 650px) {
.nav-wrap,
.site-footer {
width: calc(100% - 36px);
}
.nav-wrap {
height: 74px;
}
.status {
padding: 7px 10px;
font-size: 9px;
}
.legal {
width: calc(100% - 36px);
padding: 56px 0 84px;
}
.legal h1 {
font-size: clamp(34px, 11vw, 44px);
}
.legal h2 {
margin-top: 34px;
font-size: 23px;
}
.site-footer {
flex-direction: column;
align-items: flex-start;
gap: 24px;
}
}
+196
View File
@@ -0,0 +1,196 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Privacy Policy — Inner Square Chess</title>
<meta
name="description"
content="How Inner Square Chess collects, uses, and protects your personal information."
/>
<meta name="robots" content="noindex, nofollow" />
<meta name="theme-color" content="#f4f0e6" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Inner Square Chess" />
<meta property="og:title" content="Privacy Policy — Inner Square Chess" />
<meta
property="og:description"
content="How Inner Square Chess collects, uses, and protects your personal information."
/>
<meta name="twitter:card" content="summary" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/legal.css" />
</head>
<body>
<header>
<nav class="nav-wrap" aria-label="Main navigation">
<a class="brand" href="/" aria-label="Inner Square Chess home">
<span class="brand-mark" aria-hidden="true">♞</span>
<span>INNERSQUARE</span>
</a>
<span class="status">Launching soon</span>
</nav>
</header>
<main id="main-content">
<article class="legal">
<h1>Privacy Policy</h1>
<p class="legal-meta">Last updated: 6 November 2026</p>
<p>
Inner Square Chess is an endgame training site. This policy explains what
information we collect when you use it, why we collect it, and the choices
you have. It covers the website and every page under it, including the
guest trainer.
</p>
<h2>What we collect</h2>
<ul>
<li>
<strong>Account details.</strong>
If you register, we store your username, email address, and a hashed
password. We never store passwords in plain text.
</li>
<li>
<strong>Training activity.</strong>
We record the puzzles you attempt and whether you solved them, so we can
show your progress and keep the daily puzzle meaningful.
</li>
<li>
<strong>Mailing list email.</strong>
If you join the mailing list — using the form on the home page or the
checkbox when registering — we store your email address and where you
signed up, so we can send you occasional updates. You can ask to be
removed at any time.
</li>
<li>
<strong>Technical data.</strong>
Our hosting and server infrastructure may keep standard request logs
(IP address, browser, timestamps) for security and troubleshooting.
These logs are rotated regularly.
</li>
<li>
<strong>Messages you send us.</strong>
If you contact us, we keep the message and our reply for as long as
needed to help you.
</li>
</ul>
<h2>Cookies and local storage</h2>
<p>
We use a small number of cookies and local storage entries that are
required for the site to work:
</p>
<ul>
<li>a session cookie that keeps you signed in;</li>
<li>a CSRF token that protects forms from cross-site requests;</li>
<li>a colour-mode preference stored in your browser.</li>
</ul>
<p>
We do not use advertising cookies, third-party analytics, or cross-site
tracking. You can clear these entries at any time in your browser
settings; doing so will sign you out and reset your colour mode.
</p>
<h2>How we use your information</h2>
<ul>
<li>To create and secure your account and sign you in.</li>
<li>To run the trainer and remember your progress.</li>
<li>To send service emails, such as confirmation and password reset links.</li>
<li>To send occasional endgame tips and site news, if you opted in.</li>
<li>To keep the site available, prevent abuse, and fix faults.</li>
<li>To respond when you ask for help.</li>
</ul>
<p>
We rely on our contract with you to provide the service, our legitimate
interests in keeping it secure and improving it, and your consent where we
ask for it. You can withdraw consent at any time.
</p>
<h2>Guest puzzle limit</h2>
<p>
Visitors who use the guest trainer without an account get a limited number
of free puzzles per UTC day. To enforce that limit and prevent abuse, we
identify each visitor by a keyed hash (HMAC-SHA256) of their IP address.
The limiter itself never stores, logs, or shares the raw address.
</p>
<p>
The hash exists only in the memory of the server that handled your request.
It is tied to the current UTC day, stops being usable at 00:00 UTC, and is
deleted by a periodic sweep shortly afterwards; it is also discarded when
the server restarts. It is never written to a database, a log, or a
backup, and no cookie or other client-side storage is involved. Signed-in
accounts are not metered this way.
</p>
<p>
We process this hash on the basis of our legitimate interests
(Article 6(1)(f) GDPR) in keeping the service available and preventing
abuse of the free tier. We do not share it with anyone. You have the right
to object to this processing; to do so, contact us using the address below.
</p>
<h2>Sharing</h2>
<p>
We do not sell your personal information. We share it only with providers
who help us run the site — for example hosting, database, and email
delivery providers — and only as far as they need it to perform that work.
We may also disclose information where the law requires it or to protect
the rights and safety of our users.
</p>
<h2>Retention</h2>
<p>
We keep account and training data while your account is open. If you
delete your account, we remove your personal information within a
reasonable period, except where we must keep records for legal, security,
or accounting reasons.
</p>
<h2>Your rights</h2>
<p>
Depending on where you live, you may have the right to access, correct,
delete, restrict, or export your personal information, and to object to
some uses of it. To make a request, contact us using the address below. If
you are in the UK or EU and are unhappy with our response, you can complain
to your local data protection authority.
</p>
<h2>Children</h2>
<p>
The service is not directed at children under 13, and we do not knowingly
collect their personal information. If you believe a child has created an
account, contact us and we will remove it.
</p>
<h2>Changes</h2>
<p>
We may update this policy as the service changes. When we do, we will
change the date at the top of this page and, for significant changes,
notify signed-in users by email or on the site.
</p>
<h2>Contact</h2>
<p>
Questions about this policy or your data can be sent to
<a href="mailto:support@innersquare.app">support@innersquare.app</a>.
</p>
</article>
</main>
<footer class="site-footer">
<div class="footer-brand">
<a class="brand" href="/" aria-label="Inner Square Chess home">
<span class="brand-mark" aria-hidden="true">♞</span>
<span>INNERSQUARE</span>
</a>
<p>Short, focused endgame training.</p>
</div>
<nav class="footer-links" aria-label="Legal">
<a href="/privacy">Privacy</a>
<a href="/terms-conditions">Terms</a>
</nav>
<small>&copy; 2026 Inner Square Chess</small>
</footer>
</body>
</html>
+170
View File
@@ -0,0 +1,170 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Terms &amp; Conditions — Inner Square Chess</title>
<meta
name="description"
content="The terms that apply when you use Inner Square Chess."
/>
<meta name="robots" content="noindex, nofollow" />
<meta name="theme-color" content="#f4f0e6" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Inner Square Chess" />
<meta property="og:title" content="Terms &amp; Conditions — Inner Square Chess" />
<meta
property="og:description"
content="The terms that apply when you use Inner Square Chess."
/>
<meta name="twitter:card" content="summary" />
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/legal.css" />
</head>
<body>
<header>
<nav class="nav-wrap" aria-label="Main navigation">
<a class="brand" href="/" aria-label="Inner Square Chess home">
<span class="brand-mark" aria-hidden="true">♞</span>
<span>INNERSQUARE</span>
</a>
<span class="status">Launching soon</span>
</nav>
</header>
<main id="main-content">
<article class="legal">
<h1>Terms &amp; Conditions</h1>
<p class="legal-meta">Last updated: 6 November 2026</p>
<p>
These terms govern your use of Inner Square Chess. By browsing the site,
using the guest trainer, or creating an account, you agree to them. If you
do not agree, please do not use the service.
</p>
<h2>The service</h2>
<p>
Inner Square Chess provides short endgame puzzles and training tools. Some
features are available without an account; others, such as saved progress
and the full puzzle list, require you to register. We may add, change, or
remove features over time.
</p>
<p>
The guest trainer is limited to a fixed number of puzzles per UTC day,
which we may change. The limit is enforced as described in our
<a href="/privacy">Privacy Policy</a>.
</p>
<h2>Accounts</h2>
<ul>
<li>You must be at least 13 years old to create an account.</li>
<li>Give accurate information and keep it up to date.</li>
<li>Keep your password private and tell us promptly about unauthorised use.</li>
<li>You are responsible for activity that happens under your account.</li>
<li>Do not share, sell, or transfer your account to someone else.</li>
</ul>
<h2>Acceptable use</h2>
<p>You agree not to:</p>
<ul>
<li>break the law or infringe anyone else's rights;</li>
<li>interfere with the site, its servers, or other users;</li>
<li>attempt to gain access to accounts or data that are not yours;</li>
<li>scrape, crawl, or bulk-download the site without our permission;</li>
<li>copy, resell, or redistribute the service or its content;</li>
<li>use the service to send spam or malicious code.</li>
</ul>
<h2>Our content and your licence</h2>
<p>
The site, its design, text, and software are owned by Inner Square Chess or
its licensors and are protected by copyright and other laws. We grant you a
personal, non-exclusive, non-transferable licence to use the service for
your own training. You may not reproduce, modify, distribute, or create
derivative works from our content without written permission.
</p>
<p>
Chess positions and puzzle data are drawn from public sources and
tablebase material. You may use the training output for your own study,
but not to build a competing product.
</p>
<h2>Your data</h2>
<p>
You keep ownership of the information you provide. You give us permission
to store and use it as described in our <a href="/privacy">Privacy Policy</a>
so that we can run the service.
</p>
<h2>Paid plans</h2>
<p>
Some features may be offered as part of a paid plan. Prices, billing
periods, and cancellation terms will be shown before you purchase. Unless
the law requires otherwise, payments are non-refundable once a billing
period has started. We may change prices with reasonable notice.
</p>
<h2>Availability and changes</h2>
<p>
We aim to keep the site available, but we do not guarantee uninterrupted
access. Maintenance, faults, or circumstances outside our control may
interrupt it. We may suspend or discontinue the service, in whole or in
part, with reasonable notice where practical.
</p>
<h2>Disclaimer</h2>
<p>
Inner Square Chess is an educational tool. We do not promise that using it
will improve your rating or results, and puzzle solutions are provided for
training purposes only. The service is provided "as is" to the extent
permitted by law.
</p>
<h2>Limitation of liability</h2>
<p>
To the extent permitted by law, Inner Square Chess is not liable for
indirect or consequential losses, loss of data, or loss of profits arising
from your use of the service. Nothing in these terms limits liability that
cannot be limited by law, including for death, personal injury, or fraud.
</p>
<h2>Termination</h2>
<p>
You may stop using the service and delete your account at any time. We may
suspend or close an account that breaches these terms, that we reasonably
believe is being misused, or where we are required to do so by law.
</p>
<h2>Governing law</h2>
<p>
These terms are governed by the laws of France. Any dispute will be handled
by the courts of France, unless the law where you live gives you the right
to bring it elsewhere.
</p>
<h2>Contact</h2>
<p>
Questions about these terms can be sent to
<a href="mailto:support@innersquare.app">support@innersquare.app</a>.
</p>
</article>
</main>
<footer class="site-footer">
<div class="footer-brand">
<a class="brand" href="/" aria-label="Inner Square Chess home">
<span class="brand-mark" aria-hidden="true">♞</span>
<span>INNERSQUARE</span>
</a>
<p>Short, focused endgame training.</p>
</div>
<nav class="footer-links" aria-label="Legal">
<a href="/privacy">Privacy</a>
<a href="/terms-conditions">Terms</a>
</nav>
<small>&copy; 2026 Inner Square Chess</small>
</footer>
</body>
</html>