/* Legal pages of ecombuilder.io (terms of use, terms of sale, privacy, legal notice): static, readable without JS. */
:root {
  color-scheme: light;
  --ink: #18181b; --muted: #63635e; --line: #e4e4e0; --bg: #f6f6f4; --card: #ffffff;
  --brand: #0d9649; --brand-soft: #effef4; --todo-bg: #fff3c4; --todo-ink: #6b4e00;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2f4; --muted: #a3a39c; --line: #2a2a2e; --bg: #0c0c0d; --card: #151517;
  --brand: #39d174; --brand-soft: #0f2a1b; --todo-bg: #3d3210; --todo-ink: #ffe08a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Geist", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }

/* Only the reader's language shows once the script ran; without it, both versions follow each other. */
html[data-lang="fr"] [data-doc-lang="en"], html[data-lang="en"] [data-doc-lang="fr"] { display: none; }

header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.top .bar { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.logo img { width: 26px; height: 26px; }
.tools { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tools button, .tools a.pill { font: inherit; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer; text-decoration: none; }
.tools button[aria-pressed="true"] { color: var(--ink); border-color: var(--brand); }

.layout { max-width: 1120px; margin: 0 auto; padding: 28px 16px 80px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 13px; }
.toc p { margin: 0 0 8px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); background: var(--card); }

article { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px clamp(18px, 4vw, 44px) 24px; }
article + article { margin-top: 24px; }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 19px; margin: 34px 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, li { color: var(--ink); }
ol, ul { padding-left: 22px; }
li + li { margin-top: 4px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.callout { background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 14px; padding: 14px 16px; margin: 18px 0; font-size: 15px; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
mark.todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 4px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 6px; }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer.legal { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.legal a { color: var(--muted); }
