diff --git a/p/assets/styles/legal.css b/p/assets/styles/legal.css new file mode 100644 index 0000000..1499d86 --- /dev/null +++ b/p/assets/styles/legal.css @@ -0,0 +1,125 @@ +@import "./var.css"; + +/* ── Legal pages (mentions légales, conditions, confidentialité) ── */ + +.legal-header { + max-width: 1120px; + margin: 0 auto; + padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 1.25rem; + text-align: center; +} + +.legal-header h1 { + margin: 0; + font-family: "Georgia", "Times New Roman", serif; + font-size: clamp(2rem, 6vw, 3.5rem); + line-height: 1.1; + letter-spacing: -0.02em; + color: var(--text); +} + +.legal-header p { + max-width: 62ch; + margin: 1rem auto 0; + color: var(--text-secondary); + font-size: 1.05rem; + line-height: 1.8; +} + +.legal-main { + width: min(1120px, calc(100% - 2.5rem)); + margin: 1.5rem auto 0; + padding: 0 0 3rem; + display: grid; + gap: 1.5rem; + align-content: start; +} + +.legal-main section { + padding: clamp(1.4rem, 3vw, 2rem); + border-radius: 1rem; + border: 1px solid var(--border); + background: var(--surface); + box-shadow: var(--shadow-sm); +} + +.legal-main h2 { + margin: 0 0 0.85rem; + color: var(--text); + font-family: "Georgia", "Times New Roman", serif; + font-size: clamp(1.3rem, 3vw, 1.9rem); +} + +.legal-main p, +.legal-main li { + margin: 0 0 0.85rem; + color: var(--text-secondary); + line-height: 1.8; +} + +.legal-main ul { + margin: 0 0 1rem; + padding-left: 1.25rem; +} + +.legal-main li:last-child { + margin-bottom: 0; +} + +.legal-main strong { + color: var(--text); +} + +.legal-main a:not(.button) { + color: var(--accent); + text-decoration: underline; + text-underline-offset: 0.15em; +} + +.legal-main a:not(.button):hover, +.legal-main a:not(.button):focus-visible { + color: var(--accent-soft); +} + +/* Contact sheet : label/value pairs without bullets. */ +.legal-sheet { + margin: 0 0 0.5rem; + padding: 0; + list-style: none; + display: grid; + gap: 0.5rem; +} + +.legal-sheet li { + margin: 0; +} + +/* Field to complete by the maintainer (legal identity, IDE, venue). */ +.legal-todo { + color: var(--text); + background: rgba(56, 189, 248, 0.14); + border-radius: 0.3em; + padding: 0 0.3em; + font-style: normal; +} + +.legal-updated { + margin: 0; + color: var(--muted); + font-size: 0.9rem; + text-align: center; +} + +@media (max-width: 700px) { + .legal-header { + padding-top: 2rem; + } + + .legal-main { + width: min(100% - 1rem, 1120px); + } + + .legal-main section { + border-radius: 0.8rem; + } +} diff --git a/p/conditions/index.php b/p/conditions/index.php new file mode 100644 index 0000000..309df09 --- /dev/null +++ b/p/conditions/index.php @@ -0,0 +1,83 @@ + + + + diff --git a/p/confidentialite/index.php b/p/confidentialite/index.php new file mode 100644 index 0000000..c67aa31 --- /dev/null +++ b/p/confidentialite/index.php @@ -0,0 +1,74 @@ + + + + diff --git a/p/mentions-legales/index.php b/p/mentions-legales/index.php new file mode 100644 index 0000000..a2ae400 --- /dev/null +++ b/p/mentions-legales/index.php @@ -0,0 +1,62 @@ + + + + diff --git a/page.php b/page.php index 3b414f1..382ebce 100644 --- a/page.php +++ b/page.php @@ -63,7 +63,7 @@ if (preg_match('/^paquets\/(\d+)$/', $route, $m)) { $route = 'paquets/_detail'; $pageFile = __DIR__ . '/p/paquets/detail.php'; } else { - $known = ['index', 'dl', 'paquets', 'equipe', 'contact']; + $known = ['index', 'dl', 'paquets', 'equipe', 'contact', 'mentions-legales', 'conditions', 'confidentialite']; if (in_array($route, $known, true)) { $pageFile = __DIR__ . '/p/' . $route . '/index.php'; } @@ -122,6 +122,8 @@ if ($title === null) { $labels = [ 'index' => 'Accueil', 'dl' => 'Téléchargements', 'paquets' => 'Paquets', 'paquets/_detail' => 'Paquet', 'equipe' => "L'équipe", 'contact' => 'Contact', + 'mentions-legales' => 'Mentions légales', 'conditions' => "Conditions d'utilisation", + 'confidentialite' => 'Confidentialité', ]; $label = $labels[$route] ?? 'FWS Linux'; $title = $label . ' | FWS Linux'; @@ -263,6 +265,7 @@ function fws_site_active(string $route, string $prefix): string GitHub Discord +