﻿body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Legal Page Header */

.legal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 12px 30px;
}

.legal-header-content {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
}


/* Logo */

.legal-logo {
    height: 60px;
    max-width: 220px;
    object-fit: contain;
    justify-self: start;
}


/* Page Title */

.legal-title {
    margin: 0;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #8B1E1E;
}


/* Print Container */

.print-container {
    justify-self: end;
    padding-right: 65px;
}


/* Print Button */

.print-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 28px;
    color: #555555;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

    .print-button:hover {
        color: #8B1E1E;
    }

    .print-button:focus {
        outline: 3px solid #005fcc;
        outline-offset: 2px;
    }


/*  Main Legal Content  */

.legal-page {
    max-width: 1100px;
    margin: 30px auto;
    padding: 40px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
}

    .legal-page p,
    .legal-page li {
        font-size: 0.9375rem;
        line-height: 1.6;
    }


/*  Legal Document Sections */

.legal-section {
    margin-top: 35px;
}

.legal-section-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 18px;
    margin-bottom: 8px;
}

.legal-section ul,
.legal-section ol {
    padding-left: 22px;
}

/* Nested unordered lists inside numbered sections */
.legal-numbered-sections > li > ul {
    list-style-type: disc;
    padding-left: 36px;
}

    .legal-numbered-sections > li > ul > li::marker {
        color: #333333;
    }
/* Document Title - e.g. TA Privacy Policy */

.legal-document-title {
    margin: 10px 0 35px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
}


/*  Links  */

.legal-page a {
    text-decoration: underline;
}


/* Keyboard Accessibility */

button:focus,
a:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}


/*  Legal Tables */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 25px 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

    .legal-table caption {
        font-weight: 700;
        font-size: 1.1rem;
        text-align: left;
        color: #333333;
        padding: 10px 0;
    }


    /* All table cells */

    .legal-table th,
    .legal-table td {
        border: 1px solid #333333;
        padding: 12px 16px;
        text-align: left;
        vertical-align: top;
        line-height: 1.5;
    }

    .legal-table tbody tr:first-child > td {
        font-weight: 700;
        text-align: center;
        vertical-align: top;
        background-color: #ffffff;
    }

    .legal-table blockquote {
        margin: 0;
        padding: 0;
    }


    /* Remove paragraph spacing inside table cells */

    .legal-table td p,
    .legal-table th p {
        margin: 0;
        padding: 0;
    }


    /* Normal table body cells */

    .legal-table tbody td {
        text-align: left;
        vertical-align: top;
        font-weight: 400;
    }

    .legal-table tbody tr:first-child > td {
        text-align: center;
        vertical-align: top;
        font-weight: 700;
    }


/* Contact Information */

.contact-information {
    max-width: 760px;
    margin: 25px 0 0 140px;
}

.contact-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
    margin-bottom: 20px;
}

.contact-label {
    text-align: right;
    font-weight: 700;
}

.contact-value {
    margin: 0;
    padding: 0;
    text-align: left;
    font-style: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

    .contact-value a {
        overflow-wrap: anywhere;
    }


/* Mailing Address */

.mailing-address-row {
    display: grid;
    grid-template-columns: 235px 1fr;
    column-gap: 14px;
    align-items: start;
}

.mailing-address-label {
    display: block;
}

.mailing-address-value {
    margin: 0;
    padding: 0;
    font-style: normal;
    line-height: 1.5;
}


/* SMS Terms & Conditions Heading */

.sms-terms-title {
    width: 100%;
    margin: 30px 0 25px 0;
    padding: 4px 10px;
    background-color: #222;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}
.normal-text {
    font-weight: 400;
}

.legal-alpha-list li::marker {
    font-weight: 700;
}
.legal-numbered-sections {
    padding-left: 2rem;
}

    .legal-numbered-sections li {
        margin-bottom: 1rem;
        font-weight: 400; /* Normal text */
        line-height: 1.7;
    }

        .legal-numbered-sections li::marker {
            font-weight: 700; /* Bold numbers */
        }

/*  Responsive / Mobile */

@media (max-width: 768px) {

    .legal-header {
        padding: 8px 12px 10px;
    }

    .legal-header-content {
        display: grid;
        grid-template-columns: 40px 1fr 40px;
        grid-template-rows: auto auto;
        align-items: center;
        width: 100%;
        gap: 6px;
    }


    /* Row 1 - Logo */

    .legal-logo {
        grid-column: 1 / -1;
        grid-row: 1;
        height: 48px;
        max-width: 200px;
        object-fit: contain;
        justify-self: center;
    }


    /* Row 2 - Page Title */

    .legal-title {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
        font-size: 1.5rem;
        line-height: 1.2;
        text-align: center;
        justify-self: center;
    }


    /* Row 2 - Print Button */

    .print-container {
        grid-column: 3;
        grid-row: 2;
        width: auto;
        padding: 0;
        justify-self: end;
        text-align: right;
    }

    .print-button {
        font-size: 24px;
        padding: 6px;
    }


    /* Main content */

    .legal-page {
        margin: 15px;
        padding: 20px;
    }


    /* Privacy Policy document title */

    .legal-document-title {
        font-size: 1.1rem;
        margin: 8px 0 24px;
        text-align: center;
    }


    /* Contact information */

    .contact-information {
        max-width: 100%;
        margin: 20px 0 0;
    }

    .contact-row {
        grid-template-columns: auto 1fr;
        column-gap: 10px;
    }

    .contact-label {
        text-align: left;
    }


    /* Mailing address */

    .mailing-address-item {
        display: block;
    }

    .mailing-address-value {
        margin-top: 6px;
    }
}


/*  Print */

@media print {

    .legal-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
    }

    .legal-header-content {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 70px;
        margin: 0;
        padding: 0;
    }

    .legal-logo {
        height: 60px;
        max-width: 220px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .legal-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
        color: #8B1E1E !important;
        white-space: nowrap;
    }


    /* Hide print button */

    .print-container {
        display: none !important;
    }

    .print-button {
        display: none !important;
    }


    /* Remove web-page card styling */

    .legal-page {
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    body {
        background: white;
    }


    /* Keep SMS heading background when printing */

    .sms-terms-title {
        background-color: #222 !important;
        color: #fff !important;
        text-align: center !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        padding: 4px 10px !important;
        margin: 20px 0 15px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .legal-table th,
    .legal-table td {
        vertical-align: top !important;
    }

    .legal-table tbody td {
        text-align: left !important;
    }

    .legal-table tbody tr:first-child > td {
        text-align: center !important;
        vertical-align: top !important;
        font-weight: 700 !important;
    }

    .legal-table blockquote {
        margin: 0 !important;
        padding: 0 !important;
    }

    .legal-table td p,
    .legal-table th p {
        margin: 0 !important;
        padding: 0 !important;
    }
}
.contact-table {
    margin-top: 25px;
    border-collapse: collapse;
}

    .contact-table th {
        text-align: left;
        vertical-align: top;
        padding: 8px 20px 8px 0;
        white-space: nowrap;
        font-weight: 600;
    }

    .contact-table td {
        padding: 8px 0;
        text-align: left;
        line-height: 1.7;
    }
