/* Shared layout for the two legal pages (/terms, /privacy). The panel itself is a single
   centred card; these are documents, so they get a wider column, left-aligned body copy
   and normal text selection. Colours all come from matte-theme.css so the three pages stay
   in step if the theme moves. */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Poppins',sans-serif}

body{
    background:var(--matte-bg-base);
    color:var(--matte-text-primary);
    min-height:100vh;
    padding:3rem 2rem 4rem;
    position:relative;
    line-height:1.7;
}
body::before{
    content:'';
    position:fixed;
    top:0;left:0;width:100%;height:100%;
    background:radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.015) 0%, transparent 100%);
    pointer-events:none;
    z-index:0;
}

.wrap{
    position:relative;
    z-index:1;
    max-width:780px;
    margin:0 auto;
}

.back{
    /* flex + fit-content so it sits on its own line above the badge without stretching the
       hover target across the page. */
    display:flex;
    width:fit-content;
    align-items:center;
    gap:.45rem;
    color:var(--matte-text-muted);
    text-decoration:none;
    font-size:.78rem;
    font-weight:400;
    margin-bottom:2rem;
    transition:color .2s ease;
}
.back:hover{color:var(--matte-text-secondary)}
.back svg{width:15px;height:15px}

.pro-badge{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    background:var(--matte-bg-hover);
    color:var(--matte-text-primary);
    font-size:.7rem;
    font-weight:600;
    padding:.4rem 1.2rem;
    border-radius:20px;
    letter-spacing:3px;
    margin-bottom:1.25rem;
    border:1px solid var(--matte-border-hover);
}
.pro-badge svg{width:16px;height:16px;opacity:.7}

h1{
    font-size:2.1rem;
    font-weight:700;
    letter-spacing:-0.02em;
    margin-bottom:.5rem;
    background:linear-gradient(180deg, #4a4a4a 0%, #ffffff 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}
.updated{
    font-size:.75rem;
    color:var(--matte-text-muted);
    font-weight:300;
    margin-bottom:2.5rem;
}

.doc{
    background:var(--matte-bg-card);
    border:1px solid var(--matte-border-default);
    border-radius:var(--matte-radius-xl);
    box-shadow:var(--matte-shadow-lg);
    padding:2.75rem 2.5rem;
}

.intro{
    font-size:.9rem;
    color:var(--matte-text-secondary);
    font-weight:300;
    padding-bottom:1.75rem;
    margin-bottom:.5rem;
    border-bottom:1px solid var(--matte-border-subtle);
}

section{padding-top:2rem}
h2{
    font-size:1.02rem;
    font-weight:600;
    letter-spacing:-0.01em;
    margin-bottom:.85rem;
    display:flex;
    align-items:baseline;
    gap:.7rem;
}
h2 .num{
    font-size:.7rem;
    font-weight:600;
    color:var(--matte-text-muted);
    letter-spacing:1px;
    flex:none;
}
h3{
    font-size:.85rem;
    font-weight:600;
    color:var(--matte-text-primary);
    margin:1.4rem 0 .6rem;
}

p,li{
    font-size:.86rem;
    color:var(--matte-text-secondary);
    font-weight:300;
    letter-spacing:.15px;
}
p+p,ul+p,.note+p,.table-scroll+p{margin-top:.85rem}

ul{list-style:none;margin:.85rem 0 0}
ul li{position:relative;padding-left:1.15rem;margin-bottom:.6rem}
ul li::before{
    content:'';
    position:absolute;
    left:0;top:.62em;
    width:4px;height:4px;
    border-radius:50%;
    background:var(--matte-text-muted);
}
ul li:last-child{margin-bottom:0}

strong{color:var(--matte-text-primary);font-weight:500}
code{
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:.8em;
    background:var(--matte-bg-hover);
    border:1px solid var(--matte-border-default);
    border-radius:6px;
    padding:.1rem .38rem;
    color:var(--matte-text-primary);
}
a{color:rgba(139,142,255,0.9);text-decoration:none;border-bottom:1px solid rgba(139,142,255,0.25)}
a:hover{border-bottom-color:rgba(139,142,255,0.6)}
.back,.doc-foot a{border-bottom:none}

/* Call-out used for the handful of things people actually get burned by: no refunds,
   mistyped usernames, chargebacks. */
.note{
    display:flex;
    gap:.8rem;
    background:var(--matte-bg-hover);
    border:1px solid var(--matte-border-hover);
    border-radius:var(--matte-radius-md);
    padding:1rem 1.1rem;
    margin-top:1rem;
}
.note svg{width:17px;height:17px;flex:none;margin-top:.15rem;color:rgba(255,180,40,0.85)}
.note p{margin:0;font-size:.82rem}

/* Plain data table for the cookie and third-party breakdowns. Scrolls on its own so the
   page body never gains a horizontal scrollbar on a phone. */
.table-scroll{overflow-x:auto;margin-top:1rem;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:460px}
th,td{
    text-align:left;
    padding:.65rem .8rem;
    font-size:.79rem;
    font-weight:300;
    color:var(--matte-text-secondary);
    border-bottom:1px solid var(--matte-border-subtle);
    vertical-align:top;
}
th{
    font-weight:600;
    color:var(--matte-text-primary);
    font-size:.7rem;
    letter-spacing:1.2px;
    text-transform:uppercase;
}
tr:last-child td{border-bottom:none}
td code{white-space:nowrap}

.doc-foot{
    margin-top:2.5rem;
    padding-top:1.5rem;
    border-top:1px solid var(--matte-border-subtle);
    display:flex;
    flex-wrap:wrap;
    gap:.5rem 1.25rem;
    align-items:center;
    justify-content:center;
    font-size:.75rem;
    color:var(--matte-text-muted);
}
.doc-foot a{color:var(--matte-text-muted);transition:color .2s ease}
.doc-foot a:hover{color:var(--matte-text-secondary)}

@media (max-width:640px){
    body{padding:2rem 1.1rem 3rem}
    .doc{padding:1.9rem 1.4rem;border-radius:var(--matte-radius-lg)}
    h1{font-size:1.7rem}
    h2{gap:.5rem}
}
