/* ============================================================
   THE NEW KITS — Legal Page Stylesheet
   Used by: Terms, Privacy, Cookies, Shipping, Returns
   ============================================================ */

.tnk-legal-page {
    --black: #131313;
    --white: #ffffff;
    --red: #E31E24;
    --red-dark: #B81015;
    --grey-50: #fafafa;
    --grey-100: #f5f5f5;
    --grey-150: #ededed;
    --grey-200: #e5e5e5;
    --grey-300: #d4d4d4;
    --grey-400: #a3a3a3;
    --grey-500: #6b6862;
    --grey-700: #404040;
    --section: 80px;
    --pad: 32px;
}

.tnk-legal-page {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.tnk-legal-page .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--pad);
}
@media (max-width: 640px) {
    .tnk-legal-page .container { padding: 0 20px; }
}

/* ============= HERO ============= */
.tnk-legal-page .legal-hero {
    padding: 56px 0 36px;
    background: linear-gradient(180deg, #f7f5f0 0%, #fff 100%);
    border-bottom: 1px solid var(--grey-150);
}
.tnk-legal-page .legal-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--grey-500);
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.tnk-legal-page .legal-hero__breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.tnk-legal-page .legal-hero__breadcrumb a:hover { color: var(--black); }
.tnk-legal-page .legal-hero__breadcrumb svg { color: var(--grey-400); }
.tnk-legal-page .legal-hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--black);
    margin: 0 0 14px;
}
.tnk-legal-page .legal-hero__lede {
    font-size: 17px;
    line-height: 1.55;
    color: var(--grey-700);
    max-width: 720px;
    margin: 0 0 22px;
}
.tnk-legal-page .legal-hero__updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--grey-500);
    background: rgba(255,255,255,0.6);
    border: 1px solid var(--grey-200);
    padding: 6px 12px;
    border-radius: 999px;
}
.tnk-legal-page .legal-hero__updated svg { color: var(--grey-500); }

/* ============= BODY GRID ============= */
.tnk-legal-page .legal-body {
    padding: 56px 0 64px;
    background: #fff;
}
.tnk-legal-page .legal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) {
    .tnk-legal-page .legal-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* TOC sidebar */
.tnk-legal-page .legal-toc {
    position: sticky;
    top: 88px;
    align-self: start;
}
.tnk-legal-page .legal-toc__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-500);
    margin: 0 0 14px;
}
.tnk-legal-page .legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--grey-200);
}
.tnk-legal-page .legal-toc__list li { margin: 0; }
.tnk-legal-page .legal-toc__list a {
    display: block;
    padding: 8px 0 8px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 13px;
    color: var(--grey-500);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1.4;
}
.tnk-legal-page .legal-toc__list a:hover {
    color: var(--black);
    border-left-color: var(--red);
}
.tnk-legal-page .legal-toc__list a.is-active {
    color: var(--black);
    border-left-color: var(--red);
    font-weight: 600;
}
.tnk-legal-page .legal-toc__header {
    display: none;
    width: 100%;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
}
.tnk-legal-page .legal-toc__header__icon { transition: transform 0.2s; }
.tnk-legal-page .legal-toc[aria-expanded="true"] .legal-toc__header__icon { transform: rotate(180deg); }
@media (max-width: 900px) {
    .tnk-legal-page .legal-toc { position: static; }
    .tnk-legal-page .legal-toc__title { display: none; }
    .tnk-legal-page .legal-toc__header { display: flex; }
    .tnk-legal-page .legal-toc__list {
        display: none;
        border: 1px solid var(--grey-200);
        border-top: none;
        border-radius: 0 0 8px 8px;
        margin-top: -1px;
        padding: 8px 16px;
        background: #fff;
    }
    .tnk-legal-page .legal-toc[aria-expanded="true"] .legal-toc__list { display: block; }
}

/* Content body */
.tnk-legal-page .legal-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--grey-700);
    max-width: 760px;
}
.tnk-legal-page .legal-content h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--black);
    margin: 48px 0 16px;
    line-height: 1.2;
    scroll-margin-top: 100px;
}
.tnk-legal-page .legal-content h2:first-child { margin-top: 0; }
.tnk-legal-page .legal-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    margin: 28px 0 10px;
}
.tnk-legal-page .legal-content p {
    margin: 0 0 16px;
    color: var(--grey-700);
}
.tnk-legal-page .legal-content a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.15s;
}
.tnk-legal-page .legal-content a:hover { color: var(--red-dark); }
.tnk-legal-page .legal-content ul,
.tnk-legal-page .legal-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
.tnk-legal-page .legal-content li {
    margin-bottom: 6px;
    color: var(--grey-700);
}
.tnk-legal-page .legal-content strong { color: var(--black); font-weight: 700; }
.tnk-legal-page .legal-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--grey-100);
    border-left: 3px solid var(--red);
    font-style: italic;
}
.tnk-legal-page .legal-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid var(--grey-200);
}

/* ============= RELATED POLICIES ============= */
.tnk-legal-page .related-policies {
    padding: var(--section) 0;
    background: var(--grey-50);
    border-top: 1px solid var(--grey-150);
}
.tnk-legal-page .related-policies__head {
    text-align: center;
    margin-bottom: 36px;
}
.tnk-legal-page .related-policies__head h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--black);
    margin: 0 0 8px;
}
.tnk-legal-page .related-policies__head p {
    font-size: 15px;
    color: var(--grey-500);
    margin: 0;
}
.tnk-legal-page .related-policies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
.tnk-legal-page .related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    color: var(--black);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tnk-legal-page .related-card:hover {
    border-color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}
.tnk-legal-page .related-card__title { font-weight: 700; font-size: 15px; }
.tnk-legal-page .related-card__arrow {
    color: var(--grey-400);
    transition: color 0.2s, transform 0.2s;
}
.tnk-legal-page .related-card:hover .related-card__arrow {
    color: var(--red);
    transform: translateX(4px);
}
.tnk-legal-page .related-card.is-current {
    background: var(--grey-100);
    border-color: var(--grey-300);
    cursor: default;
}
.tnk-legal-page .related-card.is-current .related-card__arrow { color: var(--grey-500); }

/* ============= FINAL CTA ============= */
.tnk-legal-page .final-cta {
    text-align: center;
    background: var(--black);
    color: var(--white);
    padding: var(--section) 0;
}
.tnk-legal-page .final-cta h2 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--white);
}
.tnk-legal-page .final-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 28px;
}
.tnk-legal-page .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--red);
    color: var(--white) !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s, box-shadow 0.2s;
    margin-right: 12px;
}
.tnk-legal-page .btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(227, 30, 36, 0.3);
}
.tnk-legal-page .btn-primary svg { transition: transform 0.2s; }
.tnk-legal-page .btn-primary:hover svg { transform: translateX(3px); }
.tnk-legal-page .btn-secondary-dark {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--white) !important;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.tnk-legal-page .btn-secondary-dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
}
@media (max-width: 639px) {
    .tnk-legal-page .final-cta { padding: 48px 0; }
    .tnk-legal-page .btn-primary,
    .tnk-legal-page .btn-secondary-dark {
        display: flex;
        justify-content: center;
        margin: 0 auto 12px;
        max-width: 280px;
    }
}
