/* ================================================================
   FILE: website/terms-and-conditions/terms.css
   USED BY: website/terms-and-conditions/index.html  (/terms-and-conditions)
   PURPOSE: Styles for the terms and conditions page.
   Linked from: agency footer.
   ================================================================ */

:root {
    --bg: #090a0d;
    --bg-elev: #101218;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #f7f8fb;
    --text-muted: #b4bac8;
    --text-subtle: #7f8798;
    --accent: #00e8b0;
    --accent-hover: #28f5c3;
    --accent-subtle: rgba(0, 232, 176, 0.12);
    --accent-on-dark: #05100d;
    --violet: #8e7bff;
    --grad-text: linear-gradient(90deg, #00e8b0 0%, #8e7bff 100%);
    --max: 1120px;
    --header-h: 72px;
    --radius: 8px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, #11131a 0%, var(--bg) 28%, #08090c 100%),
    var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    font-feature-settings: "ss01", "ss02", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
    opacity: 0.42;
}

::selection {
    background: var(--accent-subtle);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
    margin: 0;
}

ul,
ol {
    padding: 0;
}

.skip {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
    color: var(--text);
    transition: transform 160ms var(--ease);
}

.skip:focus {
    transform: translateY(0);
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.h1 {
    max-width: 780px;
    color: var(--text);
    font-size: 3.25rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.05;
    text-wrap: balance;
}

.gradient-text {
    background: var(--grad-text);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 20px;
    color: inherit;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition: background 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 200ms var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.btn--sm {
    min-height: 40px;
    padding: 10px 16px;
    font-size: 0.875rem;
}

.btn--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-on-dark);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 34px rgba(0, 232, 176, 0.22);
    transform: translateY(-1px);
}

.btn:focus-visible,
.brand:focus-visible,
.footer__brand:focus-visible,
.footer__links a:focus-visible,
.legal-content a:focus-visible,
.toc a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(9, 10, 13, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.header.is-scrolled {
    border-bottom-color: var(--line-soft);
    background: rgba(9, 10, 13, 0.94);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 32px));
    height: var(--header-h);
    margin-inline: auto;
    gap: 16px;
}

.brand,
.footer__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 70%;
    flex: 0 1 auto;
}

.brand__logo {
    width: auto;
    height: 30px;
    max-width: 240px;
    max-height: 32px;
    object-fit: contain;
    object-position: left center;
    flex: 0 1 auto;
}

.footer__logo {
    width: auto;
    height: 26px;
    max-width: 220px;
    max-height: 28px;
    object-fit: contain;
    object-position: left center;
    flex: 0 1 auto;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 64px;
}

.legal-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 232, 176, 0.11) 0%, transparent 28%),
    linear-gradient(225deg, rgba(142, 123, 255, 0.08) 0%, transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 52%);
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero__meta {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.legal-summary {
    position: relative;
    max-width: 900px;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--bg-elev);
    box-shadow: var(--shadow);
    padding: 28px 30px 28px 34px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.72;
}

.legal-summary::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--grad-text);
    content: "";
}

.legal-summary strong,
.legal-summary em {
    color: var(--text);
}

.section {
    position: relative;
    padding: 72px 0 96px;
}

.legal-section {
    border-top: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.018);
}

.legal-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

.toc {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 18px;
}

.toc strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 700;
}

.toc a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line-soft);
    padding: 11px 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    transition: color 160ms var(--ease), padding 160ms var(--ease);
}

.toc a::after {
    content: "->";
    color: var(--text-subtle);
    font-weight: 700;
    transition: color 160ms var(--ease);
}

.toc a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.toc a:hover::after {
    color: var(--accent);
}

.legal-content {
    max-width: 760px;
}

.legal-content section {
    scroll-margin-top: calc(var(--header-h) + 24px);
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--line-soft);
}

.legal-content section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-content h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.2;
    text-wrap: balance;
}

.legal-content h3 {
    margin: 28px 0 10px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.legal-content p,
.legal-content li,
.legal-content address {
    color: var(--text-muted);
    font-size: 0.9875rem;
    line-height: 1.78;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content strong {
    color: var(--text);
    font-weight: 700;
}

.legal-content em {
    color: var(--text);
}

.legal-content address {
    margin: 0;
    font-style: normal;
}

.legal-content a {
    color: var(--text);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(0, 232, 176, 0.45);
    text-underline-offset: 4px;
    transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}

.legal-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 20px;
    padding-left: 0;
}

.legal-content ul {
    list-style: none;
}

.legal-content ol {
    list-style-position: outside;
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-content ul li {
    position: relative;
    padding-left: 20px;
}

.legal-content ul li::before {
    position: absolute;
    left: 0;
    top: 0.82em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
    transform: translateY(-50%);
}

.legal-content ol li {
    padding-left: 6px;
}

.footer {
    border-top: 1px solid var(--line-soft);
    background: #08090c;
    padding: 48px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__meta {
    flex: 1 1 320px;
    color: var(--text-subtle);
    font-size: 0.8125rem;
    line-height: 1.65;
    text-align: center;
}

.footer__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.8125rem;
    transition: color 160ms var(--ease);
}

.footer__links a:hover {
    color: var(--accent);
}

@media (max-width: 1024px) {
    .h1 {
        font-size: 2.85rem;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal-sidebar {
        position: static;
    }

    .toc {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }

    .toc strong {
        grid-column: 1 / -1;
    }

    .legal-content {
        max-width: none;
    }

    .section {
        padding: 64px 0 84px;
    }
}

@media (max-width: 760px) {
    .h1 {
        font-size: 2.35rem;
    }

    .legal-hero {
        padding: 64px 0 52px;
    }

    .legal-summary {
        padding: 24px 24px 24px 28px;
    }

    .toc {
        grid-template-columns: 1fr;
    }

    .legal-content h2 {
        font-size: 1.35rem;
    }

    .legal-content p,
  .legal-content li,
  .legal-content address {
        font-size: 0.9375rem;
    }
}

@media (max-width: 580px) {
    :root {
        --header-h: 64px;
    }

    .container {
        width: min(var(--max), calc(100% - 32px));
    }

    .header__inner {
        width: min(var(--max), calc(100% - 24px));
        gap: 10px;
    }

    .brand {
        max-width: calc(100% - 132px);
    }

    .brand__logo {
        height: 24px;
        max-width: 180px;
        max-height: 26px;
    }

    .footer__logo {
        height: 22px;
        max-width: 170px;
        max-height: 24px;
    }

    .btn--sm {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0.8125rem;
    }

    .h1 {
        font-size: 2rem;
    }

    .legal-hero {
        padding: 52px 0 44px;
    }

    .legal-summary {
        margin-top: 28px;
        padding: 22px 20px 22px 24px;
    }

    .section {
        padding: 52px 0 72px;
    }

    .toc {
        padding: 16px;
    }

    .legal-content section {
        padding-bottom: 36px;
        margin-bottom: 36px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }

    .footer__brand {
        justify-content: center;
        max-width: 100%;
    }

    .footer__meta {
        flex-basis: auto;
        min-width: 0;
    }

    .footer__links {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .h1 {
        font-size: 1.8rem;
    }

    .brand {
        max-width: calc(100% - 118px);
    }

    .brand__logo {
        max-width: 150px;
    }

    .legal-summary,
  .toc {
        padding-inline: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
  *::before,
  *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
