/* REFRESH / CTRLR STUDIO THEME - MASTER STYLESHEET */
:root {
    --bg-body: #ffffff;
    --text-main: #050505;
    --text-secondary: #666666;
    --border-hover: #e5e5e5;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* LAYOUT UTILITIES */
.wrapper {
    max-width: 1600px; /* Wide canvas from latest design */
    margin: 0 auto;
    padding: 0 60px;
}

/* Legal Page Specific Wrapper */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px;
}

/* SECTION SPACING */
section {
    padding: 120px 0;
    border-bottom: 1px solid transparent;
}

/* TYPOGRAPHY */
h1 {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 0.9;
    margin-bottom: 40px;
    max-width: 1000px;
}

/* Specific override for Legal Pages H1 to fit narrower canvas */
.legal-wrapper h1 {
    font-size: 3.5rem; 
    letter-spacing: -2px;
}

h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Legal Page H2s need to be standard headers, not small labels */
.legal-wrapper h2 {
    font-size: 1.5rem;
    text-transform: none;
    letter-spacing: -0.5px;
    color: var(--text-main);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 400;
}

.legal-wrapper p {
    font-size: 1.1rem;
    max-width: 100%;
    color: #333;
}
        
strong { color: var(--text-main); font-weight: 600; }

ul { margin-bottom: 25px; padding-left: 20px; }
li { margin-bottom: 10px; font-size: 1.1rem; color: #333; }

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand { font-weight: 700; font-size: 1.5rem; letter-spacing: -1px; }
.brand a { text-decoration: none; color: inherit; }

nav a {
    margin-left: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}
nav a.active { opacity: 0.5; cursor: default; }

/* HERO */
.hero { padding: 160px 0; }

.tagline {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 30px;
    display: block;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* BUTTONS */
.btn-pill {
    display: inline-block;
    background: var(--text-main);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: transform 0.2s ease, background 0.2s;
    margin-top: 30px;
}
.btn-pill:hover { transform: translateY(-2px); background: #333; }

/* PHANTOM GRID SYSTEM */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-item {
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 280px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    border-color: var(--border-hover);
    background-color: #fafafa;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.cert-badge {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1.5px;
    line-height: 1;
}

.cert-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: auto;
}

/* CONTROLS LAYOUT */
.controls-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 120px;
}

.control-group {
    margin-bottom: 80px;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.control-group:hover {
    background-color: #fafafa;
    border-color: var(--border-hover);
}

.control-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.control-list li {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-hover);
    font-size: 1.1rem;
    color: var(--text-main);
}

/* SUBPROCESSORS ROW */
.subproc-row {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-hover);
    transition: background 0.2s;
}
.subproc-row:hover { background: #fafafa; padding-left: 20px; padding-right: 20px; margin: 0 -20px; border-radius: 4px; }

/* FAQ ACCORDION */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    cursor: pointer;
}

.faq-item summary {
    font-size: 1.3rem;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 40px;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

.faq-item[open] summary::after { content: '−'; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-content {
    margin-top: 20px;
    padding-right: 40px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-content ul { margin-left: 20px; margin-bottom: 20px; }
.faq-content li { margin-bottom: 10px; }

/* LEGAL META */
.legal-meta {
    font-family: monospace;
    color: #666;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    font-size: 0.9rem;
}

/* FOOTER */
footer {
    margin-top: 100px;
    padding: 100px 0;
    border-top: 1px solid var(--border-hover);
    text-align: left; /* Default for Trust Center */
}

.legal-wrapper + footer { text-align: center; } /* Center footer for legal pages */

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-big-text {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.footer-links a {
    color: var(--text-main);
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}
.footer-links a:hover { opacity: 0.6; }

.footer-bottom {
    margin-top: 100px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .controls-layout { grid-template-columns: 1fr; gap: 60px; }
    .footer-grid { grid-template-columns: 1fr; }
    .wrapper { padding: 0 30px; }
}