:root {
    --ink: #1d1833;
    --muted: #68637c;
    --purple: #7056ee;
    --pink: #ef4ea5;
    --orange: #ff9a3d;
    --aqua: #20bcb6;
    --line: rgba(81, 66, 130, 0.13);
    --soft-shadow: 0 12px 34px rgba(62, 43, 116, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 4%, rgba(255, 184, 222, 0.62), transparent 27rem),
        radial-gradient(circle at 94% 14%, rgba(139, 220, 255, 0.58), transparent 29rem),
        radial-gradient(circle at 50% 78%, rgba(255, 222, 151, 0.46), transparent 34rem),
        linear-gradient(145deg, #faf7ff 0%, #f4fbff 50%, #fffaf2 100%);
    font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--purple);
}

.aurora {
    position: fixed;
    z-index: -1;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.34;
    pointer-events: none;
}

.aurora-one {
    top: 30%;
    left: -10rem;
    background: #c9a7ff;
}

.aurora-two {
    right: -9rem;
    bottom: 8%;
    background: #73e0d5;
}

.page-shell {
    width: min(100% - 24px, 1160px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    margin-top: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.wordmark {
    display: inline-block;
    color: var(--purple);
    background: linear-gradient(92deg, #624de7 3%, #a94edb 33%, #ef4e9e 56%, #ff963e 78%, #16aaa8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 10vw, 3.1rem);
    font-weight: 950;
    line-height: 0.95;
    letter-spacing: -0.065em;
    text-decoration: none;
    text-shadow: 0 12px 30px rgba(141, 75, 206, 0.15);
}

.site-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.site-nav a {
    padding: 8px 11px;
    color: #514b67;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
    color: var(--purple);
    background: rgba(112, 86, 238, 0.09);
    transform: translateY(-1px);
}

.wordmark:focus-visible,
.site-nav a:focus-visible,
.footer-links a:focus-visible,
.terms-document a:focus-visible,
.section-nav a:focus-visible {
    outline: 3px solid rgba(112, 86, 238, 0.28);
    outline-offset: 3px;
}

main {
    flex: 1;
}

.terms-hero {
    max-width: 900px;
    padding: 64px 5px 42px;
}

.eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    margin: 0 0 18px;
    padding: 8px 12px;
    color: #5a438b;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(126, 95, 205, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(87, 57, 150, 0.08);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(239, 78, 165, 0.1);
}

h1 {
    margin: 0;
    font-size: clamp(3.25rem, 15vw, 7rem);
    font-weight: 950;
    line-height: 0.88;
    letter-spacing: -0.075em;
}

.updated {
    display: inline-flex;
    margin: 26px 0 0;
    padding: 7px 11px;
    color: var(--purple);
    background: rgba(238, 233, 255, 0.76);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.hero-intro {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 4vw, 21px);
    line-height: 1.65;
}

.terms-layout {
    display: grid;
    gap: 24px;
    align-items: start;
    padding-bottom: 54px;
}

.terms-aside {
    display: grid;
    gap: 16px;
}

.aside-card,
.section-nav,
.terms-document {
    background:
        radial-gradient(circle at 100% 0, rgba(139, 220, 255, 0.15), transparent 22rem),
        rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.aside-card,
.section-nav {
    padding: 20px;
    border-radius: 22px;
}

.aside-card p,
.section-nav > p {
    margin: 0 0 9px;
    color: var(--purple);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aside-card strong,
.aside-card a {
    display: block;
}

.aside-card strong {
    line-height: 1.4;
}

.aside-card a {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 750;
}

.section-nav ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 22px;
    color: var(--purple);
}

.section-nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration-color: rgba(112, 86, 238, 0.25);
    text-underline-offset: 3px;
}

.terms-document {
    overflow: hidden;
    padding: 8px 20px;
    border-radius: 28px;
}

.terms-document section {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 18px;
}

.terms-document section:last-child {
    border-bottom: 0;
}

.terms-document h2 {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    font-size: clamp(21px, 5vw, 29px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.terms-document h2 span {
    display: inline-grid;
    min-width: 30px;
    height: 30px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border-radius: 9px;
    box-shadow: 0 7px 16px rgba(112, 86, 238, 0.2);
    font-size: 12px;
    letter-spacing: 0;
}

.terms-document h3 {
    margin: 24px 0 0;
    color: #3d3751;
    font-size: 18px;
    line-height: 1.35;
}

.terms-document p,
.terms-document li {
    color: var(--muted);
    font-size: 15px;
}

.terms-document p {
    margin: 15px 0 0;
}

.terms-document ul {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 22px;
}

.terms-document li::marker {
    color: var(--pink);
}

.terms-document a {
    font-weight: 800;
    text-underline-offset: 3px;
}

address {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 18px;
    background: rgba(238, 233, 255, 0.55);
    border: 1px solid rgba(112, 86, 238, 0.12);
    border-radius: 16px;
    font-style: normal;
}

address span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px 2px 26px;
    color: #746e83;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.footer-links {
    gap: 13px;
}

.footer-links a {
    color: inherit;
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--purple);
}

@media (min-width: 600px) {
    .page-shell {
        width: min(100% - 40px, 1160px);
    }

    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 18px;
        padding: 20px 24px;
        border-radius: 28px;
    }

    .site-nav a {
        padding: 9px 13px;
        font-size: 14px;
    }

    .terms-document {
        padding: 16px 36px;
        border-radius: 34px;
    }

    .terms-document section {
        padding: 34px 0;
    }

    .terms-document p,
    .terms-document li {
        font-size: 16px;
    }

    .site-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 900px) {
    .terms-hero {
        padding: 86px 8px 58px;
    }

    .terms-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 28px;
    }

    .terms-aside {
        position: sticky;
        top: 24px;
    }

    .terms-document {
        padding: 18px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}
