/*
! Company: Allium Technologies
! Client: Nu-U Med Spa
! Description: Shared stylesheet for legal pages (Privacy Policy, Terms & Conditions).
*/

/* Hero */
.legal-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 3rem 1.5rem 2rem;
    background-color: #f5f5f5;
    text-align: center;
}

.legal-hero .effective-date {
    color: #DD9854;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.legal-hero h1 {
    font-size: 28px;
    font-weight: bold;
    color: #008000;
    text-transform: uppercase;
}

.legal-hero p {
    color: #808080;
    font-weight: 300;
    max-width: 700px;
}

/* Page layout */
.legal-page {
    display: flex;
    gap: 2rem;
    padding: 3rem;
    background-color: #fff;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    min-width: 240px;
    background-color: #faebd7;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.legal-sidebar h3 {
    color: #008000;
    font-size: 16px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-sidebar li {
    margin: 0.6rem 0;
}

.legal-sidebar a {
    text-decoration: none;
    color: #008000;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-sidebar a:hover {
    color: #DD9854;
}

/* Content */
.legal-content {
    flex: 1;
    max-width: 800px;
}

.legal-content section {
    margin-bottom: 2.75rem;
    scroll-margin-top: 100px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.section-heading .section-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    filter: invert(91%) sepia(27%) saturate(2683%) hue-rotate(315deg) brightness(88%) contrast(96%);
}

.section-heading h2 {
    color: #DD9854;
    font-size: 19px;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 1px;
    margin: 0;
}

.legal-content p {
    text-align: justify;
    font-weight: 300;
    color: #444;
}

.legal-content ul.legal-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.legal-content ul.legal-list li {
    position: relative;
    padding-left: 22px;
    font-weight: 300;
    color: #444;
    margin: 0.4rem 0;
}

.legal-content ul.legal-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: #DD9854;
    font-size: 18px;
    line-height: 1;
}

/* Callout: mandatory disclosures */
.legal-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background-color: #faebd7;
    border-left: 4px solid #008000;
    border-radius: 5px;
    padding: 1.1rem 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

.legal-callout img {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    filter: invert(24%) sepia(90%) saturate(1000%) hue-rotate(75deg) brightness(90%) contrast(100%);
}

.legal-callout p {
    margin: 0;
    font-weight: 500;
    color: #2b2b2b;
    text-align: left;
}

/* Example SMS message */
.example-message {
    background-color: #f5f5f5;
    border-left: 4px solid #DD9854;
    border-radius: 5px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.example-message .example-label {
    display: block;
    color: #DD9854;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.example-message p {
    margin: 0;
    font-style: italic;
    color: #555;
    text-align: left;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .legal-page {
        flex-direction: column;
        padding: 1.5rem;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 2rem;
    }
}
