.hpm,
.hpm * {
    box-sizing: border-box;
}

.hpm {
    --hpm-primary: #1363df;
    --hpm-primary-dark: #0b46a0;
    --hpm-accent: #47b5ff;
    --hpm-text: #172033;
    --hpm-muted: #667085;
    --hpm-border: #e4e7ec;
    --hpm-surface: #ffffff;
    --hpm-soft: #f8fbff;
    --hpm-shadow: 0 14px 40px rgba(20, 42, 86, 0.08);
    color: var(--hpm-text);
}

.hpm a {
    color: var(--hpm-primary);
    text-decoration: none;
}

.hpm a:hover,
.hpm a:focus {
    color: var(--hpm-primary-dark);
    text-decoration: underline;
}

.hpm-sidebar-lock {
    overflow: hidden;
}

.hpm-button {
    align-items: center;
    background: var(--hpm-primary);
    border: 1px solid var(--hpm-primary);
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    padding: 10px 18px;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hpm-button:hover,
.hpm-button:focus {
    background: var(--hpm-primary-dark);
    border-color: var(--hpm-primary-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.hpm-policy-list-wrap {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    margin: 24px 0;
}

.hpm-policy-sidebar,
.hpm-policy-results,
.hpm-policy-detail-box,
.hpm-policy-tree-view {
    background: var(--hpm-surface);
    border: 1px solid var(--hpm-border);
    border-radius: 18px;
    box-shadow: var(--hpm-shadow);
}

.hpm-policy-sidebar {
    align-self: start;
    padding: 18px;
    position: sticky;
    top: 24px;
}

.hpm-search-box {
    margin-bottom: 18px;
}

.hpm-policy-search {
    background: #ffffff;
    border: 1px solid var(--hpm-border);
    border-radius: 12px;
    color: var(--hpm-text);
    min-height: 44px;
    padding: 10px 14px;
    width: 100%;
}

.hpm-policy-search:focus {
    border-color: var(--hpm-primary);
    box-shadow: 0 0 0 3px rgba(19, 99, 223, 0.12);
    outline: none;
}

.hpm-filter-tree,
.hpm-tree-list,
.hpm-tax-tree,
.hpm-term-policy-list,
.hpm-admin-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-tree-list {
    margin-left: 10px;
}

.hpm-tree-list-item {
    margin: 4px 0;
}

.hpm-tree-row {
    align-items: center;
    display: flex;
    gap: 4px;
}

.hpm-tree-toggle,
.hpm-tree-spacer {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--hpm-muted);
    display: inline-flex;
    height: 26px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

.hpm-tree-toggle {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hpm-tree-list-item.is-collapsed > .hpm-tree-row .hpm-tree-toggle {
    transform: rotate(-90deg);
}

.hpm-tree-list-item.is-collapsed > .hpm-tree-list {
    display: none;
}

.hpm-filter-term {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--hpm-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 8px;
    justify-content: space-between;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.hpm-filter-term:hover,
.hpm-filter-term:focus,
.hpm-filter-term.is-active {
    background: #edf5ff;
    color: var(--hpm-primary-dark);
    outline: none;
}

.hpm-count {
    background: #eef2f7;
    border-radius: 999px;
    color: var(--hpm-muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
}

.hpm-policy-results {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.hpm-policy-card {
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff 0%, var(--hpm-soft) 100%);
    border: 1px solid var(--hpm-border);
    border-radius: 16px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hpm-policy-card:hover {
    border-color: rgba(19, 99, 223, 0.36);
    box-shadow: 0 12px 32px rgba(19, 99, 223, 0.10);
    transform: translateY(-2px);
}

.hpm-layout-cards .hpm-policy-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hpm-layout-cards .hpm-policy-card {
    flex-direction: column;
    height: 100%;
}

.hpm-policy-card-main {
    min-width: 0;
}

.hpm-policy-card-action {
    flex: 0 0 auto;
}

.hpm-policy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hpm-badge {
    background: #eaf3ff;
    border: 1px solid #cfe4ff;
    border-radius: 999px;
    color: var(--hpm-primary-dark) !important;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    text-decoration: none !important;
}

.hpm-policy-title {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.25;
    margin: 0 0 10px;
}

.hpm-policy-title a {
    color: var(--hpm-text);
}

.hpm-policy-summary {
    color: var(--hpm-muted);
    margin: 0 0 14px;
}

.hpm-policy-meta-inline {
    color: var(--hpm-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 8px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-policy-meta-inline li {
    position: relative;
}

.hpm-policy-meta-inline li:not(:last-child)::after {
    color: #c0c7d3;
    content: "•";
    position: absolute;
    right: -12px;
}

.hpm-notice {
    background: #f9fafb;
    border: 1px dashed var(--hpm-border);
    border-radius: 14px;
    color: var(--hpm-muted);
    margin: 0;
    padding: 16px;
}

.hpm-empty-state {
    grid-column: 1 / -1;
}

.hpm-policy-detail-box {
    margin: 0 0 24px;
    padding: 20px;
}

.hpm-policy-detail-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.hpm-policy-detail-item {
    background: var(--hpm-soft);
    border: 1px solid var(--hpm-border);
    border-radius: 14px;
    padding: 14px;
}

.hpm-policy-detail-item span {
    color: var(--hpm-muted);
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.hpm-policy-detail-item strong {
    color: var(--hpm-text);
    display: block;
}

.hpm-policy-attachment {
    margin: 18px 0 0;
}

.hpm-policy-tree-view {
    margin: 24px 0;
    padding: 20px;
}

.hpm-support-layout {
    background: #f5f5f6;
    display: grid;
    gap: clamp(16px, 1.5vw, 24px);
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    margin: 0;
    padding: clamp(14px, 1.5vw, 24px);
    position: relative;
}

.hpm-support-sidebar,
.hpm-support-main,
.hpm-support-detail {
    background: var(--hpm-surface);
    border: 1px solid #e8e8eb;
    border-radius: 4px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.05);
}

.hpm-support-sidebar {
    align-self: start;
    background: #dedfe1;
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 0 16px 18px;
    position: sticky;
    top: 16px;
}

.hpm-support-sidebar-head {
    align-items: center;
    background: #c9cbce;
    border-bottom: 1px solid #bfc1c4;
    display: flex;
    justify-content: space-between;
    margin: 0 -16px 14px;
    min-height: 62px;
    padding: 13px 16px;
}

.hpm-support-sidebar-head strong {
    color: #292d32;
    display: block;
    font-size: 17px;
    line-height: 1.35;
    text-transform: none;
}

.hpm-support-sidebar-close,
.hpm-support-mobile-toggle {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: none;
    justify-content: center;
}

.hpm-support-sidebar-close {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    color: #292d32;
    font-size: 22px;
    height: 34px;
    width: 34px;
}

.hpm-support-mobile-toggle {
    background: #24282e;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 800;
    gap: 8px;
    padding: 12px 16px;
}

.hpm-support-tree {
    display: block;
}

.hpm-support-tree-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-support-tree-root {
    display: grid;
    gap: 4px;
}

.hpm-support-tree-list .hpm-support-tree-list {
    border-left: 1px solid #e4e6eb;
    margin: 4px 0 6px 22px;
    padding-left: 12px;
}

.hpm-support-tree-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-support-tree-row {
    align-items: stretch;
    display: flex;
    gap: 4px;
    min-height: 44px;
}

.hpm-support-tree-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 3px;
    color: #757b85;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: 15px;
    justify-content: center;
    margin: 2px 0;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.hpm-support-tree-toggle:hover,
.hpm-support-tree-toggle:focus {
    background: rgba(255, 255, 255, 0.7);
    color: #ec1c24;
    outline: none;
}

.hpm-support-tree-toggle span {
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.hpm-support-tree-item.is-collapsed > .hpm-support-tree-row .hpm-support-tree-toggle span {
    transform: rotate(-90deg);
}

.hpm-support-tree-item.is-collapsed > .hpm-support-tree-row .hpm-support-tree-toggle {
    transform: none;
}

.hpm-support-tree-spacer {
    flex: 0 0 30px;
}

.hpm-support-tree-item.is-collapsed > .hpm-support-document-list,
.hpm-support-tree-item.is-collapsed > .hpm-support-tree-list {
    display: none;
}

.hpm-support-term-link {
    align-items: center;
    border-radius: 3px;
    color: var(--hpm-text) !important;
    display: flex;
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    min-height: 42px;
    padding: 10px 9px;
    text-transform: none;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.hpm-support-term-link:hover,
.hpm-support-term-link:focus,
.hpm-support-term-link.is-active {
    background: rgba(255, 255, 255, 0.72);
    color: #111827 !important;
    outline: none;
}

.hpm-support-term-link.is-active {
    background: #ffffff;
    box-shadow: inset 3px 0 0 #ec1c24;
    color: #ec1c24 !important;
}

.hpm-support-document-list {
    display: grid;
    gap: 2px;
    list-style: none;
    margin: 2px 0 8px 36px;
    padding: 0;
}

.hpm-support-document-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-support-document-link {
    align-items: flex-start;
    border-left: 2px solid transparent;
    border-radius: 3px;
    color: #555b66 !important;
    display: flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.45;
    padding: 8px 10px 8px 14px;
    position: relative;
    text-decoration: none !important;
    text-transform: none;
}

.hpm-support-document-link::before {
    background: #c4c7ce;
    border-radius: 999px;
    content: "";
    flex: 0 0 6px;
    height: 6px;
    margin-top: 7px;
    width: 6px;
}

.hpm-support-document-link:hover,
.hpm-support-document-link:focus,
.hpm-support-document-link.is-active {
    background: rgba(255, 255, 255, 0.82);
    border-left-color: #ec1c24;
    color: #ec1c24 !important;
}

.hpm-support-document-link:hover::before,
.hpm-support-document-link:focus::before,
.hpm-support-document-link.is-active::before {
    background: #ec1c24;
}

.hpm-support-search-box {
    margin-bottom: 14px;
}

.hpm-support-main {
    background: #ffffff;
    min-width: 0;
    padding: clamp(22px, 2.7vw, 40px);
}

.hpm-support-header {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hpm-border);
    border-radius: 0;
    margin-bottom: 24px;
    padding: 0 0 24px;
}

.hpm-support-eyebrow {
    color: #ec1c24;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hpm-support-header h1,
.hpm-support-detail-header h1 {
    color: var(--hpm-text);
    line-height: 1.2;
    margin: 0;
}

.hpm-support-header h1 {
    font-size: clamp(26px, 3vw, 34px);
}

.hpm-support-header p {
    color: var(--hpm-muted);
    font-size: 15px;
    margin: 10px 0 0;
    max-width: 760px;
}

.hpm-support-active-category {
    background: #f6f7f8;
    border: 1px solid var(--hpm-border);
    border-radius: 999px;
    color: var(--hpm-muted);
    display: inline-flex;
    margin-top: 16px;
    padding: 8px 12px;
}

.hpm-support-active-category strong {
    color: var(--hpm-primary-dark);
    margin-left: 4px;
}

.hpm-support-results {
    display: grid;
    gap: 14px;
}

.hpm-support-item {
    align-items: center;
    background: #ffffff;
    border-radius: 4px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.hpm-support-item-icon {
    align-items: center;
    background: #f1f2f4;
    border-radius: 50%;
    color: #ec1c24;
    display: inline-flex;
    font-size: 24px;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.hpm-support-item-body {
    min-width: 0;
}

.hpm-support-item-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hpm-link-muted {
    color: var(--hpm-muted) !important;
    font-size: 13px;
    font-weight: 700;
}

.hpm-support-detail-layout .hpm-support-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.hpm-support-detail {
    background: #ffffff;
    padding: clamp(22px, 2.7vw, 36px);
}

.hpm-support-detail-header {
    border-bottom: 1px solid var(--hpm-border);
    margin-bottom: 22px;
    padding-bottom: 20px;
}

.hpm-support-detail-header h1 {
    font-size: clamp(27px, 3vw, 36px);
}

.hpm-support-detail-summary {
    color: var(--hpm-muted);
    font-size: 15px;
    margin: 12px 0 0;
}

.hpm-support-detail-content {
    color: #343a46;
    font-size: 15px;
    line-height: 1.7;
}

.hpm-support-detail-content h2,
.hpm-support-detail-content h3,
.hpm-support-detail-content h4 {
    color: #181b20;
    line-height: 1.35;
    margin: 1.65em 0 0.65em;
}

.hpm-support-detail-content a {
    color: #d91820;
}

.hpm-support-contact {
    align-items: center;
    background: #f5f5f6;
    border-left: 4px solid #ec1c24;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 34px;
    padding: 20px 22px;
}

.hpm-support-contact p {
    color: #555b66;
    margin: 0;
}

.hpm-support-contact .hpm-button {
    background: #ec1c24;
    border-color: #ec1c24;
    border-radius: 3px;
    flex: 0 0 auto;
}

.hpm-support-contact .hpm-button:hover,
.hpm-support-contact .hpm-button:focus {
    background: #c7131a;
    border-color: #c7131a;
}

.hpm-legal-page {
    background: #f5f5f6;
    padding: clamp(14px, 1.6vw, 26px);
}

.hpm-legal-wrap {
    background: #ffffff;
    border: 1px solid #e6e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.06);
    margin: 0 auto;
    max-width: 1500px;
    padding: clamp(18px, 2.2vw, 34px);
}

.hpm-legal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--hpm-border);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 20px;
}

.hpm-legal-eyebrow {
    color: #ec1c24;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hpm-legal-header h1,
.hpm-legal-single-header h1 {
    color: var(--hpm-text);
    line-height: 1.18;
    margin: 0;
    text-transform: none;
}

.hpm-legal-header h1 {
    font-size: clamp(27px, 3vw, 38px);
}

.hpm-legal-header p,
.hpm-legal-single-header p {
    color: var(--hpm-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 10px 0 0;
    max-width: 850px;
}

.hpm-legal-stat {
    align-items: center;
    background: #f6f7f8;
    border: 1px solid var(--hpm-border);
    border-radius: 6px;
    display: grid;
    flex: 0 0 auto;
    min-width: 116px;
    padding: 12px 16px;
    text-align: center;
}

.hpm-legal-stat strong {
    color: #ec1c24;
    font-size: 26px;
    line-height: 1;
}

.hpm-legal-stat span {
    color: var(--hpm-muted);
    font-size: 13px;
    margin-top: 4px;
}

.hpm-legal-filter {
    align-items: end;
    background: #f6f7f8;
    border: 1px solid var(--hpm-border);
    border-radius: 6px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px) auto;
    margin-bottom: 18px;
    padding: 16px;
}

.hpm-legal-filter label {
    display: grid;
    gap: 6px;
}

.hpm-legal-filter label span {
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.hpm-legal-filter input,
.hpm-legal-filter select {
    background: #ffffff;
    border: 1px solid #d8dbe2;
    border-radius: 4px;
    color: var(--hpm-text);
    min-height: 42px;
    padding: 9px 12px;
    width: 100%;
}

.hpm-legal-filter input:focus,
.hpm-legal-filter select:focus {
    border-color: #ec1c24;
    box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.12);
    outline: none;
}

.hpm-legal-filter-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hpm-legal-filter .hpm-button,
.hpm-legal-download {
    background: #ec1c24;
    border-color: #ec1c24;
    border-radius: 4px;
}

.hpm-legal-filter .hpm-button:hover,
.hpm-legal-filter .hpm-button:focus,
.hpm-legal-download:hover,
.hpm-legal-download:focus {
    background: #c7131a;
    border-color: #c7131a;
}

.hpm-legal-reset {
    color: var(--hpm-muted) !important;
    font-size: 13px;
    font-weight: 800;
}

.hpm-legal-table-wrap {
    border: 1px solid var(--hpm-border);
    border-radius: 6px;
    overflow-x: auto;
}

.hpm-legal-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    min-width: 980px;
    width: 100%;
}

.hpm-legal-table th,
.hpm-legal-table td {
    border-bottom: 1px solid var(--hpm-border);
    padding: 14px 13px;
    text-align: left;
    vertical-align: top;
}

.hpm-legal-table th {
    background: #f0f1f3;
    color: #2f3541;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    white-space: nowrap;
}

.hpm-legal-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.hpm-legal-table tbody tr:hover td {
    background: #fff7f7;
}

.hpm-legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.hpm-legal-type-cell .hpm-policy-badges,
.hpm-legal-type-cell .hpm-badge {
    margin-bottom: 0;
}

.hpm-legal-title-cell {
    min-width: 240px;
}

.hpm-legal-summary-cell {
    min-width: 260px;
}

.hpm-legal-title-link {
    color: #172033 !important;
    display: inline-flex;
    font-weight: 800;
    line-height: 1.45;
}

.hpm-legal-title-link:hover,
.hpm-legal-title-link:focus {
    color: #ec1c24 !important;
}

.hpm-legal-summary-cell p {
    color: var(--hpm-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 6px 0 0;
}

.hpm-legal-actions {
    display: grid;
    gap: 7px;
    min-width: 122px;
}

.hpm-legal-read,
.hpm-legal-file {
    border-radius: 4px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    padding: 8px 10px;
    text-decoration: none !important;
}

.hpm-legal-read {
    background: #ec1c24;
    border: 1px solid #ec1c24;
    color: #ffffff !important;
}

.hpm-legal-file {
    background: #ffffff;
    border: 1px solid #d7dbe3;
    color: #374151 !important;
}

.hpm-legal-read:hover,
.hpm-legal-read:focus {
    background: #c7131a;
    border-color: #c7131a;
    color: #ffffff !important;
}

.hpm-legal-file:hover,
.hpm-legal-file:focus {
    border-color: #ec1c24;
    color: #ec1c24 !important;
}

.hpm-legal-empty {
    color: var(--hpm-muted);
    padding: 28px 16px !important;
    text-align: center !important;
}

.hpm-legal-pagination {
    margin-top: 20px;
}

.hpm-legal-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hpm-legal-pagination li {
    margin: 0;
}

.hpm-legal-pagination a,
.hpm-legal-pagination span {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--hpm-border);
    border-radius: 4px;
    color: #374151;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    min-height: 36px;
    min-width: 36px;
    padding: 8px 11px;
    text-decoration: none !important;
}

.hpm-legal-pagination .current,
.hpm-legal-pagination a:hover,
.hpm-legal-pagination a:focus {
    background: #ec1c24;
    border-color: #ec1c24;
    color: #ffffff !important;
}

.hpm-legal-single .hpm-legal-wrap {
    max-width: 1080px;
}

.hpm-legal-back {
    color: var(--hpm-muted) !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.hpm-legal-single-header {
    border-bottom: 1px solid var(--hpm-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 22px;
}

.hpm-legal-single-header h1 {
    font-size: clamp(28px, 3.2vw, 42px);
}

.hpm-legal-badges {
    margin-bottom: 12px;
}

.hpm-legal-download {
    margin-top: 18px;
    align-self: flex-start;
    max-width: 100%;
    white-space: normal;
}

.hpm-legal-detail-box {
    background: #f6f7f8;
    border: 1px solid var(--hpm-border);
    border-radius: 6px;
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-bottom: 24px;
    overflow: hidden;
}

.hpm-legal-detail-item {
    border-bottom: 1px solid var(--hpm-border);
    border-right: 1px solid var(--hpm-border);
    min-width: 0;
    padding: 14px 16px;
}

.hpm-legal-detail-item span {
    color: var(--hpm-muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.hpm-legal-detail-item strong {
    color: var(--hpm-text);
    display: block;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hpm-legal-content {
    color: #343a46;
    font-size: 15px;
    line-height: 1.75;
}

.hpm-legal-page a,
.hpm-legal-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.hpm-legal-content > *:first-child {
    margin-top: 0;
}

.hpm-legal-content > *:last-child {
    margin-bottom: 0;
}

.hpm-upload-preview {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin: 8px 0;
    padding: 10px 12px;
}

.hpm-upload-preview span {
    color: #646970;
}

.hpm-archive-page {
    background: #f5f5f6;
}

.hpm-archive-container {
    margin: 0 auto;
    max-width: 1720px;
    padding: 0;
}

.hpm-support-detail-content > *:first-child {
    margin-top: 0;
}

.hpm-support-detail-content > *:last-child {
    margin-bottom: 0;
}

.hpm-tax-tree {
    display: grid;
    gap: 10px;
}

.hpm-tax-tree .hpm-tax-tree {
    border-left: 2px solid var(--hpm-border);
    margin: 12px 0 0 14px;
    padding-left: 16px;
}

.hpm-tax-details {
    background: #ffffff;
    border: 1px solid var(--hpm-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.hpm-tax-summary {
    align-items: center;
    color: var(--hpm-text);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 10px;
    justify-content: space-between;
}

.hpm-term-description,
.hpm-tree-empty {
    color: var(--hpm-muted);
    margin: 10px 0 0;
}

.hpm-term-policy-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hpm-term-policy-list li {
    background: var(--hpm-soft);
    border-radius: 10px;
    padding: 9px 12px;
}

.hpm-muted {
    color: var(--hpm-muted);
}

.hpm-single-policy-shortcode {
    margin: 24px 0;
}

.hpm-single-title {
    margin-bottom: 16px;
}

.hpm-policy-content {
    overflow-wrap: anywhere;
}

.hpm-admin-fields label {
    display: block;
    margin-bottom: 6px;
}

.hpm-admin-fields .description {
    display: block;
    margin-top: 5px;
}

.hpm-admin-wrap .hpm-admin-tree-panel,
.hpm-admin-wrap .hpm-help-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-top: 16px;
    padding: 18px;
}

.hpm-admin-tree .hpm-admin-tree {
    border-left: 2px solid #dcdcde;
    margin-left: 18px;
    padding-left: 16px;
}

.hpm-admin-tree-item {
    margin: 8px 0;
}

.hpm-admin-tree-row {
    align-items: center;
    background: #f6f7f7;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
    padding: 10px 12px;
}

.hpm-admin-tree-actions {
    color: #646970;
}

.hpm-help-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 16px;
}

.hpm-help-card code {
    background: #f6f7f7;
    border-radius: 6px;
    display: block;
    margin: 8px 0;
    padding: 8px 10px;
}

@media (max-width: 900px) {
    .hpm-policy-list-wrap,
    .hpm-support-layout,
    .hpm-layout-cards .hpm-policy-results {
        grid-template-columns: 1fr;
    }

    .hpm-policy-sidebar,
    .hpm-support-sidebar {
        position: static;
    }

    .hpm-support-layout {
        gap: 16px;
        padding: 18px;
    }

    .hpm-support-mobile-toggle {
        display: inline-flex;
        justify-self: start;
    }

    .hpm-support-sidebar {
        bottom: 0;
        border-radius: 0;
        box-shadow: 24px 0 60px rgba(15, 23, 42, 0.18);
        left: 0;
        max-height: 100vh;
        max-width: min(360px, 86vw);
        overflow-y: auto;
        position: fixed;
        top: 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        width: 86vw;
        z-index: 9999;
    }

    .hpm-support-layout.is-sidebar-open .hpm-support-sidebar {
        transform: translateX(0);
    }

    .hpm-support-layout.is-sidebar-open::after {
        background: rgba(15, 23, 42, 0.36);
        content: "";
        inset: 0;
        position: fixed;
        z-index: 9998;
    }

    .hpm-support-sidebar-close {
        display: inline-flex;
    }

    .hpm-legal-header,
    .hpm-legal-filter {
        grid-template-columns: 1fr;
    }

    .hpm-legal-header {
        display: grid;
    }

    .hpm-legal-stat {
        justify-self: start;
    }

    .hpm-legal-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hpm-legal-filter-actions .hpm-button,
    .hpm-legal-filter-actions .hpm-legal-reset {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hpm-policy-card,
    .hpm-support-item {
        flex-direction: column;
    }

    .hpm-support-main {
        padding: 16px;
    }

    .hpm-support-layout {
        padding: 12px;
    }

    .hpm-support-item {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .hpm-support-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .hpm-support-item-actions,
    .hpm-support-item-actions .hpm-button {
        align-items: stretch;
        width: 100%;
    }

    .hpm-policy-card-action,
    .hpm-policy-card-action .hpm-button {
        width: 100%;
    }

    .hpm-legal-page {
        padding: 10px;
    }

    .hpm-legal-wrap {
        padding: 14px;
    }

    .hpm-legal-table-wrap {
        border: 0;
        overflow: visible;
    }

    .hpm-legal-table,
    .hpm-legal-table thead,
    .hpm-legal-table tbody,
    .hpm-legal-table tr,
    .hpm-legal-table th,
    .hpm-legal-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .hpm-legal-table thead {
        display: none;
    }

    .hpm-legal-table tr {
        background: #ffffff;
        border: 1px solid var(--hpm-border);
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
        margin-bottom: 12px;
        overflow: hidden;
    }

    .hpm-legal-table td {
        border-bottom: 1px solid var(--hpm-border);
        padding: 12px 14px;
    }

    .hpm-legal-table td::before {
        color: var(--hpm-muted);
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .hpm-legal-actions {
        grid-template-columns: 1fr;
    }

    .hpm-legal-detail-box {
        grid-template-columns: 1fr;
    }
}
