/* =========================================================
   AILEARNIST — TERMS STYLES (mirrored from Sqlism terms.css)
   Page tokens are namespaced --pg-* so they never override the
   sitewide tokens in /assets/css/base.css (navbar, footer,
   cookies and share keep the shared theme). Light/dark follow
   [data-theme] set by includes/theme_boot.php.
   ========================================================= */
:root {
  --pg-primary: #8b5cf6;
  --pg-primary-dark: #7c3aed;
  --pg-secondary: #22d3ee;
  --pg-accent: #8b5cf6;
  --pg-bg-primary: var(--bg);
  --pg-bg-secondary: var(--bg-alt);
  --pg-bg-card: var(--bg-card);
  --pg-text-primary: var(--text);
  --pg-text-secondary: var(--text-muted);
  --pg-border: var(--border);
  --pg-shadow: rgba(15, 23, 42, 0.1);
  --pg-shadow-lg: rgba(15, 23, 42, 0.15);
  --pg-navbar-bg: var(--bg-card);
  --pg-success: #10b981;
  --pg-error: #ef4444;
  --pg-warning: #f59e0b;
  --pg-info: #3b82f6;
}
[data-theme="dark"] {
  --pg-shadow: rgba(0, 0, 0, 0.3);
  --pg-shadow-lg: rgba(0, 0, 0, 0.5);
}

/* Import base styles */









/* ================================
   HERO SECTION
   ================================ */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.15),
        rgba(34, 211, 238, 0.15));
    border-bottom: 2px solid var(--pg-border);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--pg-text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--pg-bg-card);
    border-radius: 50px;
    box-shadow: 0 4px 12px var(--pg-shadow);
    transition: transform 0.3s ease;
}

.hero-stats .stat:hover {
    transform: translateY(-4px);
}

.hero-stats .stat i {
    color: var(--pg-primary);
    font-size: 1.25rem;
}

.hero-stats .stat span {
    font-weight: 600;
    color: var(--pg-text-primary);
}

/* ================================
   MAIN CONTAINER
   ================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.last-updated {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--pg-bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--pg-border);
}

.last-updated p {
    color: var(--pg-text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.last-updated .disclaimer {
    font-style: italic;
    color: var(--pg-primary);
    font-weight: 600;
}

.last-updated i {
    color: var(--pg-primary);
    margin-right: 8px;
}

/* ================================
   TABLE OF CONTENTS
   ================================ */

.toc-card {
    background: var(--pg-bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--pg-border);
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--pg-shadow);
}

.toc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--pg-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.toc-links a {
    color: var(--pg-text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: var(--pg-bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--pg-border);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.toc-links a:hover {
    background: var(--pg-primary);
    color: white;
    border-color: var(--pg-primary);
    transform: translateX(5px);
}

/* ================================
   TERMS SECTIONS
   ================================ */

.terms-content {
    max-width: 900px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--pg-bg-card);
    border-radius: 16px;
    border: 2px solid var(--pg-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 80px;
}

.terms-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--pg-shadow);
}

.terms-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--pg-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    color: white;
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 700;
}

.terms-section p {
    color: var(--pg-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-section ul {
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.terms-section li {
    color: var(--pg-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
}

.terms-section li::before {
    content: "•";
    color: var(--pg-primary);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* ================================
   USE GRID
   ================================ */

.use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.use-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--pg-border);
}

.use-card.prohibited {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-color: #ef4444;
}

.use-card.permitted {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(34, 211, 238, 0.05));
    border-color: #10b981;
}

.use-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.use-card.prohibited i {
    color: #ef4444;
}

.use-card.permitted i {
    color: #10b981;
}

.use-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.use-card ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.use-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ================================
   INTELLECTUAL PROPERTY GRID
   ================================ */

.ip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ip-card {
    background: var(--pg-bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--pg-border);
    text-align: center;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.ip-card:hover {
    transform: translateY(-5px);
    border-color: var(--pg-primary);
    box-shadow: 0 6px 20px var(--pg-shadow);
}

.ip-card i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.ip-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--pg-text-primary);
}

.ip-card p {
    font-size: 0.9rem;
    color: var(--pg-text-secondary);
}

/* ================================
   DISCLAIMER CARD
   ================================ */

.disclaimer-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #f59e0b;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.disclaimer-card i {
    font-size: 2.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.disclaimer-card p {
    color: var(--pg-text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.disclaimer-card strong {
    color: #f59e0b;
}

/* ================================
   CONTACT DETAILS
   ================================ */

.contact-details {
    background: var(--pg-bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 2px solid var(--pg-border);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-details i {
    color: var(--pg-primary);
    width: 24px;
}

.contact-details strong {
    min-width: 120px;
    color: var(--pg-text-primary);
}

/* ================================
   AGREEMENT BOX (SLEEK VERSION)
   ================================ */

.agreement-box {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.08), 
        rgba(34, 211, 238, 0.08));
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--pg-border);
    margin-top: 4rem;
    text-align: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.agreement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--pg-primary), 
        var(--pg-secondary));
    border-radius: 20px 20px 0 0;
}

