/**
 * Trust2 — Policy / legal content pages
 */

body.frontend-futuristic .fe-policy-page {
    background: var(--fe-bg);
}

body.frontend-futuristic .fe-policy-section {
    position: relative;
    padding-top: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

@media (max-width: 991px) {
    body.frontend-futuristic .fe-policy-section {
        padding-top: 0.85rem;
    }
}

body.frontend-futuristic .fe-policy-card {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 40%, transparent),
        rgba(255, 255, 255, 0.06) 42%,
        color-mix(in srgb, #6366f1 25%, transparent)
    );
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

body.frontend-futuristic .fe-policy-card__inner {
    position: relative;
    border-radius: 19px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: linear-gradient(165deg, rgba(14, 20, 35, 0.98), rgba(6, 10, 20, 0.99));
    backdrop-filter: blur(14px);
    overflow: hidden;
}

body.frontend-futuristic .fe-policy-card__glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 65%);
    pointer-events: none;
}

/* Readable prose — override editor inline colors on dark card */
body.frontend-futuristic .fe-policy-content {
    position: relative;
    z-index: 1;
    max-width: 72ch;
    color: #c8d4e4;
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

body.frontend-futuristic .fe-policy-content p,
body.frontend-futuristic .fe-policy-content li,
body.frontend-futuristic .fe-policy-content td,
body.frontend-futuristic .fe-policy-content th,
body.frontend-futuristic .fe-policy-content span,
body.frontend-futuristic .fe-policy-content div:not(.fe-policy-card__glow) {
    color: #c8d4e4 !important;
    font-size: 1rem !important;
    line-height: 1.85 !important;
    background: transparent !important;
}

body.frontend-futuristic .fe-policy-content h1,
body.frontend-futuristic .fe-policy-content h2,
body.frontend-futuristic .fe-policy-content h3,
body.frontend-futuristic .fe-policy-content h4,
body.frontend-futuristic .fe-policy-content h5,
body.frontend-futuristic .fe-policy-content h6 {
    color: var(--fe-text) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
}

body.frontend-futuristic .fe-policy-content > h1:first-child,
body.frontend-futuristic .fe-policy-content > h2:first-child,
body.frontend-futuristic .fe-policy-content > h3:first-child {
    margin-top: 0;
}

body.frontend-futuristic .fe-policy-content h1 { font-size: 1.55rem !important; }
body.frontend-futuristic .fe-policy-content h2 { font-size: 1.28rem !important; }
body.frontend-futuristic .fe-policy-content h3 { font-size: 1.12rem !important; }

body.frontend-futuristic .fe-policy-content p {
    margin-bottom: 1.1rem;
}

body.frontend-futuristic .fe-policy-content ul,
body.frontend-futuristic .fe-policy-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

body.frontend-futuristic .fe-policy-content li {
    margin-bottom: 0.55rem;
    padding-left: 0.15rem;
}

body.frontend-futuristic .fe-policy-content li::marker {
    color: var(--color-primary);
}

body.frontend-futuristic .fe-policy-content a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

body.frontend-futuristic .fe-policy-content a:hover {
    color: color-mix(in srgb, var(--color-primary) 75%, #fff) !important;
}

body.frontend-futuristic .fe-policy-content strong,
body.frontend-futuristic .fe-policy-content b {
    color: var(--fe-text) !important;
    font-weight: 600;
}

body.frontend-futuristic .fe-policy-content blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 8%, transparent);
    border-radius: 0 10px 10px 0;
    color: #b8c5d6 !important;
}

body.frontend-futuristic .fe-policy-content hr {
    border: none;
    height: 1px;
    margin: 1.75rem 0;
    background: linear-gradient(90deg, transparent, var(--fe-border-strong), transparent);
}

body.frontend-futuristic .fe-policy-content table {
    width: 100%;
    margin-bottom: 1.25rem;
    border-collapse: collapse;
}

body.frontend-futuristic .fe-policy-content th,
body.frontend-futuristic .fe-policy-content td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--fe-border);
}

body.frontend-futuristic .fe-policy-content th {
    color: var(--fe-text) !important;
    background: rgba(255, 255, 255, 0.04);
}

body.frontend-futuristic .fe-policy-content pre,
body.frontend-futuristic .fe-policy-content code {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #e2e8f0 !important;
    border-radius: 6px;
}

body.frontend-futuristic .fe-policy-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}
