:root {
    --ink: #151823;
    --ink-soft: #2A2E3D;
    --paper: #FBFAF7;
    --paper-2: #F3F1EB;
    --accent: #5B4BE8;
    --accent-deep: #4536C4;
    --lilac: #EEEBFC;
    --slate: #5A5E6B;
    --line: #E6E3DA;
    --white: #FFFFFF;
    --ok: #2E9E6B;
    --warn: #C98A16;
    --err: #D2503B;
    --shadow-sm: 0 1px 2px rgba(21, 24, 35, .06), 0 2px 8px rgba(21, 24, 35, .05);
    --r: 14px;
    --r-lg: 22px;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased
}

h1,
h2,
h3,
.display {
    font-family: 'Inter', sans-serif;
    letter-spacing: -.02em;
    line-height: 1.2
}

.mono {
    font-family: 'Space Mono', monospace
}

a {
    color: inherit;
    text-decoration: none
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    font-size: .96rem;
    line-height: 1;
    padding: .8rem 1.3rem;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .16s, box-shadow .16s, background .16s;
    white-space: nowrap
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line)
}

.btn-ghost:hover {
    background: var(--paper-2)
}

.btn-sm {
    padding: .55rem .95rem;
    font-size: .88rem
}

/* Custom Navigation */
.policy-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.tb-brand {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.02em;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
}
.tb-brand b { color: var(--accent); }

.tb-brand .mark {
    width: 30px; height: 30px; flex: none;
    display: grid; place-items: center; margin-right: .25rem;
    background:var(--brand-tile);color:#fff;box-shadow:var(--brand-tile-shadow);
}

/* Content Wrapper */
.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
}

.page-head {
    padding: 0 0 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}

.page-head .eyebrow {
    font-family: 'Space Mono';
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent)
}

.page-head h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-top: .5rem
}

.page-head p {
    color: var(--slate);
    margin-top: .6rem;
    font-size: 1.06rem;
}

/* Policy Typography */
.policy-content h2 {
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
}

.policy-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--ink-soft);
}

.policy-content p {
    margin-bottom: 1.2rem;
    color: var(--slate);
    font-size: 1.02rem;
}

.policy-content strong {
    color: var(--ink);
    font-weight: 600;
}

.policy-content ul {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--slate);
    font-size: 1.02rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}

/* Tables */
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.policy-content th,
.policy-content td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.policy-content th {
    background: var(--paper-2);
    font-weight: 600;
    color: var(--ink);
}

.policy-content tr:last-child td {
    border-bottom: none;
}

/* Legal Disclaimer Block */
.legal-block {
    background: var(--paper-2);
    padding: 1.5rem;
    border-radius: var(--r);
    border-left: 4px solid var(--err);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-family: 'Space Mono', monospace;
    color: var(--ink-soft);
    margin: 2rem 0;
    line-height: 1.6;
}

@media(max-width:620px) {
    .policy-nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .tb-brand {
        display: none;
    }
}


/* THE MARK (templates/_mark.html) is an inline SVG, not an icon font, so it
   takes its size from the tile rather than from font-size. 58% leaves the
   ring clear of the tile's corners at every size we draw it. */
/* ===========================================================================
   THE BRAND TILE AND THE MARK
   ---------------------------------------------------------------------------
   `.mark` is the rounded tile, `.mark-glyph` the bolt inside it
   (templates/_mark.html). Only the SIZE belongs to each context — a 30px
   header tile, a 36px sidebar one; everything that makes it the logo lives
   here, so the mark is the same object at every size on every page.

   The radius is a percentage, not pixels, because the artwork's corner is
   56 of 256 and that ratio has to survive a 30px tile as well as a 512px
   PNG. The gradient is the artwork's: violet at the top-left corner,
   indigo through the middle, blue at the bottom-right.

   The glyph is 100% of the tile and does its own sizing inside the viewBox,
   again so the proportions come from the artwork rather than from a
   percentage somebody guessed here.

   This block is repeated verbatim in editor.css, home.css, index.css,
   privacy.css, shell.css and terms.css, because those six stylesheets are
   standalone — no shared import to hang it on. Change one, change all six.
   =========================================================================== */
.mark{
  --brand-tile:linear-gradient(141deg,#8B5CF6 0%,#6366F1 50%,#3B82F6 100%);
  --brand-tile-shadow:0 5px 14px -7px rgba(79,70,229,.75);
  border-radius:22%;
}
.mark-glyph{width:100%;height:100%;display:block}
