/* ==========================================================================
   OMNATIX legal pages (Terms and Conditions, Privacy Policy)
   Self contained. Matches the main site palette without pulling in styles.css.
   ========================================================================== */

:root {
    --black: #000000;
    --black-light: #0a0a0a;
    --black-card: #111111;
    --gray-900: #171717;
    --gray-800: #1f1f1f;
    --gray-700: #2a2a2a;
    --gray-600: #3a3a3a;
    --gray-400: #7c7c7c;
    --gray-300: #999999;
    --gray-200: #bbbbbb;
    --gray-100: #dddddd;
    --white: #ffffff;
    --white-05: rgba(255, 255, 255, 0.05);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-10: rgba(255, 255, 255, 0.10);
    --white-15: rgba(255, 255, 255, 0.15);
    --white-60: rgba(255, 255, 255, 0.60);
    --white-80: rgba(255, 255, 255, 0.80);
    --accent: #c9a84c;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-primary: Verdana, Geneva, sans-serif;
    --font-display: Verdana, Geneva, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--gray-100);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--white-40, rgba(255, 255, 255, 0.4));
    transition: color var(--transition), text-decoration-color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--white);
    color: var(--black);
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================ Header ============================ */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--white-08);
}

.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.legal-brand img {
    height: 40px;
    width: auto;
    display: block;
}

.legal-brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.16em;
}

.legal-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.legal-header nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-200);
    text-decoration: none;
}

.legal-header nav a:hover,
.legal-header nav a:focus-visible { color: var(--white); }

.legal-header nav a.is-current { color: var(--accent); }

/* ============================ Page head ============================ */

.legal-hero {
    padding: 72px 0 44px;
    border-bottom: 1px solid var(--white-08);
    background:
        radial-gradient(720px 320px at 12% -10%, rgba(201, 168, 76, 0.10), transparent 70%),
        var(--black);
}

.legal-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    color: var(--white);
    text-wrap: balance;
}

.legal-hero .lede {
    font-size: 1.06rem;
    color: var(--gray-200);
    max-width: 64ch;
    margin: 0 0 26px;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    font-size: 13.5px;
    color: var(--gray-400);
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-meta strong {
    color: var(--gray-200);
    font-weight: 600;
}

/* ============================ Layout ============================ */

.legal-layout {
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding: 56px 0 96px;
}

/* ============================ Table of contents ============================ */

.legal-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    border: 1px solid var(--white-08);
    border-radius: var(--radius-md);
    background: var(--black-light);
    padding: 22px 20px;
}

.legal-toc h2 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin: 0 0 14px;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc li { counter-increment: toc; }

.legal-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--gray-300);
    text-decoration: none;
}

.legal-toc a::before {
    content: counter(toc);
    flex: 0 0 auto;
    min-width: 18px;
    font-variant-numeric: tabular-nums;
    color: var(--gray-600);
    font-weight: 600;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    background: var(--white-05);
    color: var(--white);
}

.legal-toc a.is-active {
    background: var(--white-08);
    color: var(--white);
}

.legal-toc a.is-active::before { color: var(--accent); }

/* ============================ Body copy ============================ */

.legal-body {
    max-width: 78ch;
    counter-reset: section;
}

.legal-body section {
    padding-top: 8px;
    margin-bottom: 52px;
    scroll-margin-top: 96px;
}

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

.legal-body h2 {
    counter-increment: section;
    font-family: var(--font-display);
    font-size: clamp(1.32rem, 2.6vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--white);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--white-08);
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.legal-body h2::before {
    content: counter(section);
    flex: 0 0 auto;
    font-size: 0.82em;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 700;
}

.legal-body h3 {
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
    margin: 32px 0 12px;
}

.legal-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-100);
    margin: 24px 0 10px;
}

.legal-body p {
    margin: 0 0 16px;
    color: var(--gray-200);
    text-wrap: pretty;
}

