/* LEGAL PAGES STYLES */

.container { width: 90%; max-width: 900px; margin: 0 auto; position: relative; z-index: 20; padding: 60px 0 120px; }

.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.8rem; font-weight: 700; margin-bottom: 32px;
    margin-left: 40px; /* Align with slab padding */
    text-transform: uppercase; letter-spacing: 0.1em;
    transition: all 0.3s ease;
    opacity: 0.6;
}
.back-btn:hover { color: var(--text-primary); transform: translateX(-4px); opacity: 1; }

.header { margin-bottom: 56px; padding-top: 12px; }
.header h1 { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.05; margin-bottom: 20px; }
.header p { font-size: 1rem; color: var(--text-secondary); max-width: 540px; margin-bottom: 8px; line-height: 1.6; }

.section { padding: 0; margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }

h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.02em; color: var(--text-primary); }
h3 { font-size: 1.1rem; font-weight: 600; margin-top: 28px; margin-bottom: 12px; color: var(--text-primary); }
p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 18px; line-height: 1.6; }
ul { padding-left: 20px; margin-bottom: 24px; }
li { color: var(--text-secondary); margin-bottom: 12px; font-size: 1.05rem; }
strong { color: var(--text-primary); }

.contact-link { color: var(--text-primary); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); transition: border-color 0.3s; }
.contact-link:hover { border-bottom-color: var(--text-primary); }
 
 /* Hiring Specific */
  .roles-grid { display: grid; gap: 32px; margin-top: 56px; }
 .role { 
    position: relative; overflow: hidden; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
 }
 .role:first-child { border-top: none; padding-top: 0; }

 .role-info-wrapper, .role-form-wrapper {
    display: grid;
    transition: grid-template-rows 0.8s cubic-bezier(0.22, 1, 0.36, 1);
 }
 .role-info-wrapper { grid-template-rows: 1fr; }
 .role-form-wrapper { grid-template-rows: 0fr; }

 .role-info, .role-form {
    overflow: hidden;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
 }

  .role-info { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; min-height: 0; }
 .role-form { opacity: 0; transform: translateY(20px) scale(0.98); pointer-events: none; max-width: 680px; min-height: 0; }

 .role.expanded .role-info-wrapper { grid-template-rows: 0fr; margin-bottom: 0; }
 .role.expanded .role-form-wrapper { grid-template-rows: 1fr; margin-top: 8px; }

 .role.expanded .role-info { opacity: 0; transform: translateY(-20px) scale(0.95); pointer-events: none; }
 .role.expanded .role-form { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }

 .field-hint { font-size: 0.75rem; color: var(--text-secondary); margin: 8px 0 12px; line-height: 1.4; }
 .form-actions { display: flex; gap: 16px; margin-top: 32px; }
 
 .input-group textarea {
    width: 100%; min-height: 100px; padding: 16px;
    background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; color: var(--text-primary); font-family: inherit;
    resize: vertical; outline: none; transition: border-color 0.3s;
 }
 .input-group textarea:focus { border-color: var(--text-primary); }
 
 /* Precision Override */
 .slab { padding: 40px !important; }

 /* Tables */
 table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.9rem; background: rgba(255,255,255,0.02); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
 th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); }
 th { color: var(--text-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; background: rgba(255,255,255,0.03); }
 td { color: var(--text-secondary); }
 tr:last-child td { border-bottom: none; }

 /* Guidelines Specific */
 .section-num {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.3em;
    color: var(--text-secondary); text-transform: uppercase;
    margin-bottom: 16px; display: block; opacity: 0.5;
 }
 .rule-list { list-style: none; margin-top: 32px; }
 .rule-item {
    display: grid; grid-template-columns: 24px 1fr; gap: 24px;
    margin-bottom: 32px; padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
 }
 .rule-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
 .rule-icon { color: var(--text-primary); font-weight: 900; font-size: 1rem; opacity: 0.3; }
 .rule-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; margin-top: 0; }
 .rule-content p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0; }

@media (max-width: 768px) {
    .header h1 { font-size: 2.8rem; }
    .container { padding: 60px 0; width: 92%; }
    .slab { padding: 40px 24px !important; }
    .form-actions { flex-direction: column; gap: 12px; }
    .form-actions .btn { width: 100%; text-align: center; }
}
