/* Accessibility utilities */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: #FFD700;
    color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 20px;
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

#main-content {
    scroll-margin-top: 80px;
}

#main-content:focus {
    outline: 3px solid #1a73e8;
    outline-offset: 4px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Regulatory / policy page layout */
.regulatory-page {
    padding: 100px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

.regulatory-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.regulatory-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.regulatory-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #FFD700;
}

.regulatory-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a73e8;
    margin-bottom: 12px;
    line-height: 1.3;
}

.registration-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    color: #2e7d32;
    font-weight: 600;
}

.regulatory-section {
    margin: 28px 0;
}

.regulatory-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD700;
}

.regulatory-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
}

.regulatory-section p,
.regulatory-section li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.regulatory-section ol,
.regulatory-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.registration-list {
    list-style: lower-alpha;
    margin-left: 24px;
}

.registration-list li {
    margin-bottom: 10px;
}

.registration-list a {
    color: #1a73e8;
    font-weight: 500;
}

.registration-list a:hover,
.regulatory-section a:hover {
    text-decoration: underline;
}

.warning-text {
    color: #c0392b;
    font-weight: 600;
}

.contact-details {
    background: #fffbea;
    border: 1px solid #ffe58f;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
}

.contact-details address {
    font-style: normal;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    background: #FFD700;
    color: #1a1a1a;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.back-link:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

.back-link:focus {
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

/* Accessible data tables */
.data-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    padding: 12px 0;
}

.data-table thead th {
    background: #8b2942;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #6b1f33;
}

.data-table thead th[scope="col"] {
    vertical-align: bottom;
}

.data-table tbody td,
.data-table tbody th {
    padding: 10px;
    border: 1px solid #ddd;
}

.data-table tbody th[scope="row"] {
    background: #f5e6ea;
    font-weight: 600;
    text-align: left;
}

.data-table tbody tr:nth-child(even) td {
    background: #fdf5f7;
}

.data-table tbody tr.total-row th,
.data-table tbody tr.total-row td {
    background: #f0f0f0;
    font-weight: 700;
}

.data-table.monthly thead th {
    background: #4a4a4a;
    border-color: #333;
}

.data-table.monthly tbody th[scope="row"] {
    background: #ececec;
}

.data-table.monthly tbody tr:nth-child(even) td {
    background: #f9f9f9;
}

/* Site header for inner pages */
.site-header {
    background: rgba(26, 26, 26, 0.98);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFD700;
    font-weight: 700;
}

.site-header .logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Regulatory footer */
.regulatory-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 40px 0 30px;
    margin-top: 40px;
}

.regulatory-footer .footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.regulatory-footer .footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.regulatory-footer .footer-links a:hover,
.regulatory-footer .footer-links a:focus {
    color: #FFD700;
    text-decoration: underline;
}

.regulatory-footer p {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 768px) {
    .regulatory-content {
        padding: 24px 16px;
    }

    .regulatory-header h1 {
        font-size: 1.4rem;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table thead th,
    .data-table tbody td,
    .data-table tbody th {
        padding: 8px 6px;
    }
}
