/* ===================================================================
   PrivacyPolicy.css
   Task 32049 — PayCBE Privacy Policy
   Table styling for the two tables on the Privacy page:
     * Categories of Personal Information
     * States With Comprehensive Privacy Laws
   Loaded via _CommonStylesPartial.cshtml.

   Inline styles cannot be used on this page because the site's nonce-based
   Content-Security-Policy strips style attributes that lack the nonce,
   leaving tables unstyled. These class-based rules load from a trusted
   same-origin stylesheet and so are not blocked.
   =================================================================== */

/* Scroll wrapper around tables for narrow viewports. */
.privacy-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
    width: 100%;
}

/* Base table layout. */
.privacy-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Default header — plain white background, bold, left-aligned.
   Used for the Categories of Personal Information table, which the source
   document renders without any header shading. */
.privacy-table thead th {
    background: #ffffff;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    text-align: left;
    font-weight: 700;
    color: #111827;
    vertical-align: top;
}

/* Dark-header variant — matches the States With Comprehensive Privacy Laws
   table in the source document (navy fill #1B3A5C, white text). Applied
   via an extra `privacy-table--dark-header` class on the <table>. */
    .privacy-table.privacy-table--dark-header thead th {
        background: #1B3A5C;
        color: #ffffff;
        border-color: #1B3A5C;
        border-right-color: #ffffff;
    }

/* Body cells — same borders, consistent padding, top-aligned so long
   examples align with their category label.
   font-weight: 400 is explicit so cells render in normal weight even when
   the table is nested inside a parent that applies `font-bold` (e.g. the
   wrapping <ol class="font-bold" type="A"> for Section VIII). Only cells
   explicitly wrapped in <strong> (such as the first-column state names in
   the state-laws table) should render bold. */
.privacy-table tbody td {
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    vertical-align: top;
    color: #1f2937;
    font-weight: 400;
}

/* Zebra striping — the source document uses #F5F8FA for alternating body
   rows ONLY on the dark-header (state-laws) table. The Category table has
   NO shading in the source. Pattern is odd rows shaded (1st, 3rd, 5th,…)
   to match the document, which starts with California shaded. */
.privacy-table.privacy-table--dark-header tbody tr:nth-child(odd) {
    background: #F5F8FA;
}