.legal-body ul,
.legal-body ol {
    margin: 0 0 18px;
    padding-left: 26px;
    color: var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.legal-body li { padding-left: 4px; }

.legal-body li::marker { color: var(--gray-500, #555); }

.legal-body strong { color: var(--white); font-weight: 600; }

.legal-body a { color: var(--gray-100); }

.legal-body a:hover,
.legal-body a:focus-visible { color: var(--accent); }

/* ============================ Callout ============================ */

.legal-note {
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    background: var(--black-light);
    padding: 20px 22px;
    margin: 0 0 22px;
}

.legal-note.is-key {
    border-color: rgba(201, 168, 76, 0.34);
    background: rgba(201, 168, 76, 0.06);
}

.legal-note > :first-child { margin-top: 0; }
.legal-note > :last-child { margin-bottom: 0; }

.legal-note h3 {
    margin-top: 0 !important;
    font-size: 0.95rem;
}

/* ============================ Definition list ============================ */

.legal-dl {
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.legal-dl > div {
    border-left: 2px solid var(--white-10);
    padding-left: 18px;
}

.legal-dl dt {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
}

.legal-dl dd {
    margin: 0;
    color: var(--gray-200);
}

/* ============================ Tables ============================ */

.legal-table-wrap {
    overflow-x: auto;
    margin: 0 0 22px;
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}

.legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14.5px;
}

.legal-table caption {
    caption-side: top;
    text-align: left;
    padding: 16px 18px 0;
    color: var(--gray-400);
    font-size: 13px;
}

.legal-table th,
.legal-table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--white-08);
}

.legal-table thead th {
    background: var(--white-05);
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: none; }

.legal-table tbody th {
    font-weight: 500;
    color: var(--gray-100);
}

/* ============================ Contact block ============================ */

.legal-contact {
    border: 1px solid var(--white-10);
    border-radius: var(--radius-md);
    background: var(--black-light);
    padding: 24px 26px;
    display: grid;
    gap: 6px;
}

.legal-contact p { margin: 0; }

/* ============================ Footer ============================ */

.legal-footer {
    border-top: 1px solid var(--white-08);
    background: var(--black-light);
    padding: 52px 0 40px;
}

.legal-footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--white-08);
}

.legal-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 40ch;
}

.legal-footer-brand img { height: 56px; width: auto; }

.legal-footer-brand .wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.18em;
    color: var(--white);
}

.legal-footer-brand p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-400);
}

.legal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 34px;
}

.legal-footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 150px;
}

.legal-footer-col h3 {
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray-400);
    font-family: var(--font-display);
}

.legal-footer-col a {
    font-size: 14px;
    color: var(--gray-200);
    text-decoration: none;
}

.legal-footer-col a:hover,
.legal-footer-col a:focus-visible { color: var(--accent); }

.legal-footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-400);
}

.legal-footer-bottom p { margin: 0; }

/* ============================ Site wide legal strip ============================ */
/* Used inside the footers of the other pages on the site. */

.site-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    align-items: center;
    justify-content: center;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    line-height: 1.6;
    list-style: none;
}

.site-legal-links li { margin: 0; }

.site-legal-links a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-family: var(--font-primary);
}

.site-legal-links a:hover,
.site-legal-links a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================ Responsive ============================ */

@media (max-width: 1000px) {
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
        padding-top: 40px;
    }

    .legal-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .legal-toc ol {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2px 12px;
    }
}

@media (max-width: 700px) {
    body { font-size: 15.5px; }

    .container { padding: 0 18px; }

    .legal-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .legal-header nav { gap: 16px; }

    .legal-hero { padding: 44px 0 34px; }

    .legal-body section { margin-bottom: 42px; }

    .legal-body h2 {
        flex-direction: column;
        gap: 4px;
    }

    .legal-footer-top { gap: 28px; }

    .legal-footer-nav { gap: 24px; }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================ Print ============================ */

@media print {
    :root { --white: #000000; }

    body {
        background: #ffffff;
        color: #111111;
        font-size: 10.5pt;
        line-height: 1.55;
    }

    .legal-header,
    .legal-toc,
    .legal-footer,
    .skip-link { display: none !important; }

    .legal-hero {
        padding: 0 0 18pt;
        background: none;
        border-bottom: 1pt solid #999999;
    }

    .legal-hero h1 { color: #000000; font-size: 20pt; }

    .legal-eyebrow { color: #555555; }

    .legal-layout {
        display: block;
        padding: 0;
    }

    .legal-body { max-width: none; }

    .legal-body section {
        margin-bottom: 16pt;
        page-break-inside: avoid;
    }

    .legal-body h2 {
        color: #000000;
        font-size: 12.5pt;
        border-bottom: 0.5pt solid #bbbbbb;
        page-break-after: avoid;
    }

    .legal-body h2::before { color: #555555; }

    .legal-body h3 { color: #000000; page-break-after: avoid; }

    .legal-body p,
    .legal-body li,
    .legal-body dd { color: #222222; }

    .legal-body strong { color: #000000; }

    .legal-body a {
        color: #000000;
        text-decoration: underline;
    }

    .legal-note,
    .legal-contact {
        border: 0.5pt solid #999999;
        background: none;
        page-break-inside: avoid;
    }

    .legal-table-wrap {
        overflow: visible;
        border: 0.5pt solid #999999;
    }

    .legal-table { min-width: 0; }

    .legal-table thead th {
        background: #eeeeee;
        color: #000000;
    }

    .legal-table th,
    .legal-table td { border-bottom: 0.5pt solid #cccccc; }
}

/* SEO UPDATE 2026-10-23 */
.legal-footer-brand .footer-bbbee { margin-top: 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-300); }
