/* Custom Variable Setup */
:root {
    --wsb-blue: #0073ba;
    --wsb-dark: #050a12;
    --wsb-glass: rgba(255, 255, 255, 0.03);
    --text-white: #ffffff;
    --text-muted: #a0aec0;
}

.bylaws-section {
    background-color: var(--wsb-dark);
    padding: 160px 0;
    font-family: "din-2014", sans-serif;
    color: var(--text-white);
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legal-header h1 span {
    color: var(--wsb-blue);
}

/* Accordion Container */
.accordion-container {
    max-width: max-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual Item Styling */
.accordion-item {
    background: var(--wsb-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(0, 115, 186, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Header Button */
.accordion-header {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.article-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--wsb-blue);
    margin-right: 20px;
    opacity: 0.7;
}

.article-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    flex: 1;
}

.arrow-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: 0.3s ease;
}

/* Content Area */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.content-inner {
    padding: 10px 30px 40px 65px;
}

.legal-sub {
    margin-bottom: 25px;
}

.legal-sub h4 {
    color: var(--wsb-blue);
    font-size: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.legal-sub p {
    color: aliceblue;
    font-size: 15px;
    line-height: 1.6;
}

/* Active State Logic */
.accordion-item.active {
    border-color: var(--wsb-blue);
    background: rgba(0, 115, 186, 0.03);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    /* High enough to contain content */
}

.accordion-item.active .arrow-icon {
    transform: rotate(-135deg);
    border-color: var(--wsb-blue);
}

