/* terms.css - Elite Bento Grid Design */

:root {
    --bento-gap: 25px;
    --card-blur: 25px;
    --dark-glass: rgba(13, 13, 13, 0.85);
    --light-glass: rgba(255, 255, 255, 0.7);
}

/* Hero Refinement: Centered & Unique */
.terms-hero-refined {
    background: radial-gradient(circle at center, #1a2a44 0%, var(--primary-black) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.secure-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(31, 143, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 143, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform: rotateX(60deg) translateY(-200px);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 1;
}

.hero-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31, 143, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 2;
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    from {
        transform: scale(1);
        opacity: 0.5;
    }

    to {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.title-glass-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.terms-badge-unique {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-blue), #00F0FF);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(31, 143, 255, 0.3);
}

.grid-icon {
    position: absolute;
    color: rgba(31, 143, 255, 0.2);
    font-size: 1.5rem;
    z-index: 3;
    animation: iconFloat 10s infinite ease-in-out;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }
}

/* Bento Grid Layout */
.terms-content-section {
    background: #fdfdfd;
    background-image: radial-gradient(rgba(31, 143, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: var(--bento-gap);
}

.bento-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
    transform: translateY(-12px) scale(1.01);
    background: #ffffff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

/* Section Colors & Icons */
.accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    opacity: 0.8;
}

.line-blue {
    background: var(--primary-blue);
}

.line-teal {
    background: var(--accent-teal);
}

.line-violet {
    background: var(--accent-violet);
}

.line-amber {
    background: var(--accent-amber);
}

.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.bg-blue-glass {
    background: rgba(31, 143, 255, 0.1);
    color: var(--primary-blue);
}

.bg-teal-glass {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-teal);
}

.bg-violet-glass {
    background: rgba(138, 43, 226, 0.1);
    color: var(--accent-violet);
}

.bg-amber-glass {
    background: rgba(255, 191, 0, 0.1);
    color: var(--accent-amber);
}

/* Bento Sizes */
.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Bento Dark Accent */
.bento-dark {
    background: rgba(13, 13, 13, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.bento-dark:hover {
    background: rgba(13, 13, 13, 1);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.bento-dark .module-title {
    color: white;
}

.bento-dark .module-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Card Elements */
.bento-icon-main {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-blue), #00F0FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card:hover .bento-icon-main {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.module-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.module-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

.plain-english-min {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.tldr-pill {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    background: rgba(31, 143, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    height: fit-content;
}

.tldr-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--primary-blue);
    opacity: 0.8;
}

/* Decorative Circles in Bento */
.bento-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(31, 143, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: all 0.5s ease;
}

.bento-card:hover::after {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(31, 143, 255, 0.2) 0%, transparent 70%);
}

/* Responsiveness */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide,
    .bento-tall,
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Dark Mode Overrides */
body.dark-mode .terms-content-section {
    background: #0a0a0a;
}

body.dark-mode .bento-card:not(.bento-dark) {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .module-title {
    color: white;
}

body.dark-mode .module-text {
    color: #aaa;
}