/* -----------------------------------------------------------------------------
   Legal pages (privacy-policy, terms-of-service)

   These pages are standalone documents rather than sections of index.html, so
   they cannot lean on Bootstrap and style.css the way the home page does. This
   file carries only what a wall of legal text needs, reusing the site palette:
   Primary #E48632, links #F39C12, page #111 over the tiled images/bg.png.
   -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css?family=Raleway:300,400,500');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600');

/* The home page wordmark is text, not an image: an <h1>IEC</h1> set in Anurati.
   images/logo.png is a leftover from the STRIDER theme the site was built on
   and reads as another company's brand, so the mark is reproduced here rather
   than linked. */
@font-face {
    font-family: 'Anurati';
    src: url('../fonts/Anurati-Regular.otf');
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #111;
    background: url(../images/bg.png) repeat;
    color: #DDD;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    max-width: 100%;
    overflow-x: hidden;
}

a { color: #F39C12; text-decoration: none; }
a:hover, a:focus, a:active { color: #E48632; text-decoration: underline; }

/* -Header: logo home link on the left, escape hatch on the right- */
.legal-header {
    border-bottom: 1px solid rgba(228, 134, 50, 0.25);
    background-color: rgba(0, 0, 0, 0.45);
}
.legal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Same 1140px ceiling the body uses, so logo and text share one left edge. */
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 24px;
}
.legal-logo {
    font-family: Anurati, sans-serif;
    font-size: 1.75rem;
    letter-spacing: 5px;
    line-height: 1;
    color: #FFF;
}
.legal-logo:hover { color: #FFF; text-decoration: none; }
.legal-back {
    font-family: Raleway, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* -Body- */
.legal-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.legal-main h1 {
    font-family: Raleway, sans-serif;
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    color: #FFF;
    margin: 0 0 12px;
}
/* -Accent rule under the title, centred with the heading- */
.legal-main h1::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    margin: 18px auto 0;
    background-color: #E48632;
}

/* The text of both documents is one pre-line block, so paragraph breaks come
   from the source newlines. Section headings are <b> inside that block; making
   them block-level is what turns them into headings without rewriting the copy
   into semantic markup. */
.legal-body {
    display: block;
    white-space: pre-line;
    margin-top: 40px;
    /* Legal prose is unbroken text: a measure this wide is only readable with
       the extra leading, and 1140px of it would be a slab. */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.legal-body b {
    display: block;
    margin: 34px 0 4px;
    color: #E48632;
    font-family: Raleway, sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 600px) {
    .legal-main { padding: 32px 18px 48px; }
    .legal-main h1 { font-size: 1.4rem; letter-spacing: 2px; }
    .legal-header-inner { padding: 14px 18px; }
}
