/* Legal Page Navigation */
.legal-nav {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-bottom: 3rem;
}
.legal-nav-inner {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.legal-nav-inner::-webkit-scrollbar {
    display: none;
}
.legal-nav-item {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    transition: all 0.15s ease;
    text-decoration: none;
}
.legal-nav-item:hover {
    color: #111827;
    background: #f3f4f6;
}
.legal-nav-active {
    background: #111827;
    color: #fff;
}
.legal-nav-active:hover {
    background: #1f2937;
    color: #fff;
}

/* Two-column Layout */
.legal-layout {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Table of Contents */
.legal-toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.legal-toc::-webkit-scrollbar {
    width: 3px;
}
.legal-toc::-webkit-scrollbar-track {
    background: transparent;
}
.legal-toc::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
.legal-toc-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 1rem;
}
.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.legal-toc-item {
    margin-bottom: 0.125rem;
}
.legal-toc-link {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.4;
}
.legal-toc-link:hover {
    color: #111827;
    border-left-color: #d1d5db;
}
.legal-toc-link.active {
    color: #111827;
    font-weight: 500;
    border-left-color: #111827;
}
.legal-toc-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}
.legal-toc-actions a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s ease;
}
.legal-toc-actions a:hover {
    color: #6b7280;
}
.legal-toc-actions svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Mobile TOC */
.legal-toc-mobile {
    display: none;
    margin-bottom: 2rem;
}
.legal-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}
.legal-toc-toggle:hover {
    background: #f3f4f6;
}
.legal-toc-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    transition: transform 0.2s ease;
}
.legal-toc-toggle.open svg {
    transform: rotate(180deg);
}
.legal-toc-dropdown {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.legal-toc-dropdown.open {
    display: block;
}
.legal-toc-dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}
.legal-toc-dropdown a:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Content Area */
.legal-content {
    max-width: 48rem;
}

/* Section Cards */
.legal-section {
    border-left: 2px solid #e5e7eb;
    padding-left: 1.5rem;
    padding-bottom: 2.5rem;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease;
}
.legal-section:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
}
.legal-section:hover {
    border-left-color: #d1d5db;
}
.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}
.legal-section .section-body {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.legal-section .section-body p {
    margin-bottom: 1rem;
}
.legal-section .section-body p:last-child {
    margin-bottom: 0;
}
.legal-section .section-body strong {
    color: #111827;
    font-weight: 600;
}
.legal-section .section-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}
.legal-section .section-body li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}
.legal-section .section-body a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s ease;
}
.legal-section .section-body a:hover {
    opacity: 0.7;
}

/* Tables within sections */
.legal-section .section-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}
.legal-section .section-body thead {
    background: #f9fafb;
}
.legal-section .section-body th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}
.legal-section .section-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.legal-section .section-body tbody tr:hover {
    background: #f9fafb;
}

/* Contact CTA */
.legal-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    text-align: center;
}
.legal-contact p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}
.legal-contact a {
    color: #111827;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-contact a:hover {
    opacity: 0.7;
}

/* Hero Section */
.legal-hero {
    max-width: 72rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 2.5rem;
    text-align: center;
}
.legal-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.legal-hero .legal-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.legal-hero .legal-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: #9ca3af;
}
.legal-hero .legal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.legal-hero .legal-meta-item span:first-child {
    font-weight: 500;
    color: #6b7280;
}
.legal-hero .legal-meta-divider {
    width: 1px;
    height: 1rem;
    background: #e5e7eb;
}

/* Prev/Next Navigation */
.legal-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}
.legal-prev-next-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
    min-width: 140px;
}
.legal-prev-next-link:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.legal-prev-next-right {
    text-align: right;
    margin-left: auto;
}
.legal-prev-next-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}
.legal-prev-next-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

/* Hub Page */
.legal-hub {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.legal-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.legal-hub-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.legal-hub-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}
.legal-hub-card-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 0.5rem;
    color: #6b7280;
}
.legal-hub-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.legal-hub-card:hover .legal-hub-card-icon {
    background: #f3f4f6;
    color: #111827;
}
.legal-hub-card-content {
    flex: 1;
    min-width: 0;
}
.legal-hub-card-content h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}
.legal-hub-card-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}
.legal-hub-card-date {
    font-size: 0.6875rem;
    color: #9ca3af;
}
.legal-hub-card-arrow {
    flex-shrink: 0;
    color: #d1d5db;
    transition: all 0.15s ease;
}
.legal-hub-card-arrow svg {
    width: 1rem;
    height: 1rem;
}
.legal-hub-card:hover .legal-hub-card-arrow {
    color: #111827;
    transform: translateX(2px);
}
.legal-hub-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    text-align: center;
}
.legal-hub-contact p {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}
.legal-hub-contact a {
    color: #111827;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-hub-contact a:hover {
    opacity: 0.7;
}

/* Enterprise badge */
.legal-enterprise-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border: 1px solid #d1d5db;
    color: #6b7280;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}
.legal-hub-card-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: #111827;
    color: white;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Request Page (on-request documents like SCC, NDA) */
.legal-request-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.legal-request-content {
    max-width: 40rem;
    margin: 0 auto;
}
.legal-request-intro {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #6b7280;
    margin-bottom: 2.5rem;
}
.legal-request-intro a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-request-intro a:hover {
    opacity: 0.7;
}
.legal-request-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}
.legal-request-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    counter-reset: step;
}
.legal-request-steps li {
    counter-increment: step;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    position: relative;
    border-left: 2px solid #e5e7eb;
    margin-left: 0.75rem;
}
.legal-request-steps li:last-child {
    border-left-color: transparent;
}
.legal-request-steps li::before {
    content: counter(step);
    position: absolute;
    left: -0.875rem;
    top: 1.25rem;
    width: 1.75rem;
    height: 1.75rem;
    background: #111827;
    color: white;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.legal-request-steps li strong {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}
.legal-request-steps li span {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}
.legal-request-cta {
    text-align: center;
    padding: 2.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
}
.legal-request-cta .cta-primary {
    margin-bottom: 0.75rem;
}
.legal-request-cta p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}
.legal-request-cta p a {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2rem;
    }
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .legal-toc {
        display: none;
    }
    .legal-toc-mobile {
        display: block;
    }
    .legal-nav-inner {
        padding: 0 0.5rem;
    }
    .legal-section {
        padding-left: 1.25rem;
    }
    .legal-prev-next {
        flex-direction: column;
    }
    .legal-prev-next-right {
        text-align: left;
        margin-left: 0;
    }
    .legal-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* Print */
@media print {
    .legal-toc,
    .legal-toc-mobile,
    .legal-nav,
    .legal-prev-next,
    .legal-contact,
    .legal-hub-contact,
    .legal-toc-actions,
    .legal-print-link {
        display: none !important;
    }
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .legal-section {
        border-left: none;
        padding-left: 0;
        break-inside: avoid;
    }
    .legal-hero {
        padding: 1rem 0;
    }
    .legal-hero h1 {
        font-size: 1.5rem;
    }
}
