/* Minimal, professional overrides for plain policy pages - Dark Mode */
html, body {
  height: 100%;
}

body.plain-policy {
  background: #0f172a !important; /* Dark Slate 900 */
  color: #e2e8f0 !important; /* Slate 200 */
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0;
}

/* Remove decorative backgrounds and hide large logo from main styles if present */
.plain-policy .stars,
.plain-policy .grid-background,
.plain-policy .logo {
  display: none !important;
}

/* Main container */
main { 
    background: #111827; /* Gray 900 */
    padding: 60px 50px; 
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 60px auto;
    max-width: 1100px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Policy Meta */
.policy-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 24px;
}

.meta-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: #94a3b8;
}

/* Layout Engine */
.policy-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.policy-toc {
    width: 200px;
    position: sticky;
    top: 60px;
}

.toc-header {
    font-size: 0.65rem;
    font-weight: 900;
    color: #4b5563;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.policy-toc nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.policy-toc nav a {
    font-size: 0.85rem;
    color: #64748b;
    border: none !important;
    transition: all 0.2s;
}

.policy-toc nav a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.toc-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.back-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary) !important;
    border-bottom: none !important;
}

.policy-body {
    flex: 1;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 4rem;
}

/* Typography Refinement */
main h1 { 
    font-size: 48px; 
    margin-bottom: 12px; 
    font-weight: 900; 
    letter-spacing: -0.03em; 
}

main h2 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f1f5f9;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    margin-top: 60px;
}

.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 1rem;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 900;
}

/* Existing Overrides Integration */
.plain-policy .subtitle { border: none; padding: 0; margin-bottom: 20px; }

@media (max-width: 900px) {
    .policy-layout { flex-direction: column; gap: 40px; }
    .policy-toc { width: 100%; position: static; }
    .policy-toc nav { flex-direction: row; flex-wrap: wrap; }
    main { padding: 40px 24px; }
}

/* Feature Grid & Cards */
.plain-policy .feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 16px; 
    margin: 2rem 0;
}

.plain-policy .feature-card { 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px; 
    border-radius: 12px;
}

.plain-policy .feature-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.plain-policy .feature-title { font-weight: 700; color: #f8fafc; margin-bottom: 6px; font-size: 1rem; }
.plain-policy .feature-description { color: #94a3b8; font-size: 0.85rem; line-height: 1.5; }

/* Code/Command Box */
.plain-policy .command-box { 
    background: #020617;
    border: 1px solid rgba(255,255,255,0.05);
    color: #4ade80;
    padding: 24px; 
    border-radius: 12px; 
    font-family: ui-monospace, monospace; 
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 2rem 0;
}

/* Links & Buttons */
.plain-policy a { color: var(--accent-primary); text-decoration: none; border-bottom: 1px solid transparent; transition: all 0.2s; }
.plain-policy a:hover { border-bottom-color: var(--accent-primary); }

.plain-policy .learn-more-buttons { margin-top: 3rem; }
.plain-policy .learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-primary) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    border: none !important;
}

.plain-policy .learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}