.agreement-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
}

.agreement-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--pg-text-primary);
    font-weight: 700;
}

.agreement-content p {
    color: var(--pg-text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Sleek Button Container */
.agreement-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

/* Sleek Primary Button */
.agree-btn {
    background: linear-gradient(135deg, var(--pg-primary), var(--pg-secondary));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 240px;
    justify-content: center;
    height: 52px; /* Fixed height for perfect alignment */
}

.agree-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.agree-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.agree-btn:hover::before {
    left: 100%;
}

.agree-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agree-btn:hover i {
    transform: scale(1.1);
    transform: translateY(11px); /* Adjust 1px up or down as needed */
}

/* Sleek Secondary Button */
.privacy-link {
    color: var(--pg-text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    background: var(--pg-bg-card);
    border-radius: 12px;
    border: 1px solid var(--pg-border);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    min-width: 240px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 52px; /* Fixed height for perfect alignment */
    box-sizing: border-box; /* Ensures padding is included in height */
}

.privacy-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.05), 
        rgba(34, 211, 238, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    border-color: var(--pg-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--pg-shadow);
    color: var(--pg-primary);
}

.privacy-link:hover::before {
    opacity: 1;
}

.privacy-link:active {
    transform: translateY(-1px);
}


.privacy-link:hover i {
    transform: translateX(3px);
    transform: translateY(11px); /* Adjust 1px up or down as needed */

}

/* SIMPLE FIX: Align icons and text perfectly */
.agree-btn i,
.privacy-link i {
        /* Add this one line: */
    transform: translateY(11px); /* Adjust 1px up or down as needed */
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    top: 0; /* Reset any top positioning */
}

/* Reset any conflicting alignments */
.agree-btn,
.privacy-link {
    display: inline-flex;
    align-items: center; /* This centers vertically */
    justify-content: center;
}

/* Force all content to align properly */
.agree-btn > *,
.privacy-link > * {
    vertical-align: middle;
    line-height: 1;
}

/* Disabled state for agreed button */
.agree-btn:disabled {
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: default;
    transform: none !important;
    box-shadow: 
        0 4px 15px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agree-btn:disabled:hover::before {
    left: -100%;
}

.agree-btn:disabled i {
    animation: pulse 2s infinite;
}

.fas fa-check-circle {
    transform: translateY(11px);
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agreement-box {
        padding: 2rem 1.5rem;
    }
    
    .agreement-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .agree-btn,
    .privacy-link {
        width: 100%;
        min-width: unset;
        padding: 1rem 2rem;
        height: 48px; /* Slightly smaller on mobile */
        justify-content: center;
    }
    
    .agree-btn i,
    .privacy-link i {
        width: 18px; /* Slightly smaller icon width on mobile */
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .agreement-content h3 {
        font-size: 1.3rem;
    }
    
    .agreement-content p {
        font-size: 1rem;
    }
    
    .agree-btn,
    .privacy-link {
        font-size: 0.95rem;
        padding: 0.875rem 1.5rem;
        height: 46px;
    }
    
    .agree-btn i,
    .privacy-link i {
        width: 16px;
        font-size: 0.95rem;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .terms-section {
        padding: 1.5rem;
    }

    .toc-links {
        grid-template-columns: 1fr;
    }

    .use-grid,
    .ip-grid {
        grid-template-columns: 1fr;
    }

    .agreement-box {
        padding: 2rem 1rem;
    }

    .agreement-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .disclaimer-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ============================================================
   MODERN HERO (Studio v2) — appended override. Markup unchanged.
   Scoped by data-page so it overrides light + dark existing rules.
   Matches the dark glassy hero card used on quiz/challenge/interview.
   ============================================================ */
body[data-page="terms"] .hero{
  position:relative; margin:clamp(16px,3vw,30px) clamp(12px,4vw,48px);
  padding:clamp(38px,6vw,68px) clamp(22px,4vw,48px);
  border-radius:24px; text-align:center; color:#fff; overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(120% 130% at 10% -10%, rgba(124,92,255,0.40), transparent 60%),
    radial-gradient(90% 120% at 100% 112%, rgba(34,211,238,0.22), transparent 58%),
    linear-gradient(158deg,#0c1024 0%,#0a0d1a 55%,#090b16 100%);
  box-shadow:0 40px 90px -42px rgba(10,13,26,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
body[data-page="terms"] .hero::before{
  content:''; position:absolute; inset:0; opacity:1; pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.03) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%,#000 42%,transparent 82%);
  mask-image:radial-gradient(120% 90% at 50% 0%,#000 42%,transparent 82%);
}
body[data-page="terms"] .hero-content{position:relative;z-index:1;max-width:920px;margin:0 auto;}
body[data-page="terms"] .hero h1{
  font-family:'Space Grotesk',sans-serif; font-size:clamp(2.1rem,5vw,4rem);
  font-weight:800; letter-spacing:-0.03em; line-height:1.07; color:#fff;
  -webkit-text-fill-color:#fff; background:none; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; text-align:center;
  animation:none;
}
body[data-page="terms"] .hero h1 i{
  background:linear-gradient(120deg,#a3e635,#22d3ee 55%,#7c5cff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  transform:translateX(-4px); padding-right:4px;
}
body[data-page="terms"] .hero p,
body[data-page="terms"] .hero .hero-para{
  font-family:'Space Grotesk',sans-serif; color:rgba(226,232,240,0.82);
  -webkit-text-fill-color:rgba(226,232,240,0.82); background:none; opacity:1;
  font-size:clamp(1rem,1.5vw,1.22rem); line-height:1.7; max-width:680px; margin:0 auto;
}
body[data-page="terms"] .hero-stats{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:30px;}
body[data-page="terms"] .hero-stats .stat{
  display:inline-flex;align-items:center;gap:9px;padding:10px 18px;border-radius:999px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
body[data-page="terms"] .hero-stats .stat:hover{transform:translateY(-2px);border-color:rgba(124,92,255,0.5);background:rgba(124,92,255,0.14);}
body[data-page="terms"] .hero-stats .stat i{color:#a3e635;font-size:1rem;}
body[data-page="terms"] .hero-stats .stat span{color:#e7eaf5;font-weight:600;font-size:0.92rem;}

/* ============================================================
   ailearnist STUDIO — MODERN CONTENT CARDS (v1)
   Purely additive — no selector renamed, no markup/JS touched.
   Refines last-updated / toc-card / terms-section / ip-card below
   the hero to feel like one product with the Studio-era hero
   above. use-card.prohibited/.permitted are intentionally left
   untouched — those are semantic red/green states, not brand color.
   ============================================================ */
body[data-page="terms"] {
    --terms-border: rgba(124, 92, 255, 0.16);
    --terms-gradient: linear-gradient(120deg, #a3e635, #22d3ee 55%, #7c5cff);
}
[data-theme="dark"] body[data-page="terms"] {
    --terms-border: rgba(124, 92, 255, 0.26);
}

/* Section headings get the Studio eyebrow treatment */
body[data-page="terms"] .terms-section h2,
body[data-page="terms"] .toc-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Last-updated banner: thin gradient accent on the left edge */
body[data-page="terms"] .last-updated {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--terms-border);
    overflow: hidden;
}
body[data-page="terms"] .last-updated::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--terms-gradient);
}

/* Table of contents card + link pills */
body[data-page="terms"] .toc-card {
    border-radius: 18px;
    border: 1px solid var(--terms-border);
    box-shadow: 0 1px 2px var(--pg-shadow), 0 16px 40px -24px var(--pg-shadow-lg);
}
body[data-page="terms"] .toc-links a {
    border-radius: 10px;
}
body[data-page="terms"] .toc-links a:hover {
    background: var(--terms-gradient);
    border-color: transparent;
}

/* Terms sections */
body[data-page="terms"] .terms-section {
    border-radius: 18px;
    border: 1px solid var(--terms-border);
    box-shadow: 0 1px 2px var(--pg-shadow);
}
body[data-page="terms"] .terms-section:hover {
    box-shadow: 0 16px 32px -18px var(--pg-shadow-lg);
}
body[data-page="terms"] .section-number {
    background: var(--terms-gradient);
}

/* IP grid tiles */
body[data-page="terms"] .ip-card {
    border-radius: 14px;
    border: 1px solid var(--terms-border);
    box-shadow: 0 1px 2px var(--pg-shadow);
}
body[data-page="terms"] .ip-card:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 14px 28px -16px var(--pg-shadow-lg);
}
body[data-page="terms"] .ip-card i {
    background: var(--terms-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Page-scoped fixes mirrored from Sqlism terms.php <style> block ---- */
body[data-page="terms"] .agreement-actions .agree-btn i,
body[data-page="terms"] .agreement-actions .privacy-link i {
    transform: none;
    font-size: 1.1rem;
    margin-bottom: 0;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: inherit;
    filter: none;
    line-height: 1;
}
body[data-page="terms"] .agreement-actions .agree-btn,
body[data-page="terms"] .agreement-actions .privacy-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body[data-page="terms"] .terms-section p a,
body[data-page="terms"] .terms-section li a {
    color: var(--pg-primary);
    font-weight: 600;
    text-decoration-color: rgba(139, 92, 246, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
body[data-page="terms"] .terms-section p a:hover,
body[data-page="terms"] .terms-section li a:hover {
    color: var(--pg-primary-dark);
    text-decoration-color: var(--pg-primary-dark);
}
