/* Resettle — shared styles for the legal pages (privacy / terms / refunds).
   Mirrors the design system in index.html: Marcellus headings, Figtree body,
   Fraunces logo; canvas / ink / sun / clay palette. */

:root {
    --canvas: #F2F0E6;   /* ground */
    --ink: #514C3F;      /* all text, logo, headings */
    --sun: #C3D4B4;      /* orbs, dots */
    --sun-soft: #E2EAD8; /* sun tint */
    --clay: #8C8455;     /* labels, links, hovers */
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--canvas);
    color: var(--ink);
    font-family: 'Figtree', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

.sun-bg {
    position: fixed;
    top: -10vh;
    right: -10vw;
    width: 55vw;
    height: 55vw;
    background: var(--sun);
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.13;
    z-index: -1;
    pointer-events: none;
}

/* --- Header --------------------------------------------------------------- */
.legal-header {
    padding: 2.5rem 8vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.legal-header .back-link {
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    opacity: 0.75;
    transition: color 0.3s var(--transition), opacity 0.3s var(--transition);
}

.legal-header .back-link:hover {
    color: var(--clay);
    opacity: 1;
}

/* --- Article -------------------------------------------------------------- */
.legal {
    padding: 3rem 8vw 6rem;
    display: flex;
    justify-content: center;
}

.legal article {
    width: 100%;
    max-width: 680px;
    animation: legal-rise 0.7s var(--transition) both;
}

@keyframes legal-rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.legal h1 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.1;
    text-wrap: balance;
    margin-bottom: 0.75rem;
}

.legal-updated {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clay);
    margin-bottom: 2.5rem;
}

.legal h2 {
    font-family: 'Marcellus', serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 2.75rem 0 1rem;
}

.legal p {
    margin-bottom: 1.15rem;
    font-size: 1.02rem;
}

.legal p:last-child { margin-bottom: 0; }

.legal a {
    color: var(--clay);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.3s var(--transition);
}

.legal a:hover { color: var(--ink); }

.legal strong { font-weight: 500; color: var(--ink); }

.legal ul {
    list-style: none;
    margin: 0 0 1.15rem;
}

.legal li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 1.02rem;
}

.legal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--sun);
    border-radius: 50%;
}

/* The short version — TL;DR card */
.legal-tldr {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
}

.legal-tldr h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
}

.legal-tldr p {
    margin: 0;
    opacity: 0.9;
}

/* --- Footer (mirrors index.html) ----------------------------------------- */
footer {
    padding: 3rem 8vw;
    border-top: 1px solid rgba(140, 132, 85, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: color 0.3s var(--transition);
}

.footer-contact a:hover {
    color: var(--clay);
}

@media (max-width: 640px) {
    .legal-header { padding: 2rem 6vw; }
    .legal { padding: 2rem 6vw 4rem; }
    .legal-tldr { padding: 1.5rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .legal article { animation: none; }
}
